Skip to content
Snippets Groups Projects
Commit 9a455d75 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7346: Try to fix issue by using different hostname

parent af515c48
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ class ElasticsearchRemoteServiceITCase {
@SneakyThrows
@BeforeEach
private void initIndex() {
public void initIndex() {
createIndex();
}
......@@ -125,7 +125,7 @@ class ElasticsearchRemoteServiceITCase {
@SneakyThrows
@BeforeEach
private void initSecurityRole() {
public void initSecurityRole() {
createIndex();
client.security().putRole(service.createPutRoleRequest(PutRoleRequestDataTestFactory.create()));
}
......
......@@ -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(ELASTICSEARCH_CONTAINER.getHttpHostAddress(), ELASTICSEARCH_CONTAINER.getMappedPort(PORT), SCHEME);
var credentialsProvider = buildCredentialsProvider();
var builder = RestClient.builder(host);
......
......@@ -30,7 +30,7 @@
<parent>
<groupId>de.ozgcloud.common</groupId>
<artifactId>ozgcloud-common-parent</artifactId>
<version>4.5.0</version>
<version>4.6.0</version>
</parent>
<groupId>de.ozgcloud</groupId>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment