Skip to content

Commit

Permalink
specify address to listen to and use non-default port
Browse files Browse the repository at this point in the history
Signed-off-by: NicholasTanz <[email protected]>
  • Loading branch information
NicholasTanz committed Oct 12, 2024
1 parent ed2686a commit 504497d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/scripts/init-vault.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash

vault server -dev -dev-root-token-id="${VAULT_TOKEN}" &
vault server -dev \
-dev-listen-address="${VAULT_ADDR#http://}" \ # unlike VAULT_ADDR this option does not want the protocol prefix
-dev-root-token-id="${VAULT_TOKEN}" \
&

until vault status
do
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ allowlist_externals =
bash

setenv =
VAULT_ADDR = http://localhost:8200
VAULT_ADDR = http://localhost:8201
VAULT_TOKEN = test-root-token

commands_pre =
Expand Down

0 comments on commit 504497d

Please sign in to comment.