Fix upgrade tests involving snapshot
Fixes ``` Could not determine the dependencies of task ':x-pack:qa:full-cluster-restart:with-system-key:v5.6.13#oldClusterTestCluster#node1.copyBwcPlugins'. ```
This commit is contained in:
parent
19d6cf1b9e
commit
b432cbdafe
|
@ -142,7 +142,12 @@ subprojects {
|
||||||
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
||||||
dependsOn copyTestNodeKeystore
|
dependsOn copyTestNodeKeystore
|
||||||
if (version.before('6.3.0')) {
|
if (version.before('6.3.0')) {
|
||||||
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${version}"
|
String depVersion = version;
|
||||||
|
if (project.bwcVersions.unreleased.contains(version)) {
|
||||||
|
depVersion += "-SNAPSHOT"
|
||||||
|
}
|
||||||
|
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${depVersion}"
|
||||||
|
|
||||||
}
|
}
|
||||||
bwcVersion = version
|
bwcVersion = version
|
||||||
numBwcNodes = 2
|
numBwcNodes = 2
|
||||||
|
|
|
@ -30,7 +30,12 @@ for (Version version : bwcVersions.wireCompatible) {
|
||||||
|
|
||||||
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
||||||
if (version.before('6.3.0')) {
|
if (version.before('6.3.0')) {
|
||||||
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${version}"
|
String depVersion = version;
|
||||||
|
if (project.bwcVersions.unreleased.contains(version)) {
|
||||||
|
depVersion += "-SNAPSHOT"
|
||||||
|
}
|
||||||
|
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${depVersion}"
|
||||||
|
|
||||||
}
|
}
|
||||||
bwcVersion = version
|
bwcVersion = version
|
||||||
numBwcNodes = 3
|
numBwcNodes = 3
|
||||||
|
|
|
@ -124,7 +124,11 @@ subprojects {
|
||||||
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
configure(extensions.findByName("${baseName}#oldClusterTestCluster")) {
|
||||||
dependsOn copyTestNodeKeystore
|
dependsOn copyTestNodeKeystore
|
||||||
if (version.before('6.3.0')) {
|
if (version.before('6.3.0')) {
|
||||||
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${version}"
|
String depVersion = version;
|
||||||
|
if (project.bwcVersions.unreleased.contains(version)) {
|
||||||
|
depVersion += "-SNAPSHOT"
|
||||||
|
}
|
||||||
|
mavenPlugin 'x-pack', "org.elasticsearch.plugin:x-pack:${depVersion}"
|
||||||
}
|
}
|
||||||
String usersCli = version.before('6.3.0') ? 'bin/x-pack/users' : 'bin/elasticsearch-users'
|
String usersCli = version.before('6.3.0') ? 'bin/x-pack/users' : 'bin/elasticsearch-users'
|
||||||
setupCommand 'setupTestUser', usersCli, 'useradd', 'test_user', '-p', 'x-pack-test-password', '-r', 'superuser'
|
setupCommand 'setupTestUser', usersCli, 'useradd', 'test_user', '-p', 'x-pack-test-password', '-r', 'superuser'
|
||||||
|
|
Loading…
Reference in New Issue