TAS-933 status 404 if commentId does not exist

This commit is contained in:
Cristina Jalba
2016-09-28 15:44:51 +03:00
parent 3d6f93d235
commit c7091d7f2a

View File

@@ -104,4 +104,13 @@ public class UpdateCommentsSanityTest extends RestTest
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.NOT_FOUND.toString());
}
@TestRail(section={"rest-api", "comments"}, executionType= ExecutionType.SANITY,
description= "Verify if commentId is not set the status code is 404")
public void canNotUpdateCommentIfCommentIdIsNotSet() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(adminUserModel);
commentsAPI.updateComment(document.getNodeRef(), "unexistingId", commentModel.getContent());
commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.NOT_FOUND.toString());
}
}