mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-21 15:08:06 +00:00
740 B
740 B
Testing
Unit & Integration tests
When: Unit (pure Go) and integration (controller-runtime envtest).
Where: internal/...
, pkg/...
Add files in: *_test.go
next to the code.
Run: make test
E2E tests (kind)
When: Full cluster behavior (CRDs, operator image, Connect/SA flows).
Where: test/e2e/...
Add files in: *_test.go
next to the code.
Framework: Ginkgo + pkg/testhelper
.
Local prep:
- Install
kind
to spin up local Kubernetes cluster. export OP_CONNECT_TOKEN=<token>
export OP_SERVICE_ACCOUNT_TOKEN=<token>
- Put
1password-credentials.json
into project root. make test-e2e