mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
TAS-929 updateComment with Consumer
This commit is contained in:
@@ -76,4 +76,13 @@ public class UpdateCommentsSanityTest extends RestTest
|
||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString());
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api",
|
||||
"comments" }, executionType = ExecutionType.SANITY, description = "Verify Consumer user updates comments created by admin user with Rest API and status code is 200")
|
||||
public void consumerIsAbleToUpdateComment() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteConsumer));
|
||||
commentsAPI.updateComment(document.getNodeRef(), commentModel.getId(), commentModel.getContent());
|
||||
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user