From 30d18252d795085850ba8fc2c183e88a996e77db Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Tue, 23 Jan 2024 14:26:58 +0800 Subject: [PATCH] update host for remote cluster health check Signed-off-by: Hailong Cui --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ebd7703ab..3bc620731 100644 --- a/build.gradle +++ b/build.gradle @@ -509,7 +509,8 @@ def waitForClusterSetup(OpenSearchCluster cluster, Boolean securityEnabled) { Predicate pred = { String protocol = securityEnabled ? "https" : "http" - WaitForClusterYellow wait = new WaitForClusterYellow(protocol, cluster.getFirstNode().getHttpSocketURI(), cluster.nodes.size()) + String host = System.getProperty("tests.cluster", cluster.getFirstNode().getHttpSocketURI()) + WaitForClusterYellow wait = new WaitForClusterYellow(protocol, host, cluster.nodes.size()) wait.setUsername(System.getProperty("user", "admin")) wait.setPassword(System.getProperty("password", "admin")) return wait.wait(180000)