mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
This commit removes xpack dependencies of many xpack qa modules. (for some qa modules this will require some more work) The reason behind this change is that qa rest modules should not depend on the x-pack plugins, because the plugins are an implementation detail and the tests should only know about the rest interface and qa cluster that is being tested. Also some qa modules rely on xpack plugins and hlrc (which is a valid dependency for rest qa tests) creates a cyclic dependency and this is something that we should avoid. Also Eclipse can't handle gradle cyclic dependencies (see #41064). * don't copy xpack-core's plugin property into the test resource of qa modules. Otherwise installing security manager fails, because it tries to find the XPackPlugin class.
28 lines
995 B
Groovy
28 lines
995 B
Groovy
// this file must exist so that qa projects are found
|
|
// by the elasticsearch x-plugins include mechanism
|
|
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
apply plugin: 'elasticsearch.build'
|
|
test.enabled = false
|
|
|
|
dependencies {
|
|
compile project(':test:framework')
|
|
}
|
|
|
|
subprojects {
|
|
// 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/**'
|
|
}
|
|
}
|
|
}
|