-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Allow vault address to be specified in the vault:// URL
- Loading branch information
1 parent
2bb7df4
commit 2599865
Showing
2 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# This is useful for killing vault after the script exits, but causes the CircleCI | ||
# build to fail, so... ¯\_(ツ)_/¯ | ||
# trap "exit" INT TERM | ||
# trap "kill 0" EXIT | ||
|
||
# TODO: export these in a bats helper, as well as only launch vault in a vault helper | ||
export VAULT_ADDR=http://127.0.0.1:8200 | ||
export VAULT_ROOT_TOKEN=00000000-1111-2222-3333-444455556666 | ||
|
||
# fire up vault in dev mode for the vault tests | ||
vault server -dev -dev-root-token-id=${VAULT_ROOT_TOKEN} -log-level=err >&/dev/null & | ||
|
||
bats $(dirname $0) |