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