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()