Skip to content

Commit 9b799ff

Browse files
committed
tests: Clear Vault-related environment variables in test host
These can interfere with tests causing bizarre failures
1 parent e405df8 commit 9b799ff

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

molecule/test_deployment/molecule.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ provisioner:
173173
connection:
174174
pipelining: true
175175

176+
# Don't accidentally use any ambient Vault environment variables
177+
env:
178+
VAULT_ADDR: ""
179+
VAULT_CACERT: ""
180+
VAULT_TOKEN: ""
181+
176182
inventory:
177183
group_vars:
178184
vault_all:

molecule/test_provisioning/molecule.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ provisioner:
7070
connection:
7171
pipelining: true
7272

73+
# Don't accidentally use any ambient Vault environment variables
74+
env:
75+
VAULT_ADDR: ""
76+
VAULT_CACERT: ""
77+
VAULT_TOKEN: ""
78+
7379
inventory:
7480
group_vars:
7581
all:

0 commit comments

Comments
 (0)