Skip to content

Commit

Permalink
Switch run task to use real distro (elastic#41590)
Browse files Browse the repository at this point in the history
The run task is supposed to run elasticsearch with the given plugin or
module. However, for modules, this is most realistic if using the full
distribution. This commit changes the run setup to use the default or
oss as appropriate.
  • Loading branch information
rjernst authored and Gurkan Kaymak committed May 27, 2019
1 parent 6422e0f commit 4ded96a
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ class PluginBuildPlugin extends BuildPlugin {

project.tasks.run.dependsOn(project.tasks.bundlePlugin)
if (isModule) {
project.tasks.run.clusterConfig.module(project)
project.tasks.run.clusterConfig.distribution = System.getProperty(
'run.distribution', 'integ-test-zip'
'run.distribution', isXPackModule ? 'default' : 'oss'
)
} else {
project.tasks.run.clusterConfig.plugin(project.path)
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/ccr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ dependencyLicenses {
ignoreSha 'x-pack-core'
}

run {
plugin xpackModule('core')
}

testingConventions.naming {
IT {
baseClass "org.elasticsearch.xpack.CcrIntegTestCase"
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/data-frame/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ dependencies {
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
}

run {
plugin xpackModule('core')
}

// xpack modules are installed in real clusters as the meta plugin, so
// installing them as individual plugins for integ tests doesn't make sense,
// so we disable integ tests
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/deprecation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ dependencies {
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
}

run {
plugin xpackModule('core')
}

integTest.enabled = false
4 changes: 0 additions & 4 deletions x-pack/plugin/graph/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ gradle.projectsEvaluated {
.each { check.dependsOn it.check }
}

run {
plugin xpackModule('core')
}

integTest.enabled = false
3 changes: 0 additions & 3 deletions x-pack/plugin/ilm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,3 @@ gradle.projectsEvaluated {

integTest.enabled = false

run {
plugin xpackModule('core')
}
4 changes: 0 additions & 4 deletions x-pack/plugin/logstash/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ dependencies {
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
}

run {
plugin xpackModule('core')
}

integTest.enabled = false
4 changes: 0 additions & 4 deletions x-pack/plugin/ml/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ project.afterEvaluate {
}
}

run {
plugin xpackModule('core')
}

// xpack modules are installed in real clusters as the meta plugin, so
// installing them as individual plugins for integ tests doesn't make sense,
// so we disable integ tests
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/monitoring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ dependencyLicenses {
mapping from: /commons-.*/, to: 'commons' // pulled in by rest client
}

run {
plugin xpackModule('core')
}

// xpack modules are installed in real clusters as the meta plugin, so
// installing them as individual plugins for integ tests doesn't make sense,
// so we disable integ tests
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/rollup/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ dependencies {
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
}

run {
plugin xpackModule('core')
}

integTest.enabled = false
4 changes: 0 additions & 4 deletions x-pack/plugin/security/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ thirdPartyAudit.ignoreMissingClasses(
)


run {
plugin xpackModule('core')
}

test {
/*
* We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugin/watcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ thirdPartyAudit {
)
}

run {
plugin xpackModule('core')
}

test {
/*
* We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each
Expand Down

0 comments on commit 4ded96a

Please sign in to comment.