-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The integration suite was guarded behind the "suite" build tag, which prevented Go tooling from working with the integration tests by default. This made the upcoming refactoring to support API tokens more difficult, and has historically discouraged the addition of more integration tests. As modern versions of Go support `testing.Cleanup` we can move the envtest setup into a helper function that runs, and automatically cleans up, in every test, instead of wrapping the main function. The tests are guarded by checking for the presence of the KUBEBUILDER_ASSETS environment variable, which is set by `setup-env` in the CI environment.
- Loading branch information
1 parent
4222912
commit 4f82123
Showing
2 changed files
with
40 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters