Skip to content

Commit db572af

Browse files
committed
Fix autoscaling internal cluster release tests
This commit addresses an issue with the autoscaling feature flag not being registered in release builds of the internal cluster tests. This commit addresses this by enabling the system property that is needed, but only in release builds.
1 parent e9e7bd3 commit db572af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/autoscaling/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.info.BuildParams
2+
13
evaluationDependsOn(xpackModule('core'))
24

35
apply plugin: 'elasticsearch.esplugin'
@@ -20,6 +22,9 @@ task internalClusterTest(type: Test) {
2022

2123
include '**/*IT.class'
2224
systemProperty 'es.set.netty.runtime.available.processors', 'false'
25+
if (BuildParams.isSnapshotBuild() == false) {
26+
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
27+
}
2328
}
2429

2530
check.dependsOn internalClusterTest

0 commit comments

Comments
 (0)