mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
TAS-901 addComment with Collaborator
This commit is contained in:
@@ -69,4 +69,13 @@ public class PostCommentsTest extends RestTest
|
|||||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED.toString());
|
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestRail(section={"rest-api", "comments"}, executionType= ExecutionType.SANITY,
|
||||||
|
description= "Verify Collaborator user adds comments with Rest API and status code is 201")
|
||||||
|
public void collaboratorIsAbleToAddComment() throws JsonToModelConversionException, Exception
|
||||||
|
{
|
||||||
|
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator));
|
||||||
|
commentsAPI.addComment(document.getNodeRef(), "This is a new comment added by user with role: " + UserRole.SiteCollaborator);
|
||||||
|
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED.toString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user