diff --git a/x-pack/qa/full-cluster-restart/build.gradle b/x-pack/qa/full-cluster-restart/build.gradle index fa2cf4dc33282..d59bed7b6c8a2 100644 --- a/x-pack/qa/full-cluster-restart/build.gradle +++ b/x-pack/qa/full-cluster-restart/build.gradle @@ -93,7 +93,7 @@ for (Version bwcVersion : BuildParams.bwcVersions.indexCompatible) { } String oldVersion = bwcVersion.toString().minus("-SNAPSHOT") - tasks.matching { it.name.startsWith(baseName) && it.name.endsWith("ClusterTest") }.configureEach { + tasks.matching { it.name.startsWith("${baseName}#") && it.name.endsWith("ClusterTest") }.configureEach { it.systemProperty 'tests.old_cluster_version', oldVersion it.systemProperty 'tests.path.repo', "${buildDir}/cluster/shared/repo/${baseName}" it.nonInputProperties.systemProperty('tests.rest.cluster', "${-> testClusters."${baseName}".allHttpSocketURI.join(",")}") diff --git a/x-pack/qa/rolling-upgrade-multi-cluster/build.gradle b/x-pack/qa/rolling-upgrade-multi-cluster/build.gradle index 76d068b153d76..2f27713b19ee4 100644 --- a/x-pack/qa/rolling-upgrade-multi-cluster/build.gradle +++ b/x-pack/qa/rolling-upgrade-multi-cluster/build.gradle @@ -21,7 +21,7 @@ for (Version bwcVersion : BuildParams.bwcVersions.wireCompatible) { numberOfNodes = 3 } } - testClusters.matching { it.name.startsWith(baseName) }.all { + testClusters.matching { it.name.startsWith("${baseName}-") }.all { testDistribution = "DEFAULT" versions = [bwcVersion.toString(), project.version] @@ -33,7 +33,7 @@ for (Version bwcVersion : BuildParams.bwcVersions.wireCompatible) { setting 'xpack.license.self_generated.type', 'trial' } - tasks.withType(RestTestRunnerTask).matching { it.name.startsWith(baseName) }.all { + tasks.withType(RestTestRunnerTask).matching { it.name.startsWith("${baseName}#") }.all { useCluster testClusters."${baseName}-leader" useCluster testClusters."${baseName}-follower" systemProperty 'tests.upgrade_from_version', bwcVersion.toString().replace('-SNAPSHOT', '')