-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests now use an external vault process #1230
Merged
Merged
Conversation
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
eikenb
force-pushed
the
vault-test-server
branch
from
July 16, 2019 00:05
2d6f9fb
to
38a4740
Compare
greut
reviewed
Jul 16, 2019
eikenb
force-pushed
the
vault-test-server
branch
from
July 16, 2019 06:53
38a4740
to
a800b34
Compare
This was referenced Jul 16, 2019
Closed
eikenb
force-pushed
the
vault-test-server
branch
4 times, most recently
from
July 18, 2019 23:21
1169dea
to
82d4870
Compare
freddygv
reviewed
Jul 22, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good @eikenb, just have a couple minor questions/comments.
eikenb
force-pushed
the
vault-test-server
branch
from
July 22, 2019 23:54
82d4870
to
a340fea
Compare
freddygv
approved these changes
Jul 23, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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.
eikenb
force-pushed
the
vault-test-server
branch
from
July 23, 2019 17:38
a340fea
to
494535a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.