mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-1252 REST API - admin user is not able to update a site membership request
This commit is contained in:
@@ -160,4 +160,21 @@ public class UpdateSiteMembershipRequestSanityTests extends RestTest
|
||||
peopleApi.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api", "people" },
|
||||
executionType = ExecutionType.SANITY, description = "Verify admin is not able to update membership request of another user")
|
||||
@Bug(id = "MNT-16919")
|
||||
public void adminIsNotAbleToUpdateSiteMembershipRequestOfAnotherUser() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
UserModel newMember = dataUser.createRandomTestUser();
|
||||
|
||||
restClient.authenticateUser(newMember);
|
||||
peopleApi.addSiteMembershipRequest(newMember, initialSiteMembership);
|
||||
|
||||
restClient.authenticateUser(adminUser);
|
||||
peopleApi.updateSiteMembershipRequest(newMember, updatedSiteMembership);
|
||||
|
||||
peopleApi.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user