Skip to content

Commit

Permalink
Fixed integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vinay Krishna Pudyodu <[email protected]>
  • Loading branch information
vinaykpud committed Jan 15, 2025
1 parent 2f14b02 commit 459d00b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,31 @@
import org.opensearch.indices.replication.common.ReplicationType;
import org.opensearch.test.OpenSearchIntegTestCase;

import java.nio.file.Path;

public class AutoExpandWithSearchReplicaIT extends OpenSearchIntegTestCase {

private static final String INDEX_NAME = "test-idx-1";
private static final String REPOSITORY_NAME = "test-remote-store-repo";

private Path absolutePath;

@Override
protected Settings featureFlagSettings() {
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.READER_WRITER_SPLIT_EXPERIMENTAL, true).build();
}

@Override
protected Settings nodeSettings(int nodeOrdinal) {
if (absolutePath == null) {
absolutePath = randomRepoPath().toAbsolutePath();
}
return Settings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put(remoteStoreClusterSettings(REPOSITORY_NAME, absolutePath))
.build();
}

public void testEnableAutoExpandWhenSearchReplicaActive() {
internalCluster().startDataOnlyNodes(3);
createIndex(
Expand Down

0 comments on commit 459d00b

Please sign in to comment.