File tree 5 files changed +12
-33
lines changed
distribution/archives/integ-test-zip
server/src/main/java/org/elasticsearch/action
x-pack/qa/core-rest-tests-with-security
5 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -545,3 +545,15 @@ allprojects {
545
545
}
546
546
}
547
547
}
548
+
549
+ // TODO: remove this once 7.7 is released and the 7.x branch is 7.8
550
+ subprojects {
551
+ pluginManager. withPlugin(' elasticsearch.testclusters' ) {
552
+ testClusters. all {
553
+ if (org.elasticsearch.gradle.info.BuildParams . isSnapshotBuild() == false ) {
554
+ systemProperty ' es.itv2_feature_flag_registered' , ' true'
555
+ systemProperty ' es.datastreams_feature_flag_registered' , ' true'
556
+ }
557
+ }
558
+ }
559
+ }
Original file line number Diff line number Diff line change 1
- import org.elasticsearch.gradle.info.BuildParams
2
1
/*
3
2
* Licensed to Elasticsearch under one or more contributor
4
3
* license agreements. See the NOTICE file distributed with
@@ -33,10 +32,3 @@ integTest.runner {
33
32
systemProperty ' tests.logfile' , ' --external--'
34
33
}
35
34
}
36
-
37
- testClusters. integTest {
38
- if (BuildParams . isSnapshotBuild() == false ) {
39
- systemProperty ' es.itv2_feature_flag_registered' , ' true'
40
- systemProperty ' es.datastreams_feature_flag_registered' , ' true'
41
- }
42
- }
Original file line number Diff line number Diff line change 16
16
* specific language governing permissions and limitations
17
17
* under the License.
18
18
*/
19
- import org.elasticsearch.gradle.info.BuildParams
20
-
21
- import org.elasticsearch.gradle.info.BuildParams
22
19
23
20
apply plugin : ' elasticsearch.testclusters'
24
21
apply plugin : ' elasticsearch.standalone-rest-test'
@@ -49,10 +46,3 @@ integTest.runner {
49
46
]. join(' ,' )
50
47
}
51
48
}
52
-
53
- testClusters. integTest {
54
- if (BuildParams . isSnapshotBuild() == false ) {
55
- systemProperty ' es.itv2_feature_flag_registered' , ' true'
56
- systemProperty ' es.datastreams_feature_flag_registered' , ' true'
57
- }
58
- }
Original file line number Diff line number Diff line change @@ -381,9 +381,6 @@ public class ActionModule extends AbstractModule {
381
381
382
382
static {
383
383
final String property = System .getProperty ("es.itv2_feature_flag_registered" );
384
- if (Build .CURRENT .isSnapshot () && property != null ) {
385
- throw new IllegalArgumentException ("es.itv2_feature_flag_registered is only supported in non-snapshot builds" );
386
- }
387
384
if (Build .CURRENT .isSnapshot () || "true" .equals (property )) {
388
385
ITV2_FEATURE_FLAG_REGISTERED = true ;
389
386
} else if ("false" .equals (property ) || property == null ) {
@@ -398,9 +395,6 @@ public class ActionModule extends AbstractModule {
398
395
399
396
static {
400
397
final String property = System .getProperty ("es.datastreams_feature_flag_registered" );
401
- if (Build .CURRENT .isSnapshot () && property != null ) {
402
- throw new IllegalArgumentException ("es.datastreams_feature_flag_registered is only supported in non-snapshot builds" );
403
- }
404
398
if (Build .CURRENT .isSnapshot () || "true" .equals (property )) {
405
399
DATASTREAMS_FEATURE_FLAG_REGISTERED = true ;
406
400
} else if ("false" .equals (property ) || property == null ) {
Original file line number Diff line number Diff line change 1
- import org.elasticsearch.gradle.info.BuildParams
2
-
3
1
apply plugin : ' elasticsearch.testclusters'
4
2
apply plugin : ' elasticsearch.standalone-rest-test'
5
3
apply plugin : ' elasticsearch.rest-test'
@@ -39,10 +37,3 @@ testClusters.integTest {
39
37
user username : System . getProperty(' tests.rest.cluster.username' , ' test_user' ),
40
38
password : System . getProperty(' tests.rest.cluster.password' , ' x-pack-test-password' )
41
39
}
42
-
43
- testClusters. integTest {
44
- if (BuildParams . isSnapshotBuild() == false ) {
45
- systemProperty ' es.itv2_feature_flag_registered' , ' true'
46
- systemProperty ' es.datastreams_feature_flag_registered' , ' true'
47
- }
48
- }
You can’t perform that action at this time.
0 commit comments