Skip to content

Commit

Permalink
Fix autoscaling internal cluster release tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasontedor committed Apr 2, 2020
1 parent e9e7bd3 commit db572af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugin/autoscaling/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.elasticsearch.gradle.info.BuildParams

evaluationDependsOn(xpackModule('core'))

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

include '**/*IT.class'
systemProperty 'es.set.netty.runtime.available.processors', 'false'
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
}
}

check.dependsOn internalClusterTest
Expand Down

0 comments on commit db572af

Please sign in to comment.