mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
SEARCH-2121 Changing Test Group Name to CONFIG_ENABLED_CASCADE_TRACKER
This commit is contained in:
@@ -34,7 +34,7 @@ public class TestGroup
|
|||||||
public static final String CONFIG_SHARDING_EXPLICIT ="CONFIG_Sharding_EXPLICIT"; // Alfresco search services using sharded environment and explicit routing
|
public static final String CONFIG_SHARDING_EXPLICIT ="CONFIG_Sharding_EXPLICIT"; // Alfresco search services using sharded environment and explicit routing
|
||||||
public static final String CONFIG_SHARDING_DB_ID_RANGE = "CONFIG_Sharding_DB_ID_RANGE"; // Alfresco Search Services using Sharding with DB_ID_RANGE
|
public static final String CONFIG_SHARDING_DB_ID_RANGE = "CONFIG_Sharding_DB_ID_RANGE"; // Alfresco Search Services using Sharding with DB_ID_RANGE
|
||||||
|
|
||||||
public static final String CONFIG_DISABLE_CASCADE_TRACKER ="Config_Disable_Cascade_Tracker"; // Alfresco search services does not index fields related to cascaded updates
|
public static final String CONFIG_ENABLED_CASCADE_TRACKER ="Config_Enabled_Cascade_Tracker"; // Alfresco search services does not index fields related to cascaded updates
|
||||||
|
|
||||||
public static final String NOT_INSIGHT_ENGINE = "Not_InsightEngine"; // When Alfresco Insight Engine 1.0 isn't running
|
public static final String NOT_INSIGHT_ENGINE = "Not_InsightEngine"; // When Alfresco Insight Engine 1.0 isn't running
|
||||||
|
|
||||||
|
@@ -141,7 +141,7 @@ public class SolrSearchByAspectTests extends AbstractCmisE2ETest
|
|||||||
Assert.assertTrue(waitForIndexing(currentQuery, query.getResults()), String.format("Result count not as expected for query: %s", currentQuery));
|
Assert.assertTrue(waitForIndexing(currentQuery, query.getResults()), String.format("Result count not as expected for query: %s", currentQuery));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-aspect-in-tree.xml")
|
@XMLDataConfig(file = "src/test/resources/testdata/search-by-aspect-in-tree.xml")
|
||||||
public void executeSearchByAspectInTree(QueryModel query) throws Exception
|
public void executeSearchByAspectInTree(QueryModel query) throws Exception
|
||||||
{
|
{
|
||||||
|
@@ -102,7 +102,7 @@ public class SolrSearchByIdTests extends AbstractCmisE2ETest
|
|||||||
Assert.assertTrue(waitForIndexing(currentQuery, query.getResults()), String.format("Result count not as expected for query: %s", currentQuery));
|
Assert.assertTrue(waitForIndexing(currentQuery, query.getResults()), String.format("Result count not as expected for query: %s", currentQuery));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-id-in-tree.xml")
|
@XMLDataConfig(file = "src/test/resources/testdata/search-by-id-in-tree.xml")
|
||||||
public void executeSearchByIdInTree(QueryModel query) throws Exception
|
public void executeSearchByIdInTree(QueryModel query) throws Exception
|
||||||
{
|
{
|
||||||
|
@@ -49,7 +49,7 @@ public class SolrSearchByPathTests extends AbstractCmisE2ETest
|
|||||||
Utility.waitToLoopTime(getSolrWaitTimeInSeconds());
|
Utility.waitToLoopTime(getSolrWaitTimeInSeconds());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = "prepareDataForSearchByPath", dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(dependsOnMethods = "prepareDataForSearchByPath", dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@XMLDataConfig(file = "src/test/resources/testdata/search-by-path.xml")
|
@XMLDataConfig(file = "src/test/resources/testdata/search-by-path.xml")
|
||||||
public void executeSearchByPathQueries(QueryModel query)
|
public void executeSearchByPathQueries(QueryModel query)
|
||||||
{
|
{
|
||||||
|
@@ -56,7 +56,7 @@ public class SolrSearchInTreeTests extends AbstractCmisE2ETest
|
|||||||
dataContent.deleteSite(testSite);
|
dataContent.deleteSite(testSite);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(dataProviderClass = XMLTestDataProvider.class, dataProvider = "getQueriesData", groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@XMLDataConfig(file = "src/test/resources/testdata/search-in-tree.xml")
|
@XMLDataConfig(file = "src/test/resources/testdata/search-in-tree.xml")
|
||||||
public void executeCMISQuery(QueryModel query) throws Exception
|
public void executeCMISQuery(QueryModel query) throws Exception
|
||||||
{
|
{
|
||||||
|
@@ -95,7 +95,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
|||||||
waitForContentIndexing(htmlFile.getContent(), true);
|
waitForContentIndexing(htmlFile.getContent(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testSearchFacetFieldsBucketExcludedWhenMinCount2() throws Exception
|
public void testSearchFacetFieldsBucketExcludedWhenMinCount2() throws Exception
|
||||||
{
|
{
|
||||||
// Create Query with FacetFields: Site and Content MimeType
|
// Create Query with FacetFields: Site and Content MimeType
|
||||||
@@ -131,7 +131,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testSearchWithFacetFieldsMinCountChecks() throws Exception
|
public void testSearchWithFacetFieldsMinCountChecks() throws Exception
|
||||||
{
|
{
|
||||||
SearchRequest query = new SearchRequest();
|
SearchRequest query = new SearchRequest();
|
||||||
@@ -206,7 +206,7 @@ public class FacetFieldsSearchTest extends AbstractE2EFunctionalTest
|
|||||||
Assert.assertNull(response.getContext().getFacetsFields());
|
Assert.assertNull(response.getContext().getFacetsFields());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testSearchWithFacetFieldsOnlyFacetsWhereAccess() throws Exception
|
public void testSearchWithFacetFieldsOnlyFacetsWhereAccess() throws Exception
|
||||||
{
|
{
|
||||||
SearchRequest query = new SearchRequest();
|
SearchRequest query = new SearchRequest();
|
||||||
|
@@ -109,7 +109,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
.containsSummary(String.format(RestErrorModel.MANDATORY_PARAM, "gap"));
|
.containsSummary(String.format(RestErrorModel.MANDATORY_PARAM, "gap"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||||
description = "Check basic facet range search api")
|
description = "Check basic facet range search api")
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -159,7 +159,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
assertEquals(info.get("endInclusive"), "true");
|
assertEquals(info.get("endInclusive"), "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||||
description = "Check date facet intervals search api")
|
description = "Check date facet intervals search api")
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -257,7 +257,7 @@ public class FacetRangeSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
query.setRanges(ranges);
|
query.setRanges(ranges);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||||
description = "Check basic facet range search api")
|
description = "Check basic facet range search api")
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@@ -102,7 +102,7 @@ public class FacetedSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
waitForContentIndexing(file4.getContent(), true);
|
waitForContentIndexing(file4.getContent(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@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}, executionType = ExecutionType.REGRESSION, description = "Checks facet queries for the Search api")
|
||||||
public void searchWithQueryFaceting() throws Exception
|
public void searchWithQueryFaceting() throws Exception
|
||||||
{
|
{
|
||||||
|
@@ -119,7 +119,7 @@ public class PivotFacetedSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
assertPivotResponse(response, "creator", null);
|
assertPivotResponse(response, "creator", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH},
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH},
|
||||||
executionType = ExecutionType.REGRESSION,
|
executionType = ExecutionType.REGRESSION,
|
||||||
description = "Checks nested pivot using Search api")
|
description = "Checks nested pivot using Search api")
|
||||||
|
@@ -155,7 +155,7 @@ public class SearchAFTSInFieldTest extends AbstractE2EFunctionalTest
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testSearchInFieldSITE()
|
public void testSearchInFieldSITE()
|
||||||
{
|
{
|
||||||
String query = "SITE:" + testSite.getId();
|
String query = "SITE:" + testSite.getId();
|
||||||
|
@@ -93,7 +93,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
|||||||
*}}
|
*}}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void searchLevel0()
|
public void searchLevel0()
|
||||||
{
|
{
|
||||||
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:*", "0");
|
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:*", "0");
|
||||||
@@ -109,7 +109,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
|||||||
* Test to test that the facet buckets are returned correctly for sub-level 1/
|
* 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 to search for a searchString, that's unique to the test run and hence stable for any environment
|
||||||
*/
|
*/
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void searchLevel0andIncludeSubLevel1()
|
public void searchLevel0andIncludeSubLevel1()
|
||||||
{
|
{
|
||||||
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:" + unique_searchString, "1/");
|
SearchRequest searchQuery = searchRequestWithAPATHFacet("name:" + unique_searchString, "1/");
|
||||||
@@ -121,7 +121,7 @@ public class SearchAPATHTest extends AbstractSearchServicesE2ETest
|
|||||||
getFirstBucket(response).assertThat().field("label").contains("1/");
|
getFirstBucket(response).assertThat().field("label").contains("1/");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void searchLevel2()
|
public void searchLevel2()
|
||||||
{
|
{
|
||||||
String queryString = "name:cars";
|
String queryString = "name:cars";
|
||||||
|
@@ -53,7 +53,7 @@ public class SearchSecondaryAssociationTest extends AbstractE2EFunctionalTest
|
|||||||
waitForMetadataIndexing(file1.getName(), true);
|
waitForMetadataIndexing(file1.getName(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 1, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(priority = 1, groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testSearchPathForSecondaryAssociation() throws Exception
|
public void testSearchPathForSecondaryAssociation() throws Exception
|
||||||
{
|
{
|
||||||
String queryPathFolder1 = "PATH:\"/app:company_home/st:sites/cm:" + testSite.getTitle() +
|
String queryPathFolder1 = "PATH:\"/app:company_home/st:sites/cm:" + testSite.getTitle() +
|
||||||
|
@@ -101,7 +101,7 @@ public class SearchTest extends AbstractSearchServicesE2ETest
|
|||||||
response.getContext().assertThat().field("request").isNotEmpty();
|
response.getContext().assertThat().field("request").isNotEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||||
description = "Tests a search request containing a sort clause.")
|
description = "Tests a search request containing a sort clause.")
|
||||||
public void searchWithOneSortClause()
|
public void searchWithOneSortClause()
|
||||||
@@ -148,7 +148,7 @@ public class SearchTest extends AbstractSearchServicesE2ETest
|
|||||||
* The first clause has always the same value for all matches so the test makes sure the request is correctly
|
* The first clause has always the same value for all matches so the test makes sure the request is correctly
|
||||||
* processed and the returned order is determined by the second clause.
|
* processed and the returned order is determined by the second clause.
|
||||||
*/
|
*/
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH}, executionType = ExecutionType.REGRESSION,
|
||||||
description = "Tests a search request containing a sort clause.")
|
description = "Tests a search request containing a sort clause.")
|
||||||
public void searchWithTwoSortClauses()
|
public void searchWithTwoSortClauses()
|
||||||
|
@@ -203,7 +203,7 @@ public class StatsSearchTest extends AbstractSearchServicesE2ETest
|
|||||||
assertTrue((Integer)metricCount.get("countValues") > count, "With the exclude filter there will be more documents than returned");
|
assertTrue((Integer)metricCount.get("countValues") > count, "With the exclude filter there will be more documents than returned");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH},
|
@TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH},
|
||||||
executionType = ExecutionType.REGRESSION,
|
executionType = ExecutionType.REGRESSION,
|
||||||
description = "Checks errors with stats with Pivot using Search api")
|
description = "Checks errors with stats with Pivot using Search api")
|
||||||
|
@@ -76,7 +76,7 @@ public class CascadingIntegrationTest extends AbstractE2EFunctionalTest
|
|||||||
"failing while removing sharding model");
|
"failing while removing sharding model");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 1, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(priority = 1, groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testChildPathWhenParentRenamed() throws Exception
|
public void testChildPathWhenParentRenamed() throws Exception
|
||||||
{
|
{
|
||||||
// Create Parent folder
|
// Create Parent folder
|
||||||
@@ -119,7 +119,7 @@ public class CascadingIntegrationTest extends AbstractE2EFunctionalTest
|
|||||||
Assert.assertEquals(descendantCountOfOriginalName, 0, "Old path still has descendants: " + parentQuery);
|
Assert.assertEquals(descendantCountOfOriginalName, 0, "Old path still has descendants: " + parentQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 2, groups={TestGroup.CONFIG_DISABLE_CASCADE_TRACKER})
|
@Test(priority = 2, groups={TestGroup.CONFIG_ENABLED_CASCADE_TRACKER})
|
||||||
public void testGrandChildPathWhenGrandParentRenamed() throws Exception
|
public void testGrandChildPathWhenGrandParentRenamed() throws Exception
|
||||||
{
|
{
|
||||||
// Create grand parent folder
|
// Create grand parent folder
|
||||||
|
Reference in New Issue
Block a user