-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests now use an external vault process
Replace use of core vault package for testing with an external vault process. Previously each set of tests that needed vault would create a vault service in the test process and all tests would use the default 'secret' kv path. Now it uses a separate kv secrets path for each set of tests, setting the version for each. The code for starting up the Vault process was based off what was already used for Consul via its sdk/testutils package. In the process various test conflicts were addressed and an external process (consul and vault) process leak was fixed [1]. [1] the leak was caused by use of log.Fatal which calls os.Exit which exist the process without running any cleanup code.
- Loading branch information
Showing
9 changed files
with
158 additions
and
173 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
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
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
Oops, something went wrong.