Skip to content

Commit

Permalink
[ACS-9069] Missed some classes, restoring required method
Browse files Browse the repository at this point in the history
  • Loading branch information
cezary-witkowski committed Dec 12, 2024
1 parent 3eb886b commit 32b72d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
import static java.util.stream.Collectors.joining;

import static org.alfresco.elasticsearch.SearchQueryService.req;
import static org.alfresco.tas.AlfrescoStackInitializer.reindex;

import java.util.Arrays;
import java.util.Map;

import jakarta.json.Json;
import jakarta.json.JsonObject;

Expand Down Expand Up @@ -68,7 +65,7 @@ public void dataPreparation()

// Before we start testing the live indexing we need to use the reindexing component to index the system nodes.
Step.STEP("Index system nodes.");
reindex(Map.of("ALFRESCO_REINDEX_PATHINDEXINGENABLED", "true")); // Ensure path reindexing is enabled.
AlfrescoStackInitializer.reindexEverything();

Step.STEP("Create a test user and private site.");
testUser = dataUser.createRandomTestUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,18 @@ public void configureSecuritySettings(GenericContainer searchEngineContainer)
}

/**
* Run the alfresco-elasticsearch-reindexing container.
*
* @param envParam Any environment variables to override from the defaults.
* Run the alfresco-elasticsearch-reindexing container with path reindexing enabled.
*/
public static void reindexEverything()
{
reindex(Map.of("ALFRESCO_REINDEX_PATHINDEXINGENABLED", "true")); // Ensure path reindexing is enabled.
}

/**
* Run the alfresco-elasticsearch-reindexing container.
*
* @param envParam Any environment variables to override from the defaults.
*/
public static void reindex(Map<String, String> envParam)
{
// Run the reindexing container.
Expand Down

0 comments on commit 32b72d5

Please sign in to comment.