mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
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>
This commit is contained in:
parent
d715449766
commit
35ec6f348c
68 changed files with 298 additions and 82 deletions
|
@ -159,8 +159,8 @@ gradlePlugin {
|
||||||
implementationClass = 'org.elasticsearch.gradle.internal.rest.compat.YamlRestCompatTestPlugin'
|
implementationClass = 'org.elasticsearch.gradle.internal.rest.compat.YamlRestCompatTestPlugin'
|
||||||
}
|
}
|
||||||
yamlRestTest {
|
yamlRestTest {
|
||||||
id = 'elasticsearch.yaml-rest-test'
|
id = 'elasticsearch.internal-yaml-rest-test'
|
||||||
implementationClass = 'org.elasticsearch.gradle.internal.test.rest.YamlRestTestPlugin'
|
implementationClass = 'org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,13 +11,13 @@ package org.elasticsearch.gradle.internal.test.rest
|
||||||
import org.elasticsearch.gradle.fixtures.AbstractRestResourcesFuncTest
|
import org.elasticsearch.gradle.fixtures.AbstractRestResourcesFuncTest
|
||||||
import org.gradle.testkit.runner.TaskOutcome
|
import org.gradle.testkit.runner.TaskOutcome
|
||||||
|
|
||||||
class YamlRestTestPluginFuncTest extends AbstractRestResourcesFuncTest {
|
class InternalYamlRestTestPluginFuncTest extends AbstractRestResourcesFuncTest {
|
||||||
|
|
||||||
def "yamlRestTest does nothing when there are no tests"() {
|
def "yamlRestTest does nothing when there are no tests"() {
|
||||||
given:
|
given:
|
||||||
buildFile << """
|
buildFile << """
|
||||||
plugins {
|
plugins {
|
||||||
id 'elasticsearch.yaml-rest-test'
|
id 'elasticsearch.internal-yaml-rest-test'
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class YamlRestTestPluginFuncTest extends AbstractRestResourcesFuncTest {
|
||||||
given:
|
given:
|
||||||
internalBuild()
|
internalBuild()
|
||||||
buildFile << """
|
buildFile << """
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation "junit:junit:4.12"
|
yamlRestTestImplementation "junit:junit:4.12"
|
|
@ -18,7 +18,7 @@ import org.elasticsearch.gradle.internal.test.rest.CopyRestTestsTask;
|
||||||
import org.elasticsearch.gradle.internal.test.rest.RestResourcesExtension;
|
import org.elasticsearch.gradle.internal.test.rest.RestResourcesExtension;
|
||||||
import org.elasticsearch.gradle.internal.test.rest.RestResourcesPlugin;
|
import org.elasticsearch.gradle.internal.test.rest.RestResourcesPlugin;
|
||||||
import org.elasticsearch.gradle.internal.test.rest.RestTestUtil;
|
import org.elasticsearch.gradle.internal.test.rest.RestTestUtil;
|
||||||
import org.elasticsearch.gradle.internal.test.rest.YamlRestTestPlugin;
|
import org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin;
|
||||||
import org.elasticsearch.gradle.testclusters.TestClustersPlugin;
|
import org.elasticsearch.gradle.testclusters.TestClustersPlugin;
|
||||||
import org.elasticsearch.gradle.util.GradleUtils;
|
import org.elasticsearch.gradle.util.GradleUtils;
|
||||||
import org.gradle.api.Plugin;
|
import org.gradle.api.Plugin;
|
||||||
|
@ -63,15 +63,15 @@ public class YamlRestCompatTestPlugin implements Plugin<Project> {
|
||||||
project.getPluginManager().apply(TestClustersPlugin.class);
|
project.getPluginManager().apply(TestClustersPlugin.class);
|
||||||
project.getPluginManager().apply(RestTestBasePlugin.class);
|
project.getPluginManager().apply(RestTestBasePlugin.class);
|
||||||
project.getPluginManager().apply(RestResourcesPlugin.class);
|
project.getPluginManager().apply(RestResourcesPlugin.class);
|
||||||
project.getPluginManager().apply(YamlRestTestPlugin.class);
|
project.getPluginManager().apply(InternalYamlRestTestPlugin.class);
|
||||||
|
|
||||||
RestResourcesExtension extension = project.getExtensions().getByType(RestResourcesExtension.class);
|
RestResourcesExtension extension = project.getExtensions().getByType(RestResourcesExtension.class);
|
||||||
|
|
||||||
// create source set
|
// create source set
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
SourceSet yamlCompatTestSourceSet = sourceSets.create(SOURCE_SET_NAME);
|
SourceSet yamlCompatTestSourceSet = sourceSets.create(SOURCE_SET_NAME);
|
||||||
SourceSet yamlTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME);
|
SourceSet yamlTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME);
|
||||||
GradleUtils.extendSourceSet(project, YamlRestTestPlugin.SOURCE_SET_NAME, SOURCE_SET_NAME);
|
GradleUtils.extendSourceSet(project, InternalYamlRestTestPlugin.SOURCE_SET_NAME, SOURCE_SET_NAME);
|
||||||
|
|
||||||
// copy compatible rest specs
|
// copy compatible rest specs
|
||||||
Configuration bwcMinorConfig = project.getConfigurations().create(BWC_MINOR_CONFIG_NAME);
|
Configuration bwcMinorConfig = project.getConfigurations().create(BWC_MINOR_CONFIG_NAME);
|
||||||
|
@ -176,7 +176,7 @@ public class YamlRestCompatTestPlugin implements Plugin<Project> {
|
||||||
.minus(project.files(originalYamlTestsDir))
|
.minus(project.files(originalYamlTestsDir))
|
||||||
);
|
);
|
||||||
// run compatibility tests after "normal" tests
|
// run compatibility tests after "normal" tests
|
||||||
testTask.mustRunAfter(project.getTasks().named(YamlRestTestPlugin.SOURCE_SET_NAME));
|
testTask.mustRunAfter(project.getTasks().named(InternalYamlRestTestPlugin.SOURCE_SET_NAME));
|
||||||
testTask.onlyIf(t -> isEnabled(project));
|
testTask.onlyIf(t -> isEnabled(project));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import static org.elasticsearch.gradle.internal.test.rest.RestTestUtil.setupTest
|
||||||
/**
|
/**
|
||||||
* Apply this plugin to run the YAML based REST tests.
|
* Apply this plugin to run the YAML based REST tests.
|
||||||
*/
|
*/
|
||||||
public class YamlRestTestPlugin implements Plugin<Project> {
|
public class InternalYamlRestTestPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
public static final String SOURCE_SET_NAME = "yamlRestTest";
|
public static final String SOURCE_SET_NAME = "yamlRestTest";
|
||||||
|
|
|
@ -58,6 +58,10 @@ gradlePlugin {
|
||||||
id = 'elasticsearch.test-gradle-policy'
|
id = 'elasticsearch.test-gradle-policy'
|
||||||
implementationClass = 'org.elasticsearch.gradle.test.GradleTestPolicySetupPlugin'
|
implementationClass = 'org.elasticsearch.gradle.test.GradleTestPolicySetupPlugin'
|
||||||
}
|
}
|
||||||
|
yamlTests {
|
||||||
|
id = 'elasticsearch.yaml-rest-test'
|
||||||
|
implementationClass = 'org.elasticsearch.gradle.test.YamlRestTestPlugin'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
/*
|
||||||
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.elasticsearch.gradle.test
|
||||||
|
|
||||||
|
import org.elasticsearch.gradle.VersionProperties
|
||||||
|
import org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest
|
||||||
|
import org.gradle.testkit.runner.TaskOutcome
|
||||||
|
|
||||||
|
class YamlRestTestPluginFuncTest extends AbstractGradleFuncTest {
|
||||||
|
|
||||||
|
def "declares default dependencies"() {
|
||||||
|
given:
|
||||||
|
buildFile << """
|
||||||
|
plugins {
|
||||||
|
id 'elasticsearch.yaml-rest-test'
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
|
when:
|
||||||
|
def result = gradleRunner("dependencies").build()
|
||||||
|
|
||||||
|
then:
|
||||||
|
result.output.contains("""
|
||||||
|
restTestSpecs
|
||||||
|
\\--- org.elasticsearch:rest-api-spec:${VersionProperties.elasticsearch} FAILED
|
||||||
|
""")
|
||||||
|
result.output.contains("""
|
||||||
|
yamlRestTestImplementation - Implementation only dependencies for source set 'yaml rest test'. (n)
|
||||||
|
\\--- org.elasticsearch.test:framework:8.0.0-SNAPSHOT (n)
|
||||||
|
""")
|
||||||
|
}
|
||||||
|
|
||||||
|
def "yamlRestTest does nothing when there are no tests"() {
|
||||||
|
given:
|
||||||
|
buildFile << """
|
||||||
|
plugins {
|
||||||
|
id 'elasticsearch.yaml-rest-test'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
yamlRestTestImplementation "org.elasticsearch.test:framework:7.14.0"
|
||||||
|
restTestSpecs "org.elasticsearch:rest-api-spec:7.14.0"
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
|
when:
|
||||||
|
def result = gradleRunner("yamlRestTest").build()
|
||||||
|
then:
|
||||||
|
result.task(':compileYamlRestTestJava').outcome == TaskOutcome.NO_SOURCE
|
||||||
|
result.task(':processYamlRestTestResources').outcome == TaskOutcome.NO_SOURCE
|
||||||
|
result.task(':yamlRestTest').outcome == TaskOutcome.NO_SOURCE
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -54,6 +54,9 @@ import java.util.stream.Collectors;
|
||||||
* Encapsulates build configuration for an Elasticsearch plugin.
|
* Encapsulates build configuration for an Elasticsearch plugin.
|
||||||
*/
|
*/
|
||||||
public class PluginBuildPlugin implements Plugin<Project> {
|
public class PluginBuildPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
|
public static final String BUNDLE_PLUGIN_TASK_NAME = "bundlePlugin";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void apply(final Project project) {
|
public void apply(final Project project) {
|
||||||
project.getPluginManager().apply(JavaPlugin.class);
|
project.getPluginManager().apply(JavaPlugin.class);
|
||||||
|
@ -124,7 +127,7 @@ public class PluginBuildPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
project.getTasks().register("run", RunTask.class, runTask -> {
|
project.getTasks().register("run", RunTask.class, runTask -> {
|
||||||
runTask.useCluster(runCluster);
|
runTask.useCluster(runCluster);
|
||||||
runTask.dependsOn(project.getTasks().named("bundlePlugin"));
|
runTask.dependsOn(project.getTasks().named(BUNDLE_PLUGIN_TASK_NAME));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,124 @@
|
||||||
|
/*
|
||||||
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.elasticsearch.gradle.test;
|
||||||
|
|
||||||
|
import org.elasticsearch.gradle.VersionProperties;
|
||||||
|
import org.elasticsearch.gradle.plugin.PluginBuildPlugin;
|
||||||
|
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster;
|
||||||
|
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask;
|
||||||
|
import org.elasticsearch.gradle.testclusters.TestClustersPlugin;
|
||||||
|
import org.elasticsearch.gradle.transform.UnzipTransform;
|
||||||
|
import org.gradle.api.Action;
|
||||||
|
import org.gradle.api.NamedDomainObjectContainer;
|
||||||
|
import org.gradle.api.Plugin;
|
||||||
|
import org.gradle.api.Project;
|
||||||
|
import org.gradle.api.Task;
|
||||||
|
import org.gradle.api.artifacts.Configuration;
|
||||||
|
import org.gradle.api.artifacts.ConfigurationContainer;
|
||||||
|
import org.gradle.api.artifacts.dsl.DependencyHandler;
|
||||||
|
import org.gradle.api.artifacts.type.ArtifactTypeDefinition;
|
||||||
|
import org.gradle.api.attributes.Attribute;
|
||||||
|
import org.gradle.api.internal.artifacts.ArtifactAttributes;
|
||||||
|
import org.gradle.api.plugins.JavaBasePlugin;
|
||||||
|
import org.gradle.api.tasks.Copy;
|
||||||
|
import org.gradle.api.tasks.SourceSet;
|
||||||
|
import org.gradle.api.tasks.SourceSetContainer;
|
||||||
|
import org.gradle.api.tasks.TaskProvider;
|
||||||
|
import org.gradle.api.tasks.bundling.Zip;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
import static org.elasticsearch.gradle.plugin.PluginBuildPlugin.BUNDLE_PLUGIN_TASK_NAME;
|
||||||
|
|
||||||
|
public class YamlRestTestPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
|
public static final String REST_TEST_SPECS_CONFIGURATION_NAME = "restTestSpecs";
|
||||||
|
public static final String YAML_REST_TEST = "yamlRestTest";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply(Project project) {
|
||||||
|
project.getPluginManager().apply(GradleTestPolicySetupPlugin.class);
|
||||||
|
project.getPluginManager().apply(TestClustersPlugin.class);
|
||||||
|
project.getPluginManager().apply(JavaBasePlugin.class);
|
||||||
|
|
||||||
|
Attribute<Boolean> restAttribute = Attribute.of("restSpecs", Boolean.class);
|
||||||
|
project.getDependencies().getAttributesSchema().attribute(restAttribute);
|
||||||
|
project.getDependencies().getArtifactTypes().maybeCreate(ArtifactTypeDefinition.JAR_TYPE);
|
||||||
|
project.getDependencies().registerTransform(UnzipTransform.class, transformSpec -> {
|
||||||
|
transformSpec.getFrom()
|
||||||
|
.attribute(ArtifactAttributes.ARTIFACT_FORMAT, ArtifactTypeDefinition.JAR_TYPE)
|
||||||
|
.attribute(restAttribute, true);
|
||||||
|
transformSpec.getTo()
|
||||||
|
.attribute(ArtifactAttributes.ARTIFACT_FORMAT, ArtifactTypeDefinition.DIRECTORY_TYPE)
|
||||||
|
.attribute(restAttribute, true);
|
||||||
|
});
|
||||||
|
|
||||||
|
ConfigurationContainer configurations = project.getConfigurations();
|
||||||
|
Configuration restTestSpecs = configurations.create(REST_TEST_SPECS_CONFIGURATION_NAME);
|
||||||
|
restTestSpecs.getAttributes().attribute(ArtifactAttributes.ARTIFACT_FORMAT, ArtifactTypeDefinition.DIRECTORY_TYPE);
|
||||||
|
restTestSpecs.getAttributes().attribute(restAttribute, true);
|
||||||
|
|
||||||
|
TaskProvider<Copy> copyRestTestSpecs = project.getTasks().register("copyRestTestSpecs", Copy.class, t -> {
|
||||||
|
t.from(restTestSpecs);
|
||||||
|
t.into(new File(project.getBuildDir(), "restResources/restspec"));
|
||||||
|
});
|
||||||
|
|
||||||
|
var sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
|
var testSourceSet = sourceSets.maybeCreate(YAML_REST_TEST);
|
||||||
|
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project
|
||||||
|
.getExtensions()
|
||||||
|
.getByName(TestClustersPlugin.EXTENSION_NAME);
|
||||||
|
|
||||||
|
testSourceSet.getOutput().dir(copyRestTestSpecs.map(Task::getOutputs));
|
||||||
|
Configuration yamlRestTestImplementation = configurations.getByName(testSourceSet.getImplementationConfigurationName());
|
||||||
|
setupDefaultDependencies(project.getDependencies(), restTestSpecs, yamlRestTestImplementation);
|
||||||
|
var cluster = testClusters.maybeCreate(YAML_REST_TEST);
|
||||||
|
TaskProvider<StandaloneRestIntegTestTask> yamlRestTestTask = setupTestTask(project, testSourceSet, cluster);
|
||||||
|
project.getPlugins().withType(PluginBuildPlugin.class, p -> {
|
||||||
|
TaskProvider<Zip> bundle = project.getTasks().withType(Zip.class).named(BUNDLE_PLUGIN_TASK_NAME);
|
||||||
|
cluster.plugin(bundle.flatMap(Zip::getArchiveFile));
|
||||||
|
yamlRestTestTask.configure(t -> t.dependsOn(bundle));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void setupDefaultDependencies(
|
||||||
|
DependencyHandler dependencyHandler,
|
||||||
|
Configuration restTestSpecs,
|
||||||
|
Configuration yamlRestTestImplementation
|
||||||
|
) {
|
||||||
|
String elasticsearchVersion = VersionProperties.getElasticsearch();
|
||||||
|
yamlRestTestImplementation.defaultDependencies(
|
||||||
|
deps -> deps.add(dependencyHandler.create("org.elasticsearch.test:framework:" + elasticsearchVersion))
|
||||||
|
);
|
||||||
|
|
||||||
|
restTestSpecs.defaultDependencies(
|
||||||
|
deps -> deps.add(dependencyHandler.create("org.elasticsearch:rest-api-spec:" + elasticsearchVersion))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private TaskProvider<StandaloneRestIntegTestTask> setupTestTask(
|
||||||
|
Project project,
|
||||||
|
SourceSet testSourceSet,
|
||||||
|
ElasticsearchCluster cluster
|
||||||
|
) {
|
||||||
|
return project.getTasks().register("yamlRestTest", StandaloneRestIntegTestTask.class, task -> {
|
||||||
|
task.useCluster(cluster);
|
||||||
|
task.setTestClassesDirs(testSourceSet.getOutput().getClassesDirs());
|
||||||
|
task.setClasspath(testSourceSet.getRuntimeClasspath());
|
||||||
|
|
||||||
|
var nonInputProperties = new SystemPropertyCommandLineArgumentProvider();
|
||||||
|
nonInputProperties.systemProperty("tests.rest.cluster", () -> String.join(",", cluster.getAllHttpSocketURI()));
|
||||||
|
nonInputProperties.systemProperty("tests.cluster", () -> String.join(",", cluster.getAllTransportPortURI()));
|
||||||
|
nonInputProperties.systemProperty("tests.clustername", () -> cluster.getName());
|
||||||
|
task.getJvmArgumentProviders().add(nonInputProperties);
|
||||||
|
task.systemProperty("tests.rest.load_packaged", Boolean.FALSE.toString());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import org.apache.tools.ant.taskdefs.condition.Os
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import org.elasticsearch.gradle.testclusters.DefaultTestClustersTask;
|
import org.elasticsearch.gradle.testclusters.DefaultTestClustersTask;
|
||||||
apply plugin: 'elasticsearch.validate-rest-spec'
|
apply plugin: 'elasticsearch.validate-rest-spec'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import org.elasticsearch.gradle.internal.test.AntFixture
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.test-with-dependencies'
|
apply plugin: 'elasticsearch.test-with-dependencies'
|
||||||
apply plugin: 'elasticsearch.jdk-download'
|
apply plugin: 'elasticsearch.jdk-download'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import org.elasticsearch.gradle.PropertyNormalization
|
import org.elasticsearch.gradle.PropertyNormalization
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.test.fixtures'
|
apply plugin: 'elasticsearch.test.fixtures'
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.validate-rest-spec'
|
apply plugin: 'elasticsearch.validate-rest-spec'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||||
import org.elasticsearch.gradle.internal.test.rest.JavaRestTestPlugin
|
import org.elasticsearch.gradle.internal.test.rest.JavaRestTestPlugin
|
||||||
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
|
@ -7,7 +7,7 @@ import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -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
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -10,11 +10,11 @@ import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
import org.elasticsearch.gradle.internal.test.AntFixture
|
import org.elasticsearch.gradle.internal.test.AntFixture
|
||||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
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
|
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation project(':plugins:discovery-ec2')
|
yamlRestTestImplementation project(':plugins:discovery-ec2')
|
||||||
|
@ -62,7 +62,7 @@ tasks.named("yamlRestTest").configure { enabled = false }
|
||||||
def yamlRestTestTask = tasks.register("yamlRestTest${action}", RestIntegTestTask) {
|
def yamlRestTestTask = tasks.register("yamlRestTest${action}", RestIntegTestTask) {
|
||||||
dependsOn fixture
|
dependsOn fixture
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
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()
|
testClassesDirs = yamlRestTestSourceSet.getOutput().getClassesDirs()
|
||||||
classpath = yamlRestTestSourceSet.getRuntimeClasspath()
|
classpath = yamlRestTestSourceSet.getRuntimeClasspath()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import org.elasticsearch.gradle.internal.test.AntFixture
|
||||||
|
|
||||||
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
final int gceNumberOfNodes = 3
|
final int gceNumberOfNodes = 3
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,24 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
// Subprojects aren't published so do not assemble
|
// Subprojects aren't published so do not assemble
|
||||||
subprojects {
|
subprojects { p ->
|
||||||
project.tasks.matching { it.name.equals('assemble') }.configureEach {
|
p.tasks.matching { it.name.equals('assemble') }.configureEach {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
if (BuildParams.inFipsJvm) {
|
if (BuildParams.inFipsJvm) {
|
||||||
project.tasks.configureEach {
|
p.tasks.configureEach {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// configure project dependencies for yaml rest test plugin.
|
||||||
|
// plugin defaults to external available artifacts
|
||||||
|
p.getPluginManager().withPlugin("elasticsearch.yaml-rest-test", new Action<AppliedPlugin>() {
|
||||||
|
@Override
|
||||||
|
void execute(AppliedPlugin appliedPlugin) {
|
||||||
|
p.dependencies.add("yamlRestTestImplementation", project(":test:framework"))
|
||||||
|
p.dependencies.add("restTestSpecs", p.dependencies.project(path:':rest-api-spec', configuration:'basicRestSpecs'))
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(project('painless-whitelist')) {
|
configure(project('painless-whitelist')) {
|
||||||
|
|
|
@ -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
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||||
import org.elasticsearch.gradle.internal.test.rest.YamlRestTestPlugin
|
import org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin
|
||||||
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
||||||
|
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
|
@ -16,7 +16,7 @@ import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ def largeBlobYamlRestTest = tasks.register("largeBlobYamlRestTest", RestIntegTes
|
||||||
dependsOn "createServiceAccountFile"
|
dependsOn "createServiceAccountFile"
|
||||||
}
|
}
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME)
|
SourceSet yamlRestTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME)
|
||||||
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
||||||
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ if (useFixture) {
|
||||||
tasks.register("yamlRestTestApplicationDefaultCredentials", RestIntegTestTask.class) {
|
tasks.register("yamlRestTestApplicationDefaultCredentials", RestIntegTestTask.class) {
|
||||||
dependsOn('bundlePlugin')
|
dependsOn('bundlePlugin')
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME)
|
SourceSet yamlRestTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME)
|
||||||
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
||||||
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||||
import org.elasticsearch.gradle.internal.test.rest.YamlRestTestPlugin
|
import org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin
|
||||||
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
import org.elasticsearch.gradle.internal.test.InternalClusterTestPlugin
|
||||||
|
|
||||||
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
|
@ -13,7 +13,7 @@ import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
apply plugin: 'elasticsearch.internal-test-artifact-base'
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ if (useFixture) {
|
||||||
description = "Runs REST tests using the Minio repository."
|
description = "Runs REST tests using the Minio repository."
|
||||||
dependsOn tasks.named("bundlePlugin")
|
dependsOn tasks.named("bundlePlugin")
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME)
|
SourceSet yamlRestTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME)
|
||||||
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
||||||
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ if (useFixture) {
|
||||||
description = "Runs tests using the ECS repository."
|
description = "Runs tests using the ECS repository."
|
||||||
dependsOn('bundlePlugin')
|
dependsOn('bundlePlugin')
|
||||||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
|
||||||
SourceSet yamlRestTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME)
|
SourceSet yamlRestTestSourceSet = sourceSets.getByName(InternalYamlRestTestPlugin.SOURCE_SET_NAME)
|
||||||
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
setTestClassesDirs(yamlRestTestSourceSet.getOutput().getClassesDirs())
|
||||||
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
setClasspath(yamlRestTestSourceSet.getRuntimeClasspath())
|
||||||
systemProperty 'tests.rest.blacklist', [
|
systemProperty 'tests.rest.blacklist', [
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -4,7 +4,7 @@ apply plugin: 'elasticsearch.build'
|
||||||
apply plugin: 'elasticsearch.publish'
|
apply plugin: 'elasticsearch.publish'
|
||||||
apply plugin: 'elasticsearch.rest-resources'
|
apply plugin: 'elasticsearch.rest-resources'
|
||||||
apply plugin: 'elasticsearch.validate-rest-spec'
|
apply plugin: 'elasticsearch.validate-rest-spec'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
restResources {
|
restResources {
|
||||||
|
@ -17,7 +17,18 @@ restResources {
|
||||||
ext.projectLicenses.set(['The Apache Software License, Version 2.0': 'http://www.apache.org/licenses/LICENSE-2.0'])
|
ext.projectLicenses.set(['The Apache Software License, Version 2.0': 'http://www.apache.org/licenses/LICENSE-2.0'])
|
||||||
ext.licenseFile = rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
|
ext.licenseFile = rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
// configuration to make use by external yaml rest test plugin in our examples
|
||||||
|
// easy and efficient
|
||||||
|
basicRestSpecs {
|
||||||
|
attributes {
|
||||||
|
attribute(org.gradle.api.internal.artifacts.ArtifactAttributes.ARTIFACT_FORMAT, ArtifactTypeDefinition.DIRECTORY_TYPE)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
|
basicRestSpecs(new File(projectDir, "src/main/resources"))
|
||||||
restSpecs(new File(projectDir, "src/main/resources/rest-api-spec/api"))
|
restSpecs(new File(projectDir, "src/main/resources/rest-api-spec/api"))
|
||||||
restTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
|
restTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import org.elasticsearch.gradle.internal.info.BuildParams;
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'elasticsearch.internal-es-plugin'
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
name it.name
|
name it.name
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.internal-es-plugin'
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
import org.elasticsearch.gradle.util.GradleUtils
|
import org.elasticsearch.gradle.util.GradleUtils
|
||||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.validate-rest-spec'
|
apply plugin: 'elasticsearch.validate-rest-spec'
|
||||||
apply plugin: 'elasticsearch.internal-test-artifact'
|
apply plugin: 'elasticsearch.internal-test-artifact'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
restResources {
|
restResources {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import java.nio.file.Paths
|
||||||
apply plugin: 'elasticsearch.internal-es-plugin'
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
||||||
apply plugin: 'elasticsearch.publish'
|
apply plugin: 'elasticsearch.publish'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
apply plugin: 'elasticsearch.internal-test-artifact'
|
apply plugin: 'elasticsearch.internal-test-artifact'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
restResources {
|
restResources {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation project(":x-pack:plugin:core")
|
yamlRestTestImplementation project(":x-pack:plugin:core")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
apply plugin: 'elasticsearch.internal-es-plugin'
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
||||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
esplugin {
|
esplugin {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||||
|
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply plugin: 'elasticsearch.java-rest-test'
|
apply plugin: 'elasticsearch.java-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -9,7 +9,7 @@ tasks.named("test").configure { enabled = false }
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
if (project.name.startsWith('core-with-')) {
|
if (project.name.startsWith('core-with-')) {
|
||||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
yamlRestTestImplementation xpackProject(":x-pack:qa:runtime-fields")
|
yamlRestTestImplementation xpackProject(":x-pack:qa:runtime-fields")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue