TAS-960 Collaborator doesn't have permission to delete comment created by other user

This commit is contained in:
Cristina Jalba
2016-09-29 10:12:56 +03:00
parent 2a13d867d2
commit a7d6b996ed

View File

@@ -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());
}
}