Skip to content

Conversation

@eddumelendez
Copy link
Member

Previously, the command execution relied on the image version which
is different when building custom images. Instead, mongosh or mongo
is executed if it is present within the PATH.

Previously, the command execution relied on the image version which
is different when building custom images. Instead, `mongosh` or `mongo`
is executed if it is present within the PATH.
In order to make sure tests are performing operations test has been
updated.
@eddumelendez eddumelendez merged commit 42a7441 into master Aug 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the mongo_cmd_detection branch August 29, 2022 15:05
melix added a commit to micronaut-projects/micronaut-test-resources that referenced this pull request Aug 30, 2022
This works around a breaking change in the latest image which isn't
compatible with Testcontainers.

See testcontainers/testcontainers-java#5774
melix added a commit to micronaut-projects/micronaut-test-resources that referenced this pull request Aug 30, 2022
* Let the user choose a custom db name

Fixes #74

* Hardcode MongoDB image version

This works around a breaking change in the latest image which isn't
compatible with Testcontainers.

See testcontainers/testcontainers-java#5774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants