mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Introduce simple public yaml-rest-test plugin (7.x backport) (#77054)
* Introduce simple public yaml-rest-test plugin (#76554) This introduces a basic public yaml rest test plugin that is supposed to be used by external elasticsearch plugin authors. This is driven by #76215 - Rename yaml-rest-test to intern-yaml-rest-test - Use public yaml plugin in example plugins Co-authored-by: Mark Vieira <portugee@gmail.com> * Fix test assertion after output normalization Co-authored-by: Mark Vieira <portugee@gmail.com>
This commit is contained in:
parent
a98df4ee15
commit
4039c35ea0
66 changed files with 290 additions and 81 deletions
|
@ -7,7 +7,7 @@ import org.elasticsearch.gradle.internal.info.BuildParams
|
|||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||
|
||||
esplugin {
|
||||
|
|
|
@ -10,11 +10,11 @@ import org.apache.tools.ant.filters.ReplaceTokens
|
|||
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||
import org.elasticsearch.gradle.internal.test.AntFixture
|
||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||
import org.elasticsearch.gradle.internal.test.rest.YamlRestTestPlugin
|
||||
import org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin
|
||||
|
||||
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||
|
||||
dependencies {
|
||||
yamlRestTestImplementation project(':plugins:discovery-ec2')
|
||||
|
@ -62,7 +62,7 @@ tasks.named("yamlRestTest").configure { enabled = false }
|
|||
def yamlRestTestTask = tasks.register("yamlRestTest${action}", RestIntegTestTask) {
|
||||
dependsOn fixture
|
||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME)
|
||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME)
|
||||
testClassesDirs = yamlRestTestSourceSet.getOutput().getClassesDirs()
|
||||
classpath = yamlRestTestSourceSet.getRuntimeClasspath()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue