Add initial bcUpgradeTask (#128588)
This commit is contained in:
parent
83126135fa
commit
cdd208704c
|
@ -7,6 +7,7 @@
|
|||
* License v3.0 only", or the "Server Side Public License, v 1".
|
||||
*/
|
||||
|
||||
import org.elasticsearch.gradle.Version
|
||||
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask
|
||||
|
||||
apply plugin: 'elasticsearch.internal-java-rest-test'
|
||||
|
@ -25,6 +26,18 @@ buildParams.bwcVersions.withWireCompatible { bwcVersion, baseName ->
|
|||
}
|
||||
}
|
||||
|
||||
tasks.register("bcUpgradeTest", StandaloneRestIntegTestTask) {
|
||||
// We use a phony version here as the real version is provided via `tests.bwc.main.version` system property
|
||||
usesBwcDistribution(Version.fromString("0.0.0"))
|
||||
systemProperty("tests.old_cluster_version", "0.0.0")
|
||||
onlyIf("tests.bwc.main.version system property exists") { System.getProperty("tests.bwc.main.version") != null }
|
||||
filter {
|
||||
// filter tests initially for quicker iterations
|
||||
// TODO remove once expanding the test set to other modules
|
||||
includeTestsMatching("org.elasticsearch.upgrades.IndexingIT")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(Test).configureEach {
|
||||
// CI doesn't like it when there's multiple clusters running at once
|
||||
maxParallelForks = 1
|
||||
|
|
Loading…
Reference in New Issue