Ensure remote-cluster cluster is available when configuring tasks using it (#78397) (#78425)

Fixes #78389

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Rene Groeschke 2021-09-29 03:19:18 +02:00 committed by GitHub
parent 76733d92ee
commit 490c23beda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,13 @@ apply plugin: 'elasticsearch.internal-testclusters'
apply plugin: 'elasticsearch.standalone-rest-test' apply plugin: 'elasticsearch.standalone-rest-test'
apply plugin: 'elasticsearch.rest-resources' apply plugin: 'elasticsearch.rest-resources'
dependencies { dependencies {
testImplementation project(":client:rest-high-level") testImplementation project(":client:rest-high-level")
} }
testClusters.register('remote-cluster')
tasks.register('remote-cluster', RestIntegTestTask) { tasks.register('remote-cluster', RestIntegTestTask) {
mustRunAfter("precommit") mustRunAfter("precommit")
systemProperty 'tests.rest.suite', 'remote_cluster' systemProperty 'tests.rest.suite', 'remote_cluster'