TAS-929 updateComment with Consumer

This commit is contained in:
Cristina Jalba
2016-09-28 13:45:02 +03:00
parent d5ca004407
commit cffdbe4a4e

View File

@@ -76,4 +76,13 @@ public class UpdateCommentsSanityTest extends RestTest
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString()); 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());
}
} }