mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Vault 27392 log ldap warning - remove from warning from response (#29134)
* log ldap warnings instead of returning them to end user * add cl * code review * Update changelog/29134.txt Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com> * Update changelog/29134.txt Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com> * fix test --------- Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
This commit is contained in:
@@ -1183,8 +1183,8 @@ func testAccStepLoginNoGroupDN(t *testing.T, user string, pass string) logicalte
|
||||
|
||||
// Verifies a search without defined GroupDN returns a warning rather than failing
|
||||
Check: func(resp *logical.Response) error {
|
||||
if len(resp.Warnings) != 1 {
|
||||
return fmt.Errorf("expected a warning due to no group dn, got: %#v", resp.Warnings)
|
||||
if len(resp.Warnings) != 0 {
|
||||
return fmt.Errorf("expected a no warnings, got: %#v", resp.Warnings)
|
||||
}
|
||||
|
||||
return logicaltest.TestCheckAuth([]string{"bar", "default"})(resp)
|
||||
|
||||
Reference in New Issue
Block a user