diff --git a/qa/rolling-upgrade/build.gradle b/qa/rolling-upgrade/build.gradle index 3dff452be855f..2d70d41d09680 100644 --- a/qa/rolling-upgrade/build.gradle +++ b/qa/rolling-upgrade/build.gradle @@ -62,6 +62,12 @@ for (Version bwcVersion : BuildParams.bwcVersions.wireCompatible) { setting 'repositories.url.allowed_urls', 'http://snapshot.test*' setting 'path.repo', "${buildDir}/cluster/shared/repo/${baseName}" setting 'http.content_type.required', 'true' + setting 'node.attr.remote_store.routing_table.repository', 'my-fs-repository' + setting 'node.attr.remote_store.state.repository', 'my-fs-repository' + setting 'node.attr.remote_store.repository.my-fs-repository.type', 'fs' + setting 'node.attr.remote_store.repository.my-fs-repository.settings.location', "${buildDir}/cluster/shared/repo/remote_state" + setting 'cluster.remote_store.state.enabled', 'true' + setting 'cluster.remote_store.publication.enabled', 'true' } } diff --git a/qa/rolling-upgrade/src/test/java/org/opensearch/upgrades/ClusterStateIT.java b/qa/rolling-upgrade/src/test/java/org/opensearch/upgrades/ClusterStateIT.java index 2d606d27a34e0..c373ea077fa1d 100644 --- a/qa/rolling-upgrade/src/test/java/org/opensearch/upgrades/ClusterStateIT.java +++ b/qa/rolling-upgrade/src/test/java/org/opensearch/upgrades/ClusterStateIT.java @@ -14,6 +14,21 @@ import java.util.Map; public class ClusterStateIT extends AbstractRollingTestCase{ + @SuppressWarnings("unchecked") + public void testRemotePublicationEnabled() throws Exception { + Request getSettingRequest = new Request("GET", "/_cluster/settings"); + getSettingRequest.addParameter("include_defaults", "true"); + Response response = client().performRequest(getSettingRequest); + assertOK(response); + Map responseMap = entityAsMap(response); + Map persistentSettings = (Map) responseMap.get("persistent"); + assertEquals("true", persistentSettings.get("cluster.remote_store.publication.enabled")); + Map transientSettings = (Map) responseMap.get("transient"); + assertEquals("true", transientSettings.get("cluster.remote_store.publication.enabled")); + Map defaultsSettings = (Map) responseMap.get("defaults"); + assertEquals("true", defaultsSettings.get("cluster.remote_store.publication.enabled")); + } + public void testTemplateMetadataUpgrades() throws Exception { if (CLUSTER_TYPE == ClusterType.OLD) { String templateName = "my_template";