Build: Simplify plugin installs for integTests

This is the xplugins side of elastic/elasticsearchelastic/elasticsearch#14986, making use of
the simplification in configuration.

Original commit: elastic/x-pack-elasticsearch@a24ad7b08a
This commit is contained in:
Ryan Ernst 2015-11-24 12:54:11 -08:00
parent 9b32a4e7c4
commit 4f44ccedb5
4 changed files with 4 additions and 41 deletions

View File

@ -8,16 +8,11 @@ esplugin {
isolated false
}
configurations {
licensePluginZip
}
ext.versions = [
okhttp: '2.3.0'
]
dependencies {
licensePluginZip project(path: ':x-plugins:license:plugin') // zip
provided project(path: ':x-plugins:license:plugin', configuration: 'runtime')
provided project(path: ':x-plugins:shield', configuration: 'runtime')
testCompile 'org.elasticsearch:securemock:1.1'
@ -49,9 +44,8 @@ processTestResources {
}
integTest {
dependsOn configurations.licensePluginZip
cluster {
plugin 'license', configurations.licensePluginZip
plugin 'license', project(':x-plugins:license:plugin')
}
}

View File

@ -1,18 +1,10 @@
apply plugin: 'elasticsearch.rest-test'
configurations {
licensePluginZip
shieldPluginZip
}
dependencies {
licensePluginZip project(path: ':x-plugins:license:plugin')
shieldPluginZip project(path: ':x-plugins:shield')
testCompile project(path: ':x-plugins:shield', configuration: 'runtime')
}
integTest {
dependsOn configurations.licensePluginZip, configurations.shieldPluginZip
includePackaged true
systemProperty 'tests.rest.blacklist',
['indices.get/10_basic/*allow_no_indices*',
@ -38,8 +30,8 @@ integTest {
'bulk/40_fields/Fields'].join(',')
cluster {
plugin 'license', configurations.licensePluginZip
plugin 'shield', configurations.shieldPluginZip
plugin 'license', project(':x-plugins:license:plugin')
plugin 'shield', project(':x-plugins:shield')
setupCommand 'setupDummyUser',
'bin/shield/esusers', 'useradd', 'test_user', '-p', 'changeme', '-r', 'admin'
waitCondition = { node, ant ->

View File

@ -6,12 +6,7 @@ esplugin {
isolated false
}
configurations {
licensePluginZip
}
dependencies {
licensePluginZip project(path: ':x-plugins:license:plugin') // zip
provided project(path: ':x-plugins:license:plugin', configuration: 'runtime')
compile project(':x-plugins:license:plugin-api')
compile 'dk.brics.automaton:automaton:1.11-8'

View File

@ -8,16 +8,11 @@ esplugin {
isolated false
}
configurations {
licensePluginZip
}
ext.versions = [
okhttp: '2.3.0'
]
dependencies {
licensePluginZip project(path: ':x-plugins:license:plugin') // zip
provided project(path: ':x-plugins:license:plugin', configuration: 'runtime')
provided project(path: ':x-plugins:shield', configuration: 'runtime')
@ -44,22 +39,9 @@ dependencies {
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
/*ext.expansions = [
'integ.http.port': integTest.cluster.httpPort
]
processTestResources {
inputs.properties(expansions)
with copySpec {
MavenFilteringHack.filter(it, expansions)
}
}
*/
integTest {
dependsOn configurations.licensePluginZip
cluster {
plugin 'installLicensePlugin', configurations.licensePluginZip
plugin 'license', project(':x-plugins:license:plugin')
}
}