Fix LDAP tests with MSAD, RHDS and OpenLDAP
This commit is contained in:
parent
8b5aafc4b4
commit
7cd63f2f8b
1 changed files with 1 additions and 12 deletions
|
@ -206,19 +206,8 @@ public class LDAPBinaryAttributesTest {
|
||||||
// Expected
|
// 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
|
// Remove jpegPhoto attribute and assert it was successfully removed
|
||||||
|
joe.getAttributes().remove("someOtherPhoto");
|
||||||
joe.getAttributes().remove(LDAPConstants.JPEG_PHOTO);
|
joe.getAttributes().remove(LDAPConstants.JPEG_PHOTO);
|
||||||
adminClient.realm("test").users().get(joe.getId()).update(joe);
|
adminClient.realm("test").users().get(joe.getId()).update(joe);
|
||||||
getUserAndAssertPhoto("joephoto", false);
|
getUserAndAssertPhoto("joephoto", false);
|
||||||
|
|
Loading…
Reference in a new issue