Skip to content

Conversation

JohanObrink
Copy link
Contributor

Sorry I didn't read the CONTRIB guidelines before starting work on the PR but I hope you will accept it without a prior Issue.

I looked at how the Testcontainer for Elasticsearch was built and tried to maintain the same style. I also basically copied the tests almost verbatim.

One thing added to the container that differs from the Elasticsearch implementation is a validation of the password which, if set, has to adhere to the requirements of the OpenSearch demo container. I added a check for this in TS to make it fail faster and with a more readable error message.

Otherwise, the container implementation follows the settings of the Dotnet OpenSearch container.

Two tests fail - for Kafka and BigQuery. It did not seem right to touch those tests in this PR.

Copy link

netlify bot commented Jul 12, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 7a0174b
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/6873be1cb69a800008ce2a56
😎 Deploy Preview https://deploy-preview-1072--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JohanObrink
Copy link
Contributor Author

Fixes #1071

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Jul 12, 2025
@cristianrgreco
Copy link
Collaborator

LGTM! Just missing an entry in dependabot.yml https://github.com/testcontainers/testcontainers-node/blob/3f3eed17742d4d48118959542571b3480811d138/.github/dependabot.yml

@cristianrgreco cristianrgreco changed the title Opensearch Add Opensearch module Jul 13, 2025
@cristianrgreco cristianrgreco merged commit 6539eb6 into testcontainers:main Jul 13, 2025
308 checks passed
@cristianrgreco
Copy link
Collaborator

Thanks @JohanObrink

@JohanObrink JohanObrink deleted the opensearch branch July 14, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Backward compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants