Add updates to various CE files to support the new ENT SPIFFE auth plugin (#31434)

This commit is contained in:
Steven Clark 2025-08-06 12:48:15 -04:00 committed by GitHub
parent 99b632775d
commit bce06a8772
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View file

@ -392,6 +392,7 @@ func TestPredict_Plugins(t *testing.T) {
"saml",
"scep",
"snowflake-database-plugin",
"spiffe",
"ssh",
"terraform",
"totp",
@ -453,6 +454,14 @@ func TestPredict_Plugins(t *testing.T) {
}
}
}
if !strutil.StrListContains(act, "spiffe") {
for i, v := range tc.exp {
if v == "spiffe" {
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: 2,
entWant: 3,
},
{
name: "number of database plugins",

View file

@ -96,6 +96,7 @@ if vault version | grep -q "+ent"; then
vault secrets enable "transform"
vault auth enable "saml"
vault auth enable "scep"
vault auth enable "spiffe"
fi
# Output OpenAPI, optionally formatted