mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
TAS-933 status 404 if commentId does not exist
This commit is contained in:
@@ -103,5 +103,14 @@ public class UpdateCommentsSanityTest extends RestTest
|
||||
commentsAPI.updateComment("unexistingId", commentModel.getId(), commentModel.getContent());
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user