diff --git a/server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteRepositoryConfigurationIT.java b/server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteRepositoryConfigurationIT.java index 18f849890c7fc..48afa85dc5691 100644 --- a/server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteRepositoryConfigurationIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteRepositoryConfigurationIT.java @@ -14,6 +14,7 @@ import org.opensearch.remotemigration.MigrationBaseTestCase; import org.opensearch.remotestore.multipart.mocks.MockFsRepositoryPlugin; import org.opensearch.repositories.blobstore.BlobStoreRepository; +import org.opensearch.repositories.fs.FsRepository; import org.opensearch.repositories.fs.ReloadableFsRepository; import org.opensearch.test.InternalSettingsPlugin; import org.opensearch.test.OpenSearchIntegTestCase; @@ -115,7 +116,7 @@ public Settings.Builder remoteWithRoutingTableNodeSetting() { segmentRepoPath, REPOSITORY_2_NAME, translogRepoPath, - REPOSITORY_NAME, + ROUTING_TABLE_REPO_NAME, segmentRepoPath, false ) @@ -196,6 +197,7 @@ public void testRemoteNodeWithRoutingTableJoinRemoteCluster() throws Exception { // Remote Repo with Routing table Settings settings = remoteWithRoutingTableNodeSetting().build(); + internalCluster().startClusterManagerOnlyNode(settings); ensureStableCluster(4); ensureGreen(); @@ -285,10 +287,13 @@ public void testRemoteNodeWithRoutingTableJoiningPublishConfigCluster() throws E buildRemoteStoreNodeAttributes( REPOSITORY_NAME, segmentRepoPath, + ReloadableFsRepository.TYPE, REPOSITORY_2_NAME, translogRepoPath, + FsRepository.TYPE, ROUTING_TABLE_REPO_NAME, segmentRepoPath, + ReloadableFsRepository.TYPE, false ) ) diff --git a/test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java b/test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java index e27ff311c06f6..1ee856d3092f0 100644 --- a/test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java +++ b/test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java @@ -2838,7 +2838,7 @@ private static Settings buildRemoteStoreNodeAttributes( ); } - private static Settings buildRemoteStoreNodeAttributes( + protected static Settings buildRemoteStoreNodeAttributes( String segmentRepoName, Path segmentRepoPath, String segmentRepoType,