mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-2121 Adding test group to failing tests with cascade tracking disabled
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.test.search.functional.searchServices.cmis;
|
||||
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.utility.Utility;
|
||||
import org.alfresco.utility.data.CustomObjectTypeProperties;
|
||||
import org.alfresco.utility.data.provider.XMLDataConfig;
|
||||
@@ -128,7 +129,7 @@ public class SolrSearchByAspectTests extends AbstractCmisE2ETest
|
||||
Utility.waitToLoopTime(getSolrWaitTimeInSeconds());
|
||||
}
|
||||
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData")
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-aspect.xml")
|
||||
public void executeSearchByAspect(QueryModel query) throws Exception
|
||||
{
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.test.search.functional.searchServices.cmis;
|
||||
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.utility.Utility;
|
||||
import org.alfresco.utility.data.CustomObjectTypeProperties;
|
||||
import org.alfresco.utility.data.provider.XMLDataConfig;
|
||||
@@ -86,7 +87,7 @@ public class SolrSearchByIdTests extends AbstractCmisE2ETest
|
||||
Utility.waitToLoopTime(getSolrWaitTimeInSeconds());
|
||||
}
|
||||
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData")
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-id.xml")
|
||||
public void executeSearchById(QueryModel query) throws Exception
|
||||
{
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.test.search.functional.searchServices.cmis;
|
||||
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.utility.Utility;
|
||||
import org.alfresco.utility.data.provider.XMLDataConfig;
|
||||
import org.alfresco.utility.data.provider.XMLTestData;
|
||||
@@ -48,7 +49,7 @@ public class SolrSearchByPathTests extends AbstractCmisE2ETest
|
||||
Utility.waitToLoopTime(getSolrWaitTimeInSeconds());
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = "prepareDataForSearchByPath", dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData")
|
||||
@Test(dependsOnMethods = "prepareDataForSearchByPath", dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-path.xml")
|
||||
public void executeSearchByPathQueries(QueryModel query)
|
||||
{
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.test.search.functional.searchServices.cmis;
|
||||
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.utility.Utility;
|
||||
import org.alfresco.utility.data.provider.XMLDataConfig;
|
||||
import org.alfresco.utility.data.provider.XMLTestDataProvider;
|
||||
@@ -55,7 +56,7 @@ public class SolrSearchInTreeTests extends AbstractCmisE2ETest
|
||||
dataContent.deleteSite(testSite);
|
||||
}
|
||||
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData")
|
||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
@XMLDataConfig(file = "src/test/resources/testdata/search-in-tree.xml")
|
||||
public void executeCMISQuery(QueryModel query) throws Exception
|
||||
{
|
||||
|
||||
+5
-3
@@ -31,8 +31,10 @@ import org.alfresco.rest.search.RestRequestQueryModel;
|
||||
import org.alfresco.rest.search.RestResultBucketsModel;
|
||||
import org.alfresco.rest.search.SearchRequest;
|
||||
import org.alfresco.rest.search.SearchResponse;
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.test.search.functional.AbstractE2EFunctionalTest;
|
||||
import org.alfresco.utility.data.RandomData;
|
||||
import org.alfresco.utility.data.provider.XMLTestDataProvider;
|
||||
import org.alfresco.utility.model.FileModel;
|
||||
import org.alfresco.utility.model.FileType;
|
||||
import org.alfresco.utility.model.FolderModel;
|
||||
@@ -93,7 +95,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
||||
waitForContentIndexing(htmlFile.getContent(), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testSearchFacetFieldsBucketExcludedWhenMinCount2() throws Exception
|
||||
{
|
||||
// Create Query with FacetFields: Site and Content MimeType
|
||||
@@ -129,7 +131,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testSearchWithFacetFieldsMinCountChecks() throws Exception
|
||||
{
|
||||
SearchRequest query = new SearchRequest();
|
||||
@@ -204,7 +206,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
||||
Assert.assertNull(response.getContext().getFacetsFields());
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testSearchWithFacetFieldsOnlyFacetsWhereAccess() throws Exception
|
||||
{
|
||||
SearchRequest query = new SearchRequest();
|
||||
|
||||
+3
-3
@@ -110,7 +110,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION,
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER}, executionType = ExecutionType.REGRESSION,
|
||||
description = "Check basic facet range search api")
|
||||
@SuppressWarnings("unchecked")
|
||||
public void searchWithRange()
|
||||
@@ -160,7 +160,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION,
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Check date facet intervals search api")
|
||||
@SuppressWarnings("unchecked")
|
||||
public void searchWithRangeHardend()
|
||||
@@ -258,7 +258,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER}, executionType = ExecutionType.REGRESSION,
|
||||
description = "Check basic facet range search api")
|
||||
@SuppressWarnings("unchecked")
|
||||
public void searchWithRangeAndIncludeUpperBound()
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ public class FacetedSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks facet queries for the Search api")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER }, executionType = ExecutionType.REGRESSION, description = "Checks facet queries for the Search api")
|
||||
public void searchWithQueryFaceting() throws Exception
|
||||
{
|
||||
SearchRequest query = new SearchRequest();
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ public class PivotFacetedSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH },
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER},
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Checks nested pivot using Search api")
|
||||
public void searchWithNestedPivoting()
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ public class SearchAFTSInFieldTest extends AbstractE2EFunctionalTest
|
||||
});
|
||||
}
|
||||
|
||||
@Test(priority = 4)
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testSearchInFieldSITE()
|
||||
{
|
||||
String query = "SITE:" + testSite.getId();
|
||||
|
||||
+4
-3
@@ -29,6 +29,7 @@ import org.alfresco.rest.search.RestRequestQueryModel;
|
||||
import org.alfresco.rest.search.RestResultBucketsModel;
|
||||
import org.alfresco.rest.search.SearchRequest;
|
||||
import org.alfresco.rest.search.SearchResponse;
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
@@ -92,7 +93,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
||||
*}}
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void searchLevel0()
|
||||
{
|
||||
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:*", "0");
|
||||
@@ -108,7 +109,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
||||
* Test to test that the facet buckets are returned correctly for sub-level 1/
|
||||
* Test to search for a searchString, that's unique to the test run and hence stable for any environment
|
||||
*/
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void searchLevel0andIncludeSubLevel1()
|
||||
{
|
||||
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:" + unique_searchString, "1/");
|
||||
@@ -120,7 +121,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
||||
getFirstBucket(response).assertThat().field("label").contains("1/");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void searchLevel2()
|
||||
{
|
||||
String queryString = "name:cars";
|
||||
|
||||
+2
-1
@@ -9,6 +9,7 @@ package org.alfresco.test.search.functional.searchServices.search;
|
||||
|
||||
import org.alfresco.rest.model.RestNodeAssociationModelCollection;
|
||||
import org.alfresco.rest.model.RestNodeChildAssociationModel;
|
||||
import org.alfresco.search.TestGroup;
|
||||
import org.alfresco.test.search.functional.AbstractE2EFunctionalTest;
|
||||
import org.alfresco.utility.data.CustomObjectTypeProperties;
|
||||
import org.alfresco.utility.model.FileModel;
|
||||
@@ -52,7 +53,7 @@ public class SearchSecondaryAssociationTest extends AbstractE2EFunctionalTest
|
||||
waitForMetadataIndexing(file1.getName(), true);
|
||||
}
|
||||
|
||||
@Test(priority = 1)
|
||||
@Test(priority = 1, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testSearchPathForSecondaryAssociation() throws Exception
|
||||
{
|
||||
String queryPathFolder1 = "PATH:\"/app:company_home/st:sites/cm:" + testSite.getTitle() +
|
||||
|
||||
+2
-2
@@ -102,7 +102,7 @@ public class SearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION,
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Tests a search request containing a sort clause.")
|
||||
public void searchWithOneSortClause()
|
||||
{
|
||||
@@ -149,7 +149,7 @@ public class SearchTest extends AbstractSearchServicesE2ETest
|
||||
* processed and the returned order is determined by the second clause.
|
||||
*/
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION,
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER}, executionType = ExecutionType.REGRESSION,
|
||||
description = "Tests a search request containing a sort clause.")
|
||||
public void searchWithTwoSortClauses()
|
||||
{
|
||||
|
||||
+1
-1
@@ -204,7 +204,7 @@ public class StatsSearchTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH},
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.CONFIG_DISABLE_CASCADE_TRACKER},
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Checks errors with stats with Pivot using Search api")
|
||||
public void searchWithStatsAndMutlilevelPivot()
|
||||
|
||||
+2
-2
@@ -76,7 +76,7 @@ public class CascadingIntegrationTest extends AbstractE2EFunctionalTest
|
||||
"failing while removing sharding model");
|
||||
}
|
||||
|
||||
@Test(priority = 1)
|
||||
@Test(priority = 1, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testChildPathWhenParentRenamed() throws Exception
|
||||
{
|
||||
// Create Parent folder
|
||||
@@ -119,7 +119,7 @@ public class CascadingIntegrationTest extends AbstractE2EFunctionalTest
|
||||
Assert.assertEquals(descendantCountOfOriginalName, 0, "Old path still has descendants: " + parentQuery);
|
||||
}
|
||||
|
||||
@Test(priority = 2)
|
||||
@Test(priority = 2, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
||||
public void testGrandChildPathWhenGrandParentRenamed() throws Exception
|
||||
{
|
||||
// Create grand parent folder
|
||||
|
||||
Reference in New Issue
Block a user