Skip to content

Commit

Permalink
move restart into its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
kderusso committed Mar 8, 2024
1 parent fbc562e commit 6393493
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/plugin/ml/qa/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions x-pack/plugin/ml/qa/full-cluster-restart/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.bwc-test'

dependencies {
javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
javaRestTestImplementation(testArtifact(project(xpackModule('ml'))))
javaRestTestImplementation(testArtifact(project(":qa:full-cluster-restart"), "javaRestTest"))
}

assert Version.fromString(VersionProperties.getVersions().get("elasticsearch")).getMajor() == 8:
"If we are targeting a branch other than 8, we should enable migration tests"

BuildParams.bwcVersions.withWireCompatible(v -> v.after("8.8.0")) { bwcVersion, baseName ->
tasks.register(bwcTaskName(bwcVersion), StandaloneRestIntegTestTask) {
usesBwcDistribution(bwcVersion)
systemProperty("tests.old_cluster_version", bwcVersion)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.carrotsearch.randomizedtesting.annotations.Name;

import org.elasticsearch.Version;
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster;
import org.junit.ClassRule;

import static org.apache.lucene.tests.util.LuceneTestCase.assumeTrue;
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugin/ml/qa/native-multi-node-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'elasticsearch.legacy-java-rest-test'
apply plugin: 'elasticsearch.bwc-test'

dependencies {
javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
Expand All @@ -16,7 +15,6 @@ dependencies {
javaRestTestImplementation project(path: xpackModule('monitoring'))
javaRestTestImplementation project(path: xpackModule('transform'))
javaRestTestImplementation project(path: xpackModule('rank-rrf'))
javaRestTestImplementation(testArtifact(project(":qa:full-cluster-restart"), "javaRestTest"))
}

// location for keys and certificates
Expand Down

0 comments on commit 6393493

Please sign in to comment.