Skip to content

Commit

Permalink
Use latest OpenSearch for testing
Browse files Browse the repository at this point in the history
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 <juergen.walter@sap.com>
  • Loading branch information
juergen-walter committed Apr 5, 2024
1 parent d6aa7c9 commit 3e0e686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-prepper-plugins/opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
```

0 comments on commit 3e0e686

Please sign in to comment.