Skip to content

Commit

Permalink
backport of commit 94a6dca (#19648)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
  • Loading branch information
1 parent 96b884b commit c7e83ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builtin/logical/pki/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit c7e83ef

Please sign in to comment.