mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
TAS-932 status 404 if nodeId doesn not exist
This commit is contained in:
@@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user