mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
fix error summary for 5.2
This commit is contained in:
@@ -44,7 +44,7 @@ public class GetRatingsCoreTests extends RestTest {
|
||||
restClient.authenticateUser(adminUserModel).withParams("maxItems=0").withCoreAPI().usingResource(document)
|
||||
.getLikeRating();
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError()
|
||||
.containsSummary(String.format(ErrorModel.INVALID_ARGUMENT, "argument"));
|
||||
.containsSummary("Only positive values supported for maxItems");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
@@ -54,7 +54,7 @@ public class GetRatingsCoreTests extends RestTest {
|
||||
restClient.authenticateUser(adminUserModel).withParams("skipCount=AB").withCoreAPI().usingResource(document)
|
||||
.getLikeRating();
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError()
|
||||
.containsSummary(String.format(ErrorModel.INVALID_ARGUMENT, "argument"));
|
||||
.containsSummary("Invalid paging parameter skipCount:AB");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
|
||||
@@ -54,7 +54,7 @@ public class GetSitesCoreTests extends RestTest
|
||||
restClient.authenticateUser(userModel).withParams("maxItems=0")
|
||||
.withCoreAPI().getSites();
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST)
|
||||
.assertLastError().containsSummary(String.format(ErrorModel.INVALID_ARGUMENT, "argument"));
|
||||
.assertLastError().containsSummary("Only positive values supported for maxItems");
|
||||
}
|
||||
|
||||
@TestRail(section={TestGroup.REST_API, TestGroup.CORE, TestGroup.SITES}, executionType= ExecutionType.REGRESSION,
|
||||
@@ -64,7 +64,7 @@ public class GetSitesCoreTests extends RestTest
|
||||
restClient.authenticateUser(userModel).withParams("skipCount=A")
|
||||
.withCoreAPI().getSites();
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST)
|
||||
.assertLastError().containsSummary(String.format(ErrorModel.INVALID_ARGUMENT, "argument"));
|
||||
.assertLastError().containsSummary("Invalid paging parameter skipCount:A");
|
||||
}
|
||||
|
||||
@TestRail(section={TestGroup.REST_API, TestGroup.CORE, TestGroup.SITES}, executionType= ExecutionType.REGRESSION,
|
||||
|
||||
Reference in New Issue
Block a user