fix error summary for 5.2

This commit is contained in:
cagache
2016-11-23 17:11:55 +02:00
parent 82c7844ce1
commit a0dd95422e
2 changed files with 4 additions and 4 deletions
@@ -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,