replace global vault handlers with newVaultHandlers() (#27515)

This commit is contained in:
Thy Ton
2024-06-18 22:17:40 +07:00
committed by GitHub
parent ff8442dff7
commit 28c2e94382
9 changed files with 111 additions and 82 deletions

View File

@@ -122,10 +122,11 @@ func testVaultServerWithKVVersion(tb testing.TB, kvVersion string) (*api.Client,
func testVaultServerAllBackends(tb testing.TB) (*api.Client, func()) {
tb.Helper()
handlers := newVaultHandlers()
client, _, closer := testVaultServerCoreConfig(tb, &vault.CoreConfig{
CredentialBackends: credentialBackends,
AuditBackends: auditBackends,
LogicalBackends: logicalBackends,
CredentialBackends: handlers.credentialBackends,
AuditBackends: handlers.auditBackends,
LogicalBackends: handlers.logicalBackends,
BuiltinRegistry: builtinplugins.Registry,
})
return client, closer