From c7e83ef3aa2df6e3948b6c7f412395cd1077ee02 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: Mon, 20 Mar 2023 17:41:13 -0400 Subject: [PATCH] backport of commit 94a6dca9d639cb5aad9bd95047b7a687b49cda07 (#19648) Co-authored-by: Steven Clark --- builtin/logical/pki/backend_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/builtin/logical/pki/backend_test.go b/builtin/logical/pki/backend_test.go index 570afe82f4ac..ef3a5084afb4 100644 --- a/builtin/logical/pki/backend_test.go +++ b/builtin/logical/pki/backend_test.go @@ -31,6 +31,8 @@ import ( "testing" "time" + "github.com/hashicorp/vault/helper/testhelpers/teststorage" + "github.com/hashicorp/vault/helper/testhelpers" "github.com/stretchr/testify/require" @@ -6351,13 +6353,12 @@ func TestUserIDsInLeafCerts(t *testing.T) { // TestStandby_Operations test proper forwarding for PKI requests from a standby node to the // active node within a cluster. func TestStandby_Operations(t *testing.T) { - conf := &vault.CoreConfig{ + conf, opts := teststorage.ClusterSetup(&vault.CoreConfig{ LogicalBackends: map[string]logical.Factory{ "pki": Factory, }, - } - opts := vault.TestClusterOptions{HandlerFunc: vaulthttp.Handler} - cluster := vault.NewTestCluster(t, conf, &opts) + }, nil, teststorage.InmemBackendSetup) + cluster := vault.NewTestCluster(t, conf, opts) cluster.Start() defer cluster.Cleanup()