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'
|
2020-07-06 15:16:26 -04:00
|
|
|
apply plugin: 'elasticsearch.rest-resources'
|
2015-11-24 20:07:04 -05:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation 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 ->
|
2020-09-03 22:26:44 -04:00
|
|
|
plugin pluginProject.path
|
2019-06-20 02:21:29 -04:00
|
|
|
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)
|
|
|
|
}
|