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