mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Add updates to various CE files to support the new ENT SPIFFE auth plugin (#31434)
This commit is contained in:
parent
99b632775d
commit
bce06a8772
3 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue