test(e2e): Use vault version from variable (#6589)
This commit is contained in:
1 parent
e3f19279c7
commit
0d4ff79f0b
4 files changed
+9
-1
No files matched your search
@@ -10,6 +10,7 @@ type config struct {
|
||||
TargetSshKeyPath string `envconfig:"E2E_SSH_KEY_PATH" required:"true"` // e.g. /Users/username/key.pem
|
||||
TargetPort string `envconfig:"E2E_TARGET_PORT" default:"22"`
|
||||
VaultSecretPath string `envconfig:"E2E_VAULT_SECRET_PATH" default:"e2e_secrets"`
|
||||
VaultVersion string `envconfig:"E2E_VAULT_VERSION" default:"1.17.6"`
|
||||
AwsAccessKeyId string `envconfig:"E2E_AWS_ACCESS_KEY_ID" required:"true"`
|
||||
AwsSecretAccessKey string `envconfig:"E2E_AWS_SECRET_ACCESS_KEY" required:"true"`
|
||||
AwsHostSetFilter string `envconfig:"E2E_AWS_HOST_SET_FILTER" required:"true"` // e.g. "tag:testtag=true"
|
||||
|
||||
@@ -89,7 +89,7 @@ func setupEnvironment(t testing.TB, c *config, boundaryRepo, boundaryTag string)
|
||||
})
|
||||
|
||||
// Start Vault
|
||||
v, vaultToken := infra.StartVault(t, pool, network, "hashicorp/vault", "latest")
|
||||
v, vaultToken := infra.StartVault(t, pool, network, "hashicorp/vault", c.VaultVersion)
|
||||
t.Cleanup(func() {
|
||||
if err := pool.Purge(v.Resource); err != nil {
|
||||
t.Logf("error purging pool: %v", err)
|
||||
|
||||
Reference in new issue
Block a user