Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ class YamlRestCompatTestPluginFuncTest extends AbstractRestResourcesFuncTest {

// avoids a dependency problem in this test, the distribution in use here is inconsequential to the test
import org.elasticsearch.gradle.testclusters.TestDistribution;
testClusters {
yamlRestCompatTest.setTestDistribution(TestDistribution.INTEG_TEST)
}

dependencies {
yamlRestTestImplementation "junit:junit:4.12"
Expand Down Expand Up @@ -198,10 +195,7 @@ class YamlRestCompatTestPluginFuncTest extends AbstractRestResourcesFuncTest {

// avoids a dependency problem in this test, the distribution in use here is inconsequential to the test
import org.elasticsearch.gradle.testclusters.TestDistribution;
testClusters {
yamlRestCompatTest.setTestDistribution(TestDistribution.INTEG_TEST)
}


dependencies {
yamlRestTestImplementation "junit:junit:4.12"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
import org.elasticsearch.gradle.test.rest.RestResourcesPlugin;
import org.elasticsearch.gradle.test.rest.RestTestUtil;
import org.elasticsearch.gradle.test.rest.YamlRestTestPlugin;
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster;
import org.elasticsearch.gradle.testclusters.TestClustersPlugin;
import org.elasticsearch.gradle.testclusters.TestDistribution;
import org.elasticsearch.gradle.util.GradleUtils;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
Expand All @@ -39,7 +37,6 @@
import java.nio.file.Path;
import java.util.Map;

import static org.elasticsearch.gradle.test.rest.RestTestUtil.createTestCluster;
import static org.elasticsearch.gradle.test.rest.RestTestUtil.setupDependencies;

/**
Expand Down Expand Up @@ -75,10 +72,6 @@ public void apply(Project project) {
SourceSet yamlTestSourceSet = sourceSets.getByName(YamlRestTestPlugin.SOURCE_SET_NAME);
GradleUtils.extendSourceSet(project, YamlRestTestPlugin.SOURCE_SET_NAME, SOURCE_SET_NAME);

// create the test cluster container, and always use the default distribution
ElasticsearchCluster testCluster = createTestCluster(project, yamlCompatTestSourceSet);
testCluster.setTestDistribution(TestDistribution.DEFAULT);

// copy compatible rest specs
Configuration bwcMinorConfig = project.getConfigurations().create("bwcMinor");
Dependency bwcMinor = project.getDependencies().project(Map.of("path", ":distribution:bwc:minor", "configuration", "checkout"));
Expand Down