mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 05:28:34 +00:00
For 1/2 the plugins in x-pack, the integTest task is now a no-op and all of the tests are now executed via a test, yamlRestTest, javaRestTest, or internalClusterTest. This includes the following projects: async-search, autoscaling, ccr, enrich, eql, frozen-indicies, data-streams, graph, ilm, mapper-constant-keyword, mapper-flattened, ml A few of the more specialized qa projects within these plugins have not been changed with this PR due to additional complexity which should be addressed separately. A follow up PR will address the remaining x-pack plugins (this PR is big enough as-is). related: #61802 related: #56841 related: #59939 related: #55896
36 lines
1.0 KiB
Groovy
36 lines
1.0 KiB
Groovy
import org.elasticsearch.gradle.info.BuildParams
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
|
|
|
esplugin {
|
|
name 'x-pack-autoscaling'
|
|
description 'Elasticsearch Expanded Pack Plugin - Autoscaling'
|
|
classname 'org.elasticsearch.xpack.autoscaling.Autoscaling'
|
|
extendedPlugins = ['x-pack-core']
|
|
hasNativeController false
|
|
requiresKeystore true
|
|
}
|
|
archivesBaseName = 'x-pack-autoscaling'
|
|
|
|
integTest.enabled = false
|
|
|
|
tasks.named('internalClusterTest').configure {
|
|
if (BuildParams.isSnapshotBuild() == false) {
|
|
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
}
|
|
|
|
// add all sub-projects of the qa sub-project
|
|
gradle.projectsEvaluated {
|
|
project.subprojects
|
|
.find { it.path == project.path + ":qa" }
|
|
.subprojects
|
|
.findAll { it.path.startsWith(project.path + ":qa") }
|
|
.each { check.dependsOn it.check }
|
|
}
|