2015-11-24 20:07:04 -05:00
|
|
|
import org.elasticsearch.gradle.MavenFilteringHack
|
|
|
|
|
2019-06-20 02:21:29 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2015-11-24 20:07:04 -05:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-15 13:14:43 -04:00
|
|
|
testCompile project(':x-pack:qa')
|
2015-11-24 20:07:04 -05:00
|
|
|
}
|
|
|
|
|
2019-06-20 02:21:29 -04:00
|
|
|
int pluginsCount = 0
|
|
|
|
testClusters.integTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
2018-03-21 23:09:44 -04:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2018-05-03 12:33:08 -04:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2019-06-20 02:21:29 -04:00
|
|
|
user username: "test_user", password: "x-pack-test-password"
|
|
|
|
project(':plugins').getChildProjects().each { pluginName, pluginProject ->
|
|
|
|
plugin file(pluginProject.tasks.bundlePlugin.archiveFile)
|
|
|
|
tasks.integTest.dependsOn pluginProject.tasks.bundlePlugin
|
|
|
|
pluginsCount += 1
|
2015-11-24 20:07:04 -05:00
|
|
|
}
|
2017-01-03 15:43:22 -05:00
|
|
|
}
|
2015-11-24 20:07:04 -05:00
|
|
|
|
|
|
|
ext.expansions = [
|
2015-12-04 02:36:35 -05:00
|
|
|
'expected.plugins.count': pluginsCount
|
2015-11-24 20:07:04 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
processTestResources {
|
|
|
|
inputs.properties(expansions)
|
|
|
|
MavenFilteringHack.filter(it, expansions)
|
|
|
|
}
|