mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
TAS-853 getComment with Contributor
This commit is contained in:
@@ -62,4 +62,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 Contributor user gets comments created by admin user with Rest API and status code is 200")
|
||||
public void contributorIsAbleToRetrieveComments() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteContributor));
|
||||
commentsAPI.getNodeComments(document.getNodeRef());
|
||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user