backport of commit 82f998f071 (#18373)

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
This commit is contained in:
hc-github-team-secure-vault-core
2022-12-14 11:47:16 -08:00
committed by GitHub
parent d4fa7208f6
commit f99420c92c
13 changed files with 341 additions and 99 deletions

View File

@@ -3,7 +3,6 @@ package command
import (
"testing"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/api"
vaulthttp "github.com/hashicorp/vault/http"
"github.com/hashicorp/vault/sdk/logical"
@@ -17,10 +16,10 @@ func TestPathMap_Upgrade_API(t *testing.T) {
coreConfig := &vault.CoreConfig{
DisableMlock: true,
DisableCache: true,
Logger: log.NewNullLogger(),
CredentialBackends: map[string]logical.Factory{
"app-id": credAppId.Factory,
},
PendingRemovalMountsAllowed: true,
}
cluster := vault.NewTestCluster(t, coreConfig, &vault.TestClusterOptions{