mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
cli: adds plugin identity token to enable and tune commands for secret engines and auth methods (#24980)
* adds plugin identity token to secrets CLI for enable and tune * adds plugin identity token to auth CLI for enable and tune * adds field to mount config input and output * adds changelog * fix tests * fix another test
This commit is contained in:
@@ -99,6 +99,7 @@ func TestAuthEnableCommand_Run(t *testing.T) {
|
||||
"-passthrough-request-headers", "www-authentication",
|
||||
"-allowed-response-headers", "authorization",
|
||||
"-listing-visibility", "unauth",
|
||||
"-identity-token-key", "default",
|
||||
"userpass",
|
||||
})
|
||||
if exp := 0; code != exp {
|
||||
@@ -138,6 +139,9 @@ func TestAuthEnableCommand_Run(t *testing.T) {
|
||||
if diff := deep.Equal([]string{"foo,bar"}, authInfo.Config.AuditNonHMACResponseKeys); len(diff) > 0 {
|
||||
t.Errorf("Failed to find expected values in AuditNonHMACResponseKeys. Difference is: %v", diff)
|
||||
}
|
||||
if diff := deep.Equal("default", authInfo.Config.IdentityTokenKey); len(diff) > 0 {
|
||||
t.Errorf("Failed to find expected values in IdentityTokenKey. Difference is: %v", diff)
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("communication_failure", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user