mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-24 16:30:47 +00:00
766 B
766 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
kindto spin up local Kubernetes cluster. export OP_CONNECT_TOKEN=<token>export OP_SERVICE_ACCOUNT_TOKEN=<token>make test-e2e- Put
1password-credentials.jsoninto project root.
Run: make test-e2e