Skip to content

Commit

Permalink
chore: Update Vault initialization commands in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keloran committed Jun 30, 2024
1 parent 87af4ec commit e5cb4d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func TestGetSecret(t *testing.T) {
vaultContainer, err := vault.RunContainer(ctx,
testcontainers.WithImage("hashicorp/vault:1.13.0"),
vault.WithToken("MyToKeN"),
vault.WithInitCommand("secrets enable transit", "write -f transit/keys/my-key"),
vault.WithInitCommand("kv put kv/secret/test1 foo1=bar"))
vault.WithInitCommand("secrets enable kv-v2"),
vault.WithInitCommand("kv put secret/test1 foo1=bar"))
assert.Nil(t, err)
defer func() {
err := vaultContainer.Terminate(ctx)
Expand All @@ -133,7 +133,7 @@ func TestGetSecret(t *testing.T) {
assert.Nil(t, err)

v := NewVault(address, "MyToKeN")
err = v.GetRemoteSecrets("kv/secret/test1")
err = v.GetRemoteSecrets("kv/data/secret/test1")
assert.Nil(t, err)

secret, err := v.GetSecret("foo1")
Expand Down

0 comments on commit e5cb4d6

Please sign in to comment.