From d1b4071a0b7408f0f08427d8322e7214aaf47446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Thu, 25 Apr 2024 09:48:28 +0200 Subject: [PATCH] Bump OpenSearch version used for tests/devservices to 2.13 --- build-parent/pom.xml | 2 +- .../src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc | 2 +- .../asciidoc/hibernate-search-standalone-elasticsearch.adoc | 2 +- .../common/deployment/DevServicesElasticsearchProcessor.java | 4 ++++ integration-tests/hibernate-search-orm-opensearch/pom.xml | 3 +++ ...teSearchOpenSearchDevServicesConfiguredExplicitlyTest.java | 4 ++-- ...nateSearchOpenSearchDevServicesDisabledExplicitlyTest.java | 2 +- ...nateSearchOpenSearchDevServicesDisabledImplicitlyTest.java | 2 +- .../hibernate-search-standalone-opensearch/pom.xml | 3 +++ ...nateSearchOpenSearchDevServicesDisabledExplicitlyTest.java | 2 +- ...nateSearchOpenSearchDevServicesDisabledImplicitlyTest.java | 2 +- 11 files changed, 19 insertions(+), 9 deletions(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 5741c3801917c..349696b7b323e 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -88,7 +88,7 @@ docker.io/elastic/logstash:${elasticsearch-server.version} docker.io/elastic/kibana:${elasticsearch-server.version} http - 2.11.1 + 2.13.0 docker.io/opensearchproject/opensearch:${opensearch-server.version} http 2.2.0 diff --git a/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc b/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc index d7010af28865f..82faa37cf6a5b 100644 --- a/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc +++ b/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc @@ -823,7 +823,7 @@ as shown below. [source,properties] ---- -quarkus.hibernate-search-orm.elasticsearch.version=opensearch:2.11 +quarkus.hibernate-search-orm.elasticsearch.version=opensearch:2.13 ---- All other configuration options and APIs are exactly the same as with Elasticsearch. diff --git a/docs/src/main/asciidoc/hibernate-search-standalone-elasticsearch.adoc b/docs/src/main/asciidoc/hibernate-search-standalone-elasticsearch.adoc index 00d750fab9282..6e4fb29c07ae4 100644 --- a/docs/src/main/asciidoc/hibernate-search-standalone-elasticsearch.adoc +++ b/docs/src/main/asciidoc/hibernate-search-standalone-elasticsearch.adoc @@ -741,7 +741,7 @@ as shown below. [source,properties] ---- -quarkus.hibernate-search-standalone.elasticsearch.version=opensearch:2.11 +quarkus.hibernate-search-standalone.elasticsearch.version=opensearch:2.13 ---- All other configuration options and APIs are exactly the same as with Elasticsearch. diff --git a/extensions/elasticsearch-rest-client-common/deployment/src/main/java/io/quarkus/elasticsearch/restclient/common/deployment/DevServicesElasticsearchProcessor.java b/extensions/elasticsearch-rest-client-common/deployment/src/main/java/io/quarkus/elasticsearch/restclient/common/deployment/DevServicesElasticsearchProcessor.java index 131bb60e91420..2308d705a40e9 100644 --- a/extensions/elasticsearch-rest-client-common/deployment/src/main/java/io/quarkus/elasticsearch/restclient/common/deployment/DevServicesElasticsearchProcessor.java +++ b/extensions/elasticsearch-rest-client-common/deployment/src/main/java/io/quarkus/elasticsearch/restclient/common/deployment/DevServicesElasticsearchProcessor.java @@ -260,6 +260,10 @@ private GenericContainer createOpensearchContainer(ElasticsearchDevServicesBu // See https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/ container.addEnv("cluster.routing.allocation.disk.threshold_enabled", "false"); container.addEnv("OPENSEARCH_JAVA_OPTS", config.javaOpts); + // OpenSearch 2.12 and later requires an admin password, or it won't start. + // Considering dev services are transient and not intended for production by nature, + // we'll just set some hardcoded password. + container.addEnv("OPENSEARCH_INITIAL_ADMIN_PASSWORD", "NotActua11y$trongPa$$word"); return container; } diff --git a/integration-tests/hibernate-search-orm-opensearch/pom.xml b/integration-tests/hibernate-search-orm-opensearch/pom.xml index 0dbdd56c2eafc..777a12a84c135 100644 --- a/integration-tests/hibernate-search-orm-opensearch/pom.xml +++ b/integration-tests/hibernate-search-orm-opensearch/pom.xml @@ -190,6 +190,9 @@ --> false -Xms512m -Xmx512m + + NotActua11y$trongPa$$word false -Xms512m -Xmx512m + + NotActua11y$trongPa$$word