build: Fix setting the incorrect bwc version in mixed cluster qa module

Prior to this change if the `bwcTest` task is run then it would create
task for each version, but each task in reality would use wireCompatVersions - 1
ES version. So we were not actually testing against 5.6.x versions in the
6.x and 6.0 branches.
This commit is contained in:
Martijn van Groningen 2017-11-03 11:52:23 +01:00
parent 262422375e
commit 9e67cca987
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@ for (Version version : wireCompatVersions) {
includePackaged = true
}
/* This project runs the core REST tests against a 2 node cluster where one of
/* This project runs the core REST tests against a 4 node cluster where two of
the nodes has a different minor. */
Object extension = extensions.findByName("${baseName}#mixedClusterTestCluster")
configure(extensions.findByName("${baseName}#mixedClusterTestCluster")) {
configure(extension) {
distribution = 'zip'
numNodes = 4
numBwcNodes = 2
bwcVersion = project.wireCompatVersions[-1]
bwcVersion = version
}
Task versionBwcTest = tasks.create(name: "${baseName}#bwcTest") {