mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
TAS-960 Collaborator doesn't have permission to delete comment created by other user
This commit is contained in:
@@ -75,4 +75,13 @@ public class DeleteCommentsSanityTests extends RestTest
|
||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.NO_CONTENT.toString());
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api",
|
||||
"comments" }, executionType = ExecutionType.SANITY, description = "Verify Collaborator user delete comments created by admin user with Rest API and status code is 403")
|
||||
public void collaboratorIsNotAbleToDeleteComments() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator));
|
||||
commentsAPI.deleteComment(document.getNodeRef(), commentId);
|
||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user