Skip to content

Commit f9ff7cc

Browse files
committed
Remove feature flag from test cluster configs
1 parent efed960 commit f9ff7cc

File tree

29 files changed

+2
-67
lines changed

29 files changed

+2
-67
lines changed

docs/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
8585
setting 'xpack.license.self_generated.type', 'trial'
8686
setting 'indices.lifecycle.history_index_enabled', 'false'
8787
keystorePassword 'keystore-password'
88-
if (buildParams.snapshotBuild == false) {
89-
requiresFeature 'es.failure_store_feature_flag_enabled', new Version(8, 12, 0)
90-
}
9188
}
9289

9390
// debug ccr test failures:
@@ -126,7 +123,6 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
126123

127124

128125
requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")
129-
requiresFeature 'es.failure_store_feature_flag_enabled', Version.fromString("8.12.0")
130126

131127
// TODO Rene: clean up this kind of cross project file references
132128
extraConfigFile 'op-jwks.json', project(':x-pack:test:idp-fixture').file("src/main/resources/oidc/op-jwks.json")

modules/data-streams/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ if (buildParams.inFipsJvm){
3636
tasks.named("yamlRestTest").configure{enabled = false }
3737
}
3838

39-
if (buildParams.snapshotBuild == false) {
40-
tasks.withType(Test).configureEach {
41-
systemProperty 'es.failure_store_feature_flag_enabled', 'true'
42-
}
43-
}
44-
4539
tasks.named("yamlRestCompatTestTransform").configure({ task ->
4640
task.skipTest("data_stream/10_basic/Create hidden data stream", "warning does not exist for compatibility")
4741

modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/AbstractDataStreamIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.elasticsearch.common.settings.Settings;
1717
import org.elasticsearch.common.util.concurrent.ThreadContext;
1818
import org.elasticsearch.test.cluster.ElasticsearchCluster;
19-
import org.elasticsearch.test.cluster.FeatureFlag;
2019
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2120
import org.elasticsearch.test.rest.ESRestTestCase;
2221
import org.junit.After;
@@ -38,7 +37,6 @@ public abstract class AbstractDataStreamIT extends ESRestTestCase {
3837
@ClassRule
3938
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
4039
.distribution(DistributionType.DEFAULT)
41-
.feature(FeatureFlag.FAILURE_STORE_ENABLED)
4240
.setting("xpack.security.enabled", "false")
4341
.setting("xpack.watcher.enabled", "false")
4442
// Disable apm-data so the index templates it installs do not impact

modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/DataStreamWithSecurityIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.elasticsearch.common.settings.Settings;
1616
import org.elasticsearch.common.util.concurrent.ThreadContext;
1717
import org.elasticsearch.test.cluster.ElasticsearchCluster;
18-
import org.elasticsearch.test.cluster.FeatureFlag;
1918
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2019
import org.elasticsearch.test.cluster.util.resource.Resource;
2120
import org.elasticsearch.test.rest.ESRestTestCase;
@@ -29,7 +28,6 @@ public class DataStreamWithSecurityIT extends ESRestTestCase {
2928
@ClassRule
3029
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
3130
.distribution(DistributionType.DEFAULT)
32-
.feature(FeatureFlag.FAILURE_STORE_ENABLED)
3331
.setting("xpack.watcher.enabled", "false")
3432
.setting("xpack.ml.enabled", "false")
3533
.setting("xpack.security.enabled", "true")

modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/DisabledSecurityDataStreamTestCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.elasticsearch.common.settings.Settings;
1414
import org.elasticsearch.common.util.concurrent.ThreadContext;
1515
import org.elasticsearch.test.cluster.ElasticsearchCluster;
16-
import org.elasticsearch.test.cluster.FeatureFlag;
1716
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
1817
import org.elasticsearch.test.rest.ESRestTestCase;
1918
import org.junit.ClassRule;
@@ -27,7 +26,6 @@ public abstract class DisabledSecurityDataStreamTestCase extends ESRestTestCase
2726
@ClassRule
2827
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
2928
.distribution(DistributionType.DEFAULT)
30-
.feature(FeatureFlag.FAILURE_STORE_ENABLED)
3129
.setting("xpack.security.enabled", "false")
3230
.setting("xpack.watcher.enabled", "false")
3331
.build();

modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/LazyRolloverDataStreamIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.elasticsearch.common.settings.Settings;
1818
import org.elasticsearch.common.util.concurrent.ThreadContext;
1919
import org.elasticsearch.test.cluster.ElasticsearchCluster;
20-
import org.elasticsearch.test.cluster.FeatureFlag;
2120
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2221
import org.elasticsearch.test.cluster.util.resource.Resource;
2322
import org.elasticsearch.test.rest.ESRestTestCase;
@@ -41,7 +40,6 @@ public class LazyRolloverDataStreamIT extends ESRestTestCase {
4140
@ClassRule
4241
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
4342
.distribution(DistributionType.DEFAULT)
44-
.feature(FeatureFlag.FAILURE_STORE_ENABLED)
4543
.setting("xpack.watcher.enabled", "false")
4644
.setting("xpack.ml.enabled", "false")
4745
.setting("xpack.security.enabled", "true")

modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams/lifecycle/DataStreamLifecyclePermissionsTestCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.elasticsearch.common.util.concurrent.ThreadContext;
2020
import org.elasticsearch.rest.RestStatus;
2121
import org.elasticsearch.test.cluster.ElasticsearchCluster;
22-
import org.elasticsearch.test.cluster.FeatureFlag;
2322
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2423
import org.elasticsearch.test.cluster.util.resource.Resource;
2524
import org.elasticsearch.test.rest.ESRestTestCase;
@@ -46,7 +45,6 @@ public abstract class DataStreamLifecyclePermissionsTestCase extends ESRestTestC
4645
@ClassRule
4746
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
4847
.distribution(DistributionType.DEFAULT)
49-
.feature(FeatureFlag.FAILURE_STORE_ENABLED)
5048
.setting("xpack.watcher.enabled", "false")
5149
.setting("xpack.ml.enabled", "false")
5250
.setting("xpack.security.enabled", "true")

modules/data-streams/src/yamlRestTest/java/org/elasticsearch/datastreams/DataStreamsClientYamlTestSuiteIT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
2121
import org.junit.ClassRule;
2222

23-
import static org.elasticsearch.test.cluster.FeatureFlag.FAILURE_STORE_ENABLED;
24-
2523
public class DataStreamsClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
2624

2725
public DataStreamsClientYamlTestSuiteIT(final ClientYamlTestCandidate testCandidate) {
@@ -46,7 +44,6 @@ protected Settings restClientSettings() {
4644
private static ElasticsearchCluster createCluster() {
4745
LocalClusterSpecBuilder<ElasticsearchCluster> clusterBuilder = ElasticsearchCluster.local()
4846
.distribution(DistributionType.DEFAULT)
49-
.feature(FAILURE_STORE_ENABLED)
5047
.setting("xpack.security.enabled", "true")
5148
.keystore("bootstrap.password", "x-pack-test-password")
5249
.user("x_pack_rest_user", "x-pack-test-password")

modules/dot-prefix-validation/src/yamlRestTest/java/org/elasticsearch/validation/DotPrefixClientYamlTestSuiteIT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
import java.util.Objects;
2525

26-
import static org.elasticsearch.test.cluster.FeatureFlag.FAILURE_STORE_ENABLED;
27-
2826
public class DotPrefixClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
2927

3028
public DotPrefixClientYamlTestSuiteIT(final ClientYamlTestCandidate testCandidate) {
@@ -49,7 +47,6 @@ protected Settings restClientSettings() {
4947
private static ElasticsearchCluster createCluster() {
5048
LocalClusterSpecBuilder<ElasticsearchCluster> clusterBuilder = ElasticsearchCluster.local()
5149
.distribution(DistributionType.DEFAULT)
52-
.feature(FAILURE_STORE_ENABLED)
5350
.setting("xpack.security.enabled", "true")
5451
.keystore("bootstrap.password", "x-pack-test-password")
5552
.user("x_pack_rest_user", "x-pack-test-password");

qa/ccs-rolling-upgrade-remote-cluster/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ buildParams.bwcVersions.withWireCompatible { bwcVersion, baseName ->
2929
versions = [bwcVersion.toString(), project.version]
3030
setting 'cluster.remote.node.attr', 'gateway'
3131
setting 'xpack.security.enabled', 'false'
32-
requiresFeature 'es.failure_store_feature_flag_enabled', new Version(8, 12, 0)
3332
}
3433
def remoteCluster = testClusters.register("${baseName}-remote") {
3534
numberOfNodes = 3
3635
versions = [bwcVersion.toString(), project.version]
3736
firstNode.setting 'node.attr.gateway', 'true'
3837
lastNode.setting 'node.attr.gateway', 'true'
3938
setting 'xpack.security.enabled', 'false'
40-
requiresFeature 'es.failure_store_feature_flag_enabled', new Version(8, 12, 0)
4139
}
4240

4341

0 commit comments

Comments
 (0)