Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 693 Bytes

File metadata and controls

33 lines (24 loc) · 693 Bytes

sf-operator test suite

Usage

From the project root:

  • Run the tests:
go test -timeout 0 -v ./tests/... -args --ginkgo.v
  • Run a specific test:
go test -v ./tests/... -args --ginkgo.v --ginkgo.focus "Secret Rotations"
  • List the available tests:
go test -v ./tests/... -args --ginkgo.v --ginkgo.dry-run
  • Delete test resources (might be necessary when test breaks the deployment):
kubectl delete cm sf-standalone-owner

Contribute

Tests are written using:

The test library and entrypoint is defined in the main_test.go package.