Skip to content

Commit

Permalink
ACS-5799 re-enabling PATH related E2E tests (#2617)
Browse files Browse the repository at this point in the history
* ACS-5799: Re-enabling PATH query related E2E tests.

* ACS-5799: Re-enabling PATH query related E2E tests.
  • Loading branch information
mpichura authored Oct 30, 2023
1 parent 384ee96 commit e8c6663
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.alfresco.utility.model.TestGroup;
import org.alfresco.utility.network.ServerHealth;
import org.alfresco.utility.report.log.Step;
import org.junit.Ignore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
Expand Down Expand Up @@ -92,16 +91,14 @@ public void testRelativePathQuery()
searchQueryService.expectResultsFromQuery(query, testUser, testFileName);
}

@Test(groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test(groups = TestGroup.SEARCH)
public void testRelativePathQueryWithoutPrefixes()
{
SearchRequest query = req("PATH:\"//" + testFileName + "\" AND name:*");
searchQueryService.expectResultsFromQuery(query, testUser, testFileName);
}

@Test(groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test(groups = TestGroup.SEARCH)
public void testWildcardQuery()
{
// The test file should be the only descendent of the last folder.
Expand All @@ -125,11 +122,10 @@ public void testAbsolutePathQuery()
searchQueryService.expectResultsFromQuery(query, testUser, testFileName);
}

@Test(groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test(groups = TestGroup.SEARCH)
public void testAbsolutePathQueryWithoutPrefixes()
{
String folderPath = testFolders.stream().map(folder -> "cm:" + folder.getName()).collect(Collectors.joining("/"));
String folderPath = testFolders.stream().map(folder -> folder.getName()).collect(Collectors.joining("/"));
SearchRequest query = req("PATH:\"/company_home/sites/" + testSite.getId() + "/documentLibrary/" + folderPath + "/" + testFileName + "\" AND name:*");
searchQueryService.expectResultsFromQuery(query, testUser, testFileName);
}
Expand Down Expand Up @@ -162,8 +158,7 @@ public void testPathNameIntersect()
searchQueryService.expectResultsFromQuery(query, testUser, testFileName);
}

@Test(groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test(groups = TestGroup.SEARCH)
public void testAllDescendentsOfFolder()
{
SearchRequest query = req("PATH:\"//" + testFolders.get(0).getName() + "//*\" AND name:*");
Expand Down Expand Up @@ -203,8 +198,7 @@ public void testParent()
searchQueryService.expectResultsFromQuery(query, testUser, testFolders.get(2).getName());
}

@Test(groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test(groups = TestGroup.SEARCH)
public void testAllFoldersInSite()
{
SearchRequest query = req("PATH:\"/*/sites/" + testSite.getId() + "/*//*\" AND TYPE:\"cm:folder\" AND name:*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.alfresco.utility.model.TestGroup;
import org.alfresco.utility.network.ServerHealth;
import org.apache.http.HttpHost;
import org.junit.Ignore;
import org.opensearch.client.RequestOptions;
import org.opensearch.client.RestClient;
import org.opensearch.client.RestHighLevelClient;
Expand Down Expand Up @@ -257,8 +256,7 @@ public void testRecreateIndexWithNoMetadataAndPath()
"cm:name:'<DOCUMENT_NAME>' AND cm:name:*", false);
}

@Test (groups = TestGroup.SEARCH, enabled = false)
@Ignore("Until ACS-5798 is done")
@Test (groups = TestGroup.SEARCH)
public void testPathReindex()
{
// GIVEN
Expand Down

0 comments on commit e8c6663

Please sign in to comment.