mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-21 15:08:06 +00:00
Refer to testing.md from contributing.md
This commit is contained in:
@@ -4,14 +4,13 @@ Thank you for your interest in contributing to the 1Password Kubernetes Operator
|
|||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
To run e2e tests:
|
All contributions must include tests where applicable.
|
||||||
|
|
||||||
1. [Install `kind`](https://kind.sigs.k8s.io/docs/user/quick-start/#installing-with-a-package-manager) to spin up local Kubernetes cluster.
|
- **Unit tests** for pure Go logic.
|
||||||
2. `export OP_CONNECT_TOKEN=<token>`
|
- **Integration tests** for controller/reconciler logic using envtest.
|
||||||
3. `export OP_SERVICE_ACCOUNT_TOKEN=<token>`
|
- **E2E tests** for full cluster behavior with kind.
|
||||||
4. `make test-e2e`
|
|
||||||
|
|
||||||
In case tests are failed, before running them again, reset kind using `make cleanup-test-e2e`
|
👉 See the [Testing Guide](docs/testing.md) for details on when to use each, how to run them locally, and how they are run in CI.
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user