mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-07 15:17:03 +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",
|
"redis-elasticache-database-plugin",
|
||||||
"redshift-database-plugin",
|
"redshift-database-plugin",
|
||||||
"saml",
|
"saml",
|
||||||
|
"scep",
|
||||||
"snowflake-database-plugin",
|
"snowflake-database-plugin",
|
||||||
"ssh",
|
"ssh",
|
||||||
"terraform",
|
"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 {
|
if d := cmp.Diff(act, tc.exp); len(d) > 0 {
|
||||||
t.Errorf("expected: %q, got: %q, diff: %v", tc.exp, act, d)
|
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",
|
name: "number of auth plugins",
|
||||||
pluginType: consts.PluginTypeCredential,
|
pluginType: consts.PluginTypeCredential,
|
||||||
want: 18,
|
want: 18,
|
||||||
entWant: 1,
|
entWant: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "number of database plugins",
|
name: "number of database plugins",
|
||||||
|
@ -94,6 +94,7 @@ if [[ -n "${VAULT_LICENSE:-}" ]]; then
|
|||||||
vault secrets enable "kmip"
|
vault secrets enable "kmip"
|
||||||
vault secrets enable "transform"
|
vault secrets enable "transform"
|
||||||
vault auth enable "saml"
|
vault auth enable "saml"
|
||||||
|
vault auth enable "scep"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Output OpenAPI, optionally formatted
|
# Output OpenAPI, optionally formatted
|
||||||
|
Loading…
Reference in New Issue
Block a user