Skip to content

Commit 459d00b

Browse files
committed
Fixed integration tests
Signed-off-by: Vinay Krishna Pudyodu <[email protected]>
1 parent 2f14b02 commit 459d00b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

server/src/internalClusterTest/java/org/opensearch/cluster/metadata/AutoExpandWithSearchReplicaIT.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,31 @@
1414
import org.opensearch.indices.replication.common.ReplicationType;
1515
import org.opensearch.test.OpenSearchIntegTestCase;
1616

17+
import java.nio.file.Path;
18+
1719
public class AutoExpandWithSearchReplicaIT extends OpenSearchIntegTestCase {
1820

1921
private static final String INDEX_NAME = "test-idx-1";
22+
private static final String REPOSITORY_NAME = "test-remote-store-repo";
23+
24+
private Path absolutePath;
2025

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

31+
@Override
32+
protected Settings nodeSettings(int nodeOrdinal) {
33+
if (absolutePath == null) {
34+
absolutePath = randomRepoPath().toAbsolutePath();
35+
}
36+
return Settings.builder()
37+
.put(super.nodeSettings(nodeOrdinal))
38+
.put(remoteStoreClusterSettings(REPOSITORY_NAME, absolutePath))
39+
.build();
40+
}
41+
2642
public void testEnableAutoExpandWhenSearchReplicaActive() {
2743
internalCluster().startDataOnlyNodes(3);
2844
createIndex(

0 commit comments

Comments
 (0)