mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
added response assertion onResponse on RestWrapper
This commit is contained in:
@@ -46,6 +46,7 @@ public class AddCommentSanityTests extends RestTest
|
||||
.assertThat().field("content").isNotEmpty()
|
||||
.and().field("content").is(newContent);
|
||||
restClient.assertStatusCodeIs(HttpStatus.CREATED);
|
||||
restClient.onResponse().assertThat().body("entry.edited", org.hamcrest.Matchers.is(false));
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.COMMENTS }, executionType = ExecutionType.SANITY, description = "Verify Manager user adds comments with Rest API and status code is 201")
|
||||
|
||||
Reference in New Issue
Block a user