From 86c9cb8de1c78ae994e480ccb4feec627cc62103 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 9 Dec 2024 17:19:02 +0100 Subject: [PATCH] OZG-7303: Try host.docker.internal --- .../operator/common/elasticsearch/ElasticsearchTestClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ozgcloud-elasticsearch-operator/src/test/java/de/ozgcloud/operator/common/elasticsearch/ElasticsearchTestClient.java b/ozgcloud-elasticsearch-operator/src/test/java/de/ozgcloud/operator/common/elasticsearch/ElasticsearchTestClient.java index 6407fe2..28e63d5 100644 --- a/ozgcloud-elasticsearch-operator/src/test/java/de/ozgcloud/operator/common/elasticsearch/ElasticsearchTestClient.java +++ b/ozgcloud-elasticsearch-operator/src/test/java/de/ozgcloud/operator/common/elasticsearch/ElasticsearchTestClient.java @@ -57,7 +57,7 @@ public class ElasticsearchTestClient { } private static RestClient buildRestClient() { - var host = new HttpHost("localhost", ELASTICSEARCH_CONTAINER.getMappedPort(PORT), SCHEME); + var host = new HttpHost("host.docker.internal", ELASTICSEARCH_CONTAINER.getMappedPort(PORT), SCHEME); var credentialsProvider = buildCredentialsProvider(); var builder = RestClient.builder(host); -- GitLab