@@ -30,12 +30,7 @@ task bwcTest {
3030 group = ' verification'
3131}
3232
33- // For now test against the current version:
34- Version currentVersion = Version . fromString(VersionProperties . elasticsearch. minus(' -SNAPSHOT' ))
35- Version [] versions = [currentVersion]
36- // TODO: uncomment when there is a released version with: https://github.com/elastic/elasticsearch/pull/25456
37- // versions = indexCompatVersions
38- for (Version version : versions) {
33+ for (Version version : indexCompatVersions) {
3934 String baseName = " v${ version} "
4035
4136 Task oldQueryBuilderTest = tasks. create(name : " ${ baseName} #oldQueryBuilderTest" , type : RestIntegTestTask ) {
@@ -48,9 +43,8 @@ for (Version version : versions) {
4843
4944 configure(extensions. findByName(" ${ baseName} #oldQueryBuilderTestCluster" )) {
5045 distribution = ' zip'
51- // TODO: uncomment when there is a released version with: https://github.com/elastic/elasticsearch/pull/25456
52- // bwcVersion = version
53- // numBwcNodes = 1
46+ bwcVersion = version
47+ numBwcNodes = 1
5448 numNodes = 1
5549 clusterName = ' query_builder_bwc'
5650 setting ' http.content_type.required' , ' true'
@@ -89,7 +83,7 @@ test.enabled = false // no unit tests for rolling upgrades, only the rest integr
8983// basic integ tests includes testing bwc against the most recent version
9084task integTest {
9185 if (project. bwc_tests_enabled) {
92- dependsOn = [" v${ versions [-1]} #bwcTest" ]
86+ dependsOn = [" v${ indexCompatVersions [-1]} #bwcTest" ]
9387 }
9488}
9589
0 commit comments