Skip to content

Commit

Permalink
Update vault command to enable a secrets engine - 'vault mount' is ap…
Browse files Browse the repository at this point in the history
…parently now deprecated and will be removed later. If 'go test' fails for you, you'll need to update vault.
  • Loading branch information
ctdk committed May 23, 2018
1 parent bcedd52 commit df2976f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secret/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func TestMain(m *testing.M) {
numTries := 3
for si := 0; si < numTries; si++ {
time.Sleep(3)
mount := exec.Command(vaultPath, "mount", "-path=keys", "generic")
mount := exec.Command(vaultPath, "secrets", "enable", "-path=keys", "generic")
mount.Env = append(mount.Env, fmt.Sprintf("VAULT_ADDR=http://%s", vaultAddr))
mount.Env = append(mount.Env, fmt.Sprintf("VAULT_TOKEN=%s", token))
err = mount.Run()
Expand Down

0 comments on commit df2976f

Please sign in to comment.