Skip to content

Commit 2b99291

Browse files
committed
Add autoscaling feature flag in release REST tests (#52096)
The REST tests for autoscaling either need to be skipped in a non-snapshot build, or alternatively, the feature flag registered so that autoscaling can be enabled. We prefer the latter approach, as it allows us to also test autoscaling in non-snapshot builds incrementally, instead of at the end of development as autoscaling prepares for release. This commit registers the autoscaling feature flag in REST tests for non-snapshot builds.
1 parent 90eb6a0 commit 2b99291

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/autoscaling/qa/rest/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.elasticsearch.gradle.info.BuildParams
12
import org.elasticsearch.gradle.test.RestIntegTestTask
23

34
apply plugin: 'elasticsearch.testclusters'
@@ -14,6 +15,9 @@ task restTest(type: RestIntegTestTask) {
1415

1516
testClusters.restTest {
1617
testDistribution = 'DEFAULT'
18+
if (BuildParams.isSnapshotBuild() == false) {
19+
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
20+
}
1721
setting 'xpack.autoscaling.enabled', 'true'
1822
setting 'xpack.security.enabled', 'true'
1923
extraConfigFile 'roles.yml', file('autoscaling-roles.yml')

0 commit comments

Comments
 (0)