From 8bf8ca622227afbdb798b974e3bfbc86c8707b0e Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 18 Jan 2016 19:27:51 -0800 Subject: [PATCH] Fix rest tests to use ip and port again instead of localhost and port. --- .../org/elasticsearch/gradle/test/RestIntegTestTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy index bd0ebb51d42..3bfe9d61018 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy @@ -61,7 +61,7 @@ public class RestIntegTestTask extends RandomizedTestingTask { // references can be accessed as a fully configured project.gradle.projectsEvaluated { NodeInfo node = ClusterFormationTasks.setup(project, this, clusterConfig) - systemProperty('tests.rest.cluster', "localhost:${-> new URL('http://' + node.httpUri()).getPort()}") + systemProperty('tests.rest.cluster', "${-> node.httpUri()}") // TODO: our "client" qa tests currently use the rest-test plugin. instead they should have their own plugin // that sets up the test cluster and passes this transport uri instead of http uri. Until then, we pass // both as separate sysprops