Skip to content

Commit

Permalink
Skip test if Vault < 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris S. Kim committed Sep 13, 2023
1 parent 2b497e7 commit 22ee95b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent/connect/ca/provider_vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,11 @@ func TestVaultCAProvider_DeletePreviousIssuerAndKey(t *testing.T) {
})
res, err := testVault.Client().Logical().List("pki-intermediate/issuers")
require.NoError(t, err)

if res == nil {
t.Skip("Vault version < 1.11 does not have multi issuers functionality")
}

// Why 2 issuers? There is always an initial issuer that
// gets created before we manage the lifecycle of issuers.
// Since we're asserting that the number doesn't grow
Expand Down

0 comments on commit 22ee95b

Please sign in to comment.