From ad45fb6df348fca31e1b8618593c2347fd338041 Mon Sep 17 00:00:00 2001 From: Cristina Axinte Date: Wed, 18 Jan 2017 10:56:38 +0200 Subject: [PATCH] added one full test for call using properties parameter --- .../rest/sites/GetSiteContainersFullTests.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/e2e-test/java/org/alfresco/rest/sites/GetSiteContainersFullTests.java b/e2e-test/java/org/alfresco/rest/sites/GetSiteContainersFullTests.java index 57baa59a3..b4f0210d6 100644 --- a/e2e-test/java/org/alfresco/rest/sites/GetSiteContainersFullTests.java +++ b/e2e-test/java/org/alfresco/rest/sites/GetSiteContainersFullTests.java @@ -44,6 +44,21 @@ public class GetSiteContainersFullTests extends RestTest totalItems = restSiteContainers.getPagination().getTotalItems(); } + @Test(groups = { TestGroup.REST_API, TestGroup.SITES, TestGroup.FULL }) + @TestRail(section={TestGroup.REST_API, TestGroup.SITES}, executionType= ExecutionType.REGRESSION, + description= "Verify if get site container request with properties paramater applied returns status code 200") + public void getSiteContainersUsingPropertiesParameter() throws Exception + { + restClient.authenticateUser(publicSiteWithContainersUsers.getOneUserWithRole(UserRole.SiteManager)) + .withCoreAPI().usingSite(publicSiteWithContainers).usingParams("properties=folderId").getSiteContainers() + .assertThat().entriesListCountIs(3) + .and().entriesListContains("folderId" ,ContainerName.discussions.toString()) + .and().entriesListContains("folderId" ,ContainerName.documentLibrary.toString()) + .and().entriesListContains("folderId" ,ContainerName.links.toString()) + .and().entriesListDoesNotContain("id"); + restClient.assertStatusCodeIs(HttpStatus.OK); + } + @Test(groups = { TestGroup.REST_API, TestGroup.SITES, TestGroup.FULL }) @TestRail(section={TestGroup.REST_API, TestGroup.SITES}, executionType= ExecutionType.REGRESSION, description= "Verify if get site container request for a container that is not empty returns status code 200")