Fix e2e CI failure from "Test that overwrite env var works in nested action (#453)" (#467)

Fix e2e CI failure VAULT-17057
Co-authored-by: Leonardo Villela <leonardo.villela37@gmail.com>
This commit is contained in:
Thy Ton
2023-06-13 11:22:43 -07:00
committed by GitHub
parent ec2980c187
commit 62aa8bb4c4
4 changed files with 34 additions and 0 deletions

View File

@@ -76,6 +76,18 @@ const vaultToken = `${process.env.VAULT_TOKEN}` === undefined ? `${process.env.V
zip: 'zap',
},
});
await got(`http://${vaultUrl}/v1/secret/data/subsequent-test`, {
method: 'POST',
headers: {
'X-Vault-Token': vaultToken,
},
json: {
data: {
secret: 'SUBSEQUENT_TEST_SECRET',
},
},
});
} catch (error) {
console.log(error);
process.exit(1);