Skip to content
Snippets Groups Projects
Commit 10610bb1 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7346: Try newer version of Elasticsearch

parent 9a455d75
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ import co.elastic.clients.transport.rest_client.RestClientTransport;
public class ElasticsearchTestClient {
private static final String IMAGE_NAME = "docker.elastic.co/elasticsearch/elasticsearch:8.11.3";
private static final String IMAGE_NAME = "docker.elastic.co/elasticsearch/elasticsearch:8.16.1";
private static final String USER = "elastic";
private static final String PASSWORD = "s3cret";
private static final int PORT = 9200;
......@@ -57,7 +57,7 @@ public class ElasticsearchTestClient {
}
private static RestClient buildRestClient() {
var host = new HttpHost(ELASTICSEARCH_CONTAINER.getHttpHostAddress(), ELASTICSEARCH_CONTAINER.getMappedPort(PORT), SCHEME);
var host = new HttpHost("localhost", ELASTICSEARCH_CONTAINER.getMappedPort(PORT), SCHEME);
var credentialsProvider = buildCredentialsProvider();
var builder = RestClient.builder(host);
......
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