mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix unit tests broken with JWT plugin update
This commit is contained in:
@@ -175,7 +175,8 @@ func TestAuthEnableCommand_Run(t *testing.T) {
|
||||
|
||||
// Add 1 to account for the "token" backend, which is visible when you walk the filesystem but
|
||||
// is treated as special and excluded from the registry.
|
||||
expected := len(builtinplugins.Registry.Keys(consts.PluginTypeCredential)) + 1
|
||||
// Subtract 1 to account for "oidc" which is an alias of "jwt" and not a separate plugin.
|
||||
expected := len(builtinplugins.Registry.Keys(consts.PluginTypeCredential))
|
||||
if len(backends) != expected {
|
||||
t.Fatalf("expected %d credential backends, got %d", expected, len(backends))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user