mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
Add tweaks to tests for the new enterprise SCEP test (#30495)
This commit is contained in:
parent
62d42d074b
commit
dc8da38cb7
@ -390,6 +390,7 @@ func TestPredict_Plugins(t *testing.T) {
|
||||
"redis-elasticache-database-plugin",
|
||||
"redshift-database-plugin",
|
||||
"saml",
|
||||
"scep",
|
||||
"snowflake-database-plugin",
|
||||
"ssh",
|
||||
"terraform",
|
||||
@ -444,6 +445,14 @@ func TestPredict_Plugins(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if !strutil.StrListContains(act, "scep") {
|
||||
for i, v := range tc.exp {
|
||||
if v == "scep" {
|
||||
tc.exp = append(tc.exp[:i], tc.exp[i+1:]...)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if d := cmp.Diff(act, tc.exp); len(d) > 0 {
|
||||
t.Errorf("expected: %q, got: %q, diff: %v", tc.exp, act, d)
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ func Test_RegistryKeyCounts(t *testing.T) {
|
||||
name: "number of auth plugins",
|
||||
pluginType: consts.PluginTypeCredential,
|
||||
want: 18,
|
||||
entWant: 1,
|
||||
entWant: 2,
|
||||
},
|
||||
{
|
||||
name: "number of database plugins",
|
||||
|
@ -94,6 +94,7 @@ if [[ -n "${VAULT_LICENSE:-}" ]]; then
|
||||
vault secrets enable "kmip"
|
||||
vault secrets enable "transform"
|
||||
vault auth enable "saml"
|
||||
vault auth enable "scep"
|
||||
fi
|
||||
|
||||
# Output OpenAPI, optionally formatted
|
||||
|
Loading…
Reference in New Issue
Block a user