REPO-2289 : Implement tests in TAS project for 'Groups'

Remove DESC sorting from GroupsTests.createListUpdateAndDeleteGroup because the assert does not work properly.
This commit is contained in:
Alexandru-Eusebiu Epure
2017-10-24 17:10:42 +03:00
parent 7cb8112e75
commit 3a80218f24
@@ -46,10 +46,9 @@ public class GroupsTests extends RestTest
restClient.assertStatusCodeIs(HttpStatus.CREATED);
//ListGroups:
restClient.withCoreAPI().usingParams("orderBy=displayName DESC&maxItems=10").usingGroups().listGroups()
restClient.withCoreAPI().usingParams("&maxItems=10").usingGroups().listGroups()
.assertThat().entriesListContains("id", "GROUP_"+groupName)
.and().entriesListDoesNotContain("zones")
.and().entriesListIsSortedDescBy("displayName")
.and().paginationField("maxItems").is("10");
restClient.assertStatusCodeIs(HttpStatus.OK);