From 3e0e686954559897ba6a0233c1941e8ef1fd4413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Walter?= Date: Fri, 5 Apr 2024 15:40:43 +0200 Subject: [PATCH] Use latest OpenSearch for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version 2.12.0 onwards requires to use non-default admin password https://opensearch.org/blog/replacing-default-admin-credentials/ Signed-off-by: Jürgen Walter --- data-prepper-plugins/opensearch/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-prepper-plugins/opensearch/README.md b/data-prepper-plugins/opensearch/README.md index 2db0d499e2..f6f7b1a3ea 100644 --- a/data-prepper-plugins/opensearch/README.md +++ b/data-prepper-plugins/opensearch/README.md @@ -605,11 +605,11 @@ The default behavior is to process all indices. Start an instance of OpenSearch that listens to opens port 9200 with default user admin:admin. ``` -docker run -p 9200:9200 -e "discovery.type=single-node" opensearchproject/opensearch:1.0.0 +docker run -p 9200:9200 -e "discovery.type=single-node" -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=yourStrongPassword123!" opensearchproject/opensearch:latest ``` #### Run tests ``` -./gradlew data-prepper-plugins:opensearch:integrationTest -Dtests.opensearch.host=localhost:9200 -Dtests.opensearch.user=admin -Dtests.opensearch.password=admin +./gradlew data-prepper-plugins:opensearch:integrationTest -Dtests.opensearch.host=localhost:9200 -Dtests.opensearch.user=admin -Dtests.opensearch.password=yourStrongPassword123! ```