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.
This commit is contained in:
Jason Tedor 2020-04-02 11:46:31 -04:00
parent 65233383f6
commit 2113c1ffb6
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import org.elasticsearch.gradle.info.BuildParams
evaluationDependsOn(xpackModule('core')) evaluationDependsOn(xpackModule('core'))
apply plugin: 'elasticsearch.esplugin' apply plugin: 'elasticsearch.esplugin'
@ -20,6 +22,9 @@ task internalClusterTest(type: Test) {
include '**/*IT.class' include '**/*IT.class'
systemProperty 'es.set.netty.runtime.available.processors', 'false' systemProperty 'es.set.netty.runtime.available.processors', 'false'
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
}
} }
check.dependsOn internalClusterTest check.dependsOn internalClusterTest