TAS-932 status 404 if nodeId doesn not exist

This commit is contained in:
Cristina Jalba
2016-09-28 15:43:59 +03:00
parent 5db79de2f5
commit 3d6f93d235

View File

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