diff --git a/.travis.yml b/.travis.yml index 9b12293ce..fcae9cf5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,8 @@ before_script: - mkdir -p $GOPATH/bin - wget --version - wget https://releases.hashicorp.com/consul/0.8.3/consul_0.8.3_linux_amd64.zip - - wget https://releases.hashicorp.com/vault/0.6.5/vault_0.6.5_linux_amd64.zip + - wget https://releases.hashicorp.com/vault/0.7.3/vault_0.7.3_linux_amd64.zip - unzip -d $GOPATH/bin consul_0.8.3_linux_amd64.zip - - unzip -d $GOPATH/bin vault_0.6.5_linux_amd64.zip + - unzip -d $GOPATH/bin vault_0.7.3_linux_amd64.zip - vault --version - consul --version diff --git a/cert/source_test.go b/cert/source_test.go index 3bf13d544..88f76f41c 100644 --- a/cert/source_test.go +++ b/cert/source_test.go @@ -325,9 +325,14 @@ func vaultServer(t *testing.T, addr, rootToken string) (*exec.Cmd, *vaultapi.Cli } policy := ` + # Vault < 0.7 path "secret/fabio/cert" { capabilities = ["list"] } + # Vault >= 0.7. Note the trailing slash. + path "secret/fabio/cert/" { + capabilities = ["list"] + } path "secret/fabio/cert/*" { capabilities = ["read"]