diff --git a/e2e-test/java/org/alfresco/rest/search/SearchTest.java b/e2e-test/java/org/alfresco/rest/search/SearchTest.java index 76cf231d9..37a8d0fd0 100644 --- a/e2e-test/java/org/alfresco/rest/search/SearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/SearchTest.java @@ -75,9 +75,8 @@ public class SearchTest extends AbstractSearchTest response.getContext().assertThat().field("request").isNotEmpty(); } + // Test that when fields parameter is set, only restricted fields appear in the response @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) - @TestRail(section = { TestGroup.REST_API, TestGroup.SEARCH, - TestGroup.ASS_1 }, executionType = ExecutionType.REGRESSION, description = "Checks that only restricted fields appear in the response") public void searchWithFields() throws Exception { SearchRequest query = new SearchRequest(); @@ -85,7 +84,7 @@ public class SearchTest extends AbstractSearchTest queryReq.setQuery("alfresco"); query.setQuery(queryReq); - // Restrict to fields + // Restrict to fields: parentId List fields = new ArrayList(); fields.add("parentId"); query.setFields(fields);