Add tweaks to tests for the new enterprise SCEP test (#30495)

This commit is contained in:
Steven Clark 2025-05-02 11:28:16 -04:00 committed by GitHub
parent 62d42d074b
commit dc8da38cb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View File

@ -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)
}

View File

@ -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",

View File

@ -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