2015-11-24 17:07:04 -08:00
|
|
|
import org.elasticsearch.gradle.MavenFilteringHack
|
|
|
|
|
2019-06-20 09:21:29 +03:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2015-11-24 17:07:04 -08:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-15 19:14:43 +02:00
|
|
|
testCompile project(':x-pack:qa')
|
2015-11-24 17:07:04 -08:00
|
|
|
}
|
|
|
|
|
2019-06-20 09:21:29 +03:00
|
|
|
int pluginsCount = 0
|
|
|
|
testClusters.integTest {
|
2019-07-15 17:53:05 -07:00
|
|
|
testDistribution = 'DEFAULT'
|
2018-03-21 21:09:44 -06:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2018-05-03 10:33:08 -06:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2019-06-20 09:21:29 +03: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 17:07:04 -08:00
|
|
|
}
|
2017-01-03 15:43:22 -05:00
|
|
|
}
|
2015-11-24 17:07:04 -08:00
|
|
|
|
|
|
|
ext.expansions = [
|
2015-12-03 23:36:35 -08:00
|
|
|
'expected.plugins.count': pluginsCount
|
2015-11-24 17:07:04 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
processTestResources {
|
|
|
|
inputs.properties(expansions)
|
|
|
|
MavenFilteringHack.filter(it, expansions)
|
|
|
|
}
|