Fix for test SSSDUserProfileTest.test05MixedInternalDBUserProfile (#25570)

Closes #25566

Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
Ricardo Martin 2023-12-15 19:57:31 +01:00 committed by GitHub
parent 3ab24afe93
commit ae04b954a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,7 @@ public class SSSDUserProfileTest extends AbstractBaseSSSDTest {
// for admin firstName and lastName remains removed, the rest editable
UserResource testResource = ApiUtil.findUserByUsernameId(testRealm(), "test-user@localhost");
UserRepresentation test = testResource.toRepresentation(true);
assertUser(test, "test-user@localhost", "test-user@localhost", "Tom", "Brady", null);
assertUser(test, "test-user@localhost", "test-user@localhost", null, null, null);
assertProfileAttributes(test, null, false, "username", "email", "postal_code");
Assert.assertNull(test.getUserProfileMetadata().getAttributeMetadata(UserModel.FIRST_NAME));
Assert.assertNull(test.getUserProfileMetadata().getAttributeMetadata(UserModel.LAST_NAME));