From 8a911f6fee7d7ebf7aa719644284c38be674016f Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Fri, 28 Jul 2023 13:38:08 -0400 Subject: [PATCH] backport of commit fdc257d3a0a13d6bc98f84ecf1b4faa6291125e3 (#22121) Co-authored-by: Max Bowsher --- vault/external_tests/api/kv_helpers_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vault/external_tests/api/kv_helpers_test.go b/vault/external_tests/api/kv_helpers_test.go index fdc465e8f..18b07bbd2 100644 --- a/vault/external_tests/api/kv_helpers_test.go +++ b/vault/external_tests/api/kv_helpers_test.go @@ -148,17 +148,17 @@ func TestKVHelpers(t *testing.T) { teardownTest, _ := setupKVv2Test(t) defer teardownTest(t) - _, err = client.KVv2(v1MountPath).Get(context.Background(), "does/not/exist") + _, err = client.KVv2(v2MountPath).Get(context.Background(), "does/not/exist") if !errors.Is(err, api.ErrSecretNotFound) { t.Fatalf("KVv2.Get is expected to return an api.ErrSecretNotFound wrapped error for a missing secret; got %v", err) } - _, err = client.KVv2(v1MountPath).GetMetadata(context.Background(), "does/not/exist") + _, err = client.KVv2(v2MountPath).GetMetadata(context.Background(), "does/not/exist") if !errors.Is(err, api.ErrSecretNotFound) { t.Fatalf("KVv2.GetMetadata is expected to return an api.ErrSecretNotFound wrapped error for a missing secret; got %v", err) } - _, err = client.KVv2(v1MountPath).GetVersion(context.Background(), secretPath, 99) + _, err = client.KVv2(v2MountPath).GetVersion(context.Background(), secretPath, 99) if !errors.Is(err, api.ErrSecretNotFound) { t.Fatalf("KVv2.GetVersion is expected to return an api.ErrSecretNotFound wrapped error for a missing secret version; got %v", err) }