2018-08-21 12:23:21 -04:00
|
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
|
|
|
|
subprojects {
|
2019-11-14 06:01:23 -05:00
|
|
|
// HACK: please fix this
|
|
|
|
// we want to add the rest api specs for xpack to qa tests, but we
|
|
|
|
// need to wait until after the project is evaluated to only apply
|
|
|
|
// to those that rest tests. this used to be done automatically
|
|
|
|
// when xpack was a plugin, but now there is no place with xpack as a module.
|
|
|
|
// instead, we should package these and make them easy to use for rest tests,
|
|
|
|
// but currently, they must be copied into the resources of the test runner.
|
|
|
|
project.tasks.withType(RestIntegTestTask) {
|
|
|
|
File xpackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
|
|
|
|
project.copyRestSpec.from(xpackResources) {
|
|
|
|
include 'rest-api-spec/api/**'
|
2018-08-21 12:23:21 -04:00
|
|
|
}
|
2019-11-14 06:01:23 -05:00
|
|
|
}
|
2018-08-21 12:23:21 -04:00
|
|
|
}
|