TAS-854 getComment with Collaborator

This commit is contained in:
Cristina Jalba
2016-09-27 16:35:45 +03:00
parent c0b4eadab0
commit 1f4b9752ce

View File

@@ -71,4 +71,13 @@ public class GetCommentsTest extends RestTest
commentsAPI.getNodeComments(document.getNodeRef());
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
@TestRail(section={"rest-api", "comments"}, executionType= ExecutionType.SANITY,
description= "Verify Collaborator user gets comments created by admin user with Rest API and status code is 200")
public void collaboratorIsAbleToRetrieveComments() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator));
commentsAPI.getNodeComments(document.getNodeRef());
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}