Fix LDAP tests with MSAD, RHDS and OpenLDAP
This commit is contained in:
1 parent
8b5aafc4b4
commit
7cd63f2f8b
1 file changed
+1
-12
+1
-12
@@ -206,19 +206,8 @@ public class LDAPBinaryAttributesTest {
|
||||
// Expected
|
||||
}
|
||||
|
||||
|
||||
// Try to update him with some bad value for jpegPhoto. It will fail
|
||||
try {
|
||||
joe.getAttributes().remove("someOtherPhoto");
|
||||
joe.getAttributes().put(LDAPConstants.JPEG_PHOTO, Arrays.asList("foobar"));
|
||||
adminClient.realm("test").users().get(joe.getId()).update(joe);
|
||||
Assert.fail("Not expected to successfully update user");
|
||||
} catch (ClientErrorException cee) {
|
||||
// Expected
|
||||
}
|
||||
|
||||
|
||||
// Remove jpegPhoto attribute and assert it was successfully removed
|
||||
joe.getAttributes().remove("someOtherPhoto");
|
||||
joe.getAttributes().remove(LDAPConstants.JPEG_PHOTO);
|
||||
adminClient.realm("test").users().get(joe.getId()).update(joe);
|
||||
getUserAndAssertPhoto("joephoto", false);
|
||||
|
||||
Reference in new issue
Block a user