LDAP normalization errors: note that the error came while normalizing the roles.
This commit is contained in:
parent
d6dea39912
commit
71c06f2ce7
|
@ -128,7 +128,7 @@ sub normalize_ldap_role_mappings {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (@errors) {
|
if (@errors) {
|
||||||
die join "\n", @errors;
|
die "Failed to normalize LDAP role mappings:\n" . (join "\n", @errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $mapping;
|
return $mapping;
|
||||||
|
|
|
@ -223,7 +223,7 @@ subtest "normalize_ldap_role_mappings" => sub {
|
||||||
"group" => "invalid-role",
|
"group" => "invalid-role",
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
qr/Invalid roles.*invalid-role/,
|
qr/Failed to normalize.*Invalid roles.*invalid-role/,
|
||||||
"Invalid roles fail to normalize."
|
"Invalid roles fail to normalize."
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue