Skip to content

Commit

Permalink
rename rules->policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava committed Nov 22, 2021
1 parent f957474 commit f1ace61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptance/tests/vault/vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
)

const (
gossipRules = `
gossipPolicy = `
path "consul/data/secret/gossip" {
capabilities = ["read"]
}`

// connectCAPolicy allows Consul to bootstrap all certificates for the service mesh in Vault.
// Adapted from https://www.consul.io/docs/connect/ca/vault#consul-managed-pki-paths.
connectCARules = `
connectCAPolicy = `
path "/sys/mounts" {
capabilities = [ "read" ]
}
Expand Down Expand Up @@ -65,10 +65,10 @@ func TestVault(t *testing.T) {

// Create the Vault Policy for the gossip key.
logger.Log(t, "Creating policies")
err := vaultClient.Sys().PutPolicy("consul-gossip", gossipRules)
err := vaultClient.Sys().PutPolicy("consul-gossip", gossipPolicy)
require.NoError(t, err)

err = vaultClient.Sys().PutPolicy("connect-ca", connectCARules)
err = vaultClient.Sys().PutPolicy("connect-ca", connectCAPolicy)
require.NoError(t, err)

// Create the Auth Roles for consul-server and consul-client.
Expand Down

0 comments on commit f1ace61

Please sign in to comment.