Skip to content

Commit cc7d347

Browse files
Fix test compression setting upgrade tests (#74854)
This is related to #74755. The test to check that compression settings are compatible after upgrade uses the cluster.remote prefix for remote cluster settings. These settings did not exist in early versions of 6.x. This commit adds an assume true to ensure that the test is not run against older versions. Co-authored-by: Tim Brooks <[email protected]>
1 parent 004b8ad commit cc7d347

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,9 @@ public void testForbidDisableSoftDeletesOnRestore() throws Exception {
16751675
* translated properly. This test can be removed in 9.0.
16761676
*/
16771677
public void testTransportCompressionSetting() throws IOException {
1678+
assumeTrue("the old transport.compress setting existed before 7.14", getOldClusterVersion().before(Version.V_7_14_0));
1679+
assumeTrue("Early versions of 6.x do not have cluster.remote* prefixed settings",
1680+
getOldClusterVersion().onOrAfter(Version.V_7_14_0.minimumCompatibilityVersion()));
16781681
if (isRunningAgainstOldCluster()) {
16791682
final Request putSettingsRequest = new Request("PUT", "/_cluster/settings");
16801683
try (XContentBuilder builder = jsonBuilder()) {

0 commit comments

Comments
 (0)