[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
For 1/2 the plugins in x-pack, the integTest
task is now a no-op and all of the tests are now executed via a test,
yamlRestTest, javaRestTest, or internalClusterTest.
This includes the following projects:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
A few of the more specialized qa projects within these plugins
have not been changed with this PR due to additional complexity which should
be addressed separately.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
2020-04-07 07:28:53 -04:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
|
|
name 'searchable-snapshots'
|
|
|
|
description 'A plugin for the searchable snapshots functionality'
|
|
|
|
classname 'org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots'
|
|
|
|
extendedPlugins = ['x-pack-core']
|
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-searchable-snapshots'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
For 1/2 the plugins in x-pack, the integTest
task is now a no-op and all of the tests are now executed via a test,
yamlRestTest, javaRestTest, or internalClusterTest.
This includes the following projects:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
A few of the more specialized qa projects within these plugins
have not been changed with this PR due to additional complexity which should
be addressed separately.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
internalClusterTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2020-04-07 07:28:53 -04:00
|
|
|
}
|
|
|
|
|
2020-09-09 16:41:43 -04:00
|
|
|
|
|
|
|
|
2020-04-07 07:28:53 -04:00
|
|
|
// 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 }
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
testArtifacts.extendsFrom testRuntime
|
2020-06-14 16:30:44 -04:00
|
|
|
testArtifacts.extendsFrom testImplementation
|
2020-04-07 07:28:53 -04:00
|
|
|
}
|
|
|
|
|
2020-07-31 07:09:04 -04:00
|
|
|
def testJar = tasks.register("testJar", Jar) {
|
2020-04-07 07:28:53 -04:00
|
|
|
appendix 'test'
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
|
|
|
}
|