Skip to content

Commit

Permalink
LPS-202515 SF/Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Dec 24, 2023
1 parent 06df8bd commit cbbd010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void testDeleteV2Group() throws Exception {
_userGroupLocalService.fetchUserGroupByExternalReferenceCode(
group.getExternalId(), TestPropsValues.getCompanyId()));

// Delete an existing group with no SCIM client ID set
// Delete an existing group with no SCIM client ID

UserGroup userGroup = _userGroupLocalService.addUserGroup(
TestPropsValues.getUserId(), TestPropsValues.getCompanyId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,32 +90,31 @@ public void testDeleteV2User() throws Exception {
assertHttpResponseStatusCode(
404, userResource.getV2UserByIdHttpResponse(user.getId()));

com.liferay.portal.kernel.model.User portalUser1 =
com.liferay.portal.kernel.model.User portalUser =
_userLocalService.getUserByExternalReferenceCode(
user.getExternalId(), TestPropsValues.getCompanyId());

Assert.assertFalse(portalUser1.isActive());
Assert.assertFalse(portalUser.isActive());

// Delete an existing user with no SCIM client ID set
// Delete an existing user with no SCIM client ID

com.liferay.portal.kernel.model.User portalUser2 =
UserTestUtil.addUser();
portalUser = UserTestUtil.addUser();

assertHttpResponseStatusCode(
404,
userResource.deleteV2UserHttpResponse(
String.valueOf(portalUser2.getUserId())));
String.valueOf(portalUser.getUserId())));

// Delete an existing user provided by another SCIM client

ScimTestUtil.saveSCIMClientId(
com.liferay.portal.kernel.model.User.class.getName(),
portalUser2.getUserId(), portalUser2.getCompanyId());
portalUser.getUserId(), portalUser.getCompanyId());

assertHttpResponseStatusCode(
409,
userResource.deleteV2UserHttpResponse(
String.valueOf(portalUser2.getUserId())));
String.valueOf(portalUser.getUserId())));
}

@Override
Expand Down

0 comments on commit cbbd010

Please sign in to comment.