mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
Graph: Move qa into plugin (#34517)
Move `x-pack/qa/smoke-test-graph-with-security` to `x-pack/plugin/graph/qa/security` which should make it easier to run all of the tests with a single command. It also lines up the directories more closely with newer projects like cross cluster replication.
This commit is contained in:
parent
6857d30527
commit
7de9eda391
@ -15,6 +15,15 @@ dependencies {
|
||||
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
||||
}
|
||||
|
||||
// add all sub-projects of the qa sub-project
|
||||
gradle.projectsEvaluated {
|
||||
project.subprojects
|
||||
.find { it.path == project.path + ":qa" }
|
||||
.subprojects
|
||||
.findAll { it.path.startsWith(project.path + ":qa") }
|
||||
.each { check.dependsOn it.check }
|
||||
}
|
||||
|
||||
run {
|
||||
plugin xpackModule('core')
|
||||
}
|
||||
|
30
x-pack/plugin/graph/qa/build.gradle
Normal file
30
x-pack/plugin/graph/qa/build.gradle
Normal file
@ -0,0 +1,30 @@
|
||||
import org.elasticsearch.gradle.test.RestIntegTestTask
|
||||
|
||||
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/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gradle.projectsEvaluated {
|
||||
subprojects {
|
||||
Task assemble = project.tasks.findByName('assemble')
|
||||
if (assemble) {
|
||||
assemble.enabled = false
|
||||
}
|
||||
Task dependenciesInfo = project.tasks.findByName('dependenciesInfo')
|
||||
if (dependenciesInfo) {
|
||||
dependenciesInfo.enabled = false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user