From b6a6e97c2cc251973b033d9557819935cba2b85e Mon Sep 17 00:00:00 2001 From: Steven Clark Date: Mon, 20 Mar 2023 21:11:56 +0000 Subject: [PATCH] backport of commit 94a6dca9d639cb5aad9bd95047b7a687b49cda07 --- 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()