Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support For MongoDB #1574

Closed
ankurpathak opened this issue Jun 28, 2019 · 5 comments
Closed

Add Support For MongoDB #1574

ankurpathak opened this issue Jun 28, 2019 · 5 comments

Comments

@ankurpathak
Copy link

On going through documentation I can't find support fr MongoDB.
https://www.testcontainers.org
Kindly add support for MongoDB as well.

@bsideup
Copy link
Member

bsideup commented Jun 28, 2019

MongoDB was added as an example in #1288 instead of a module because it is too simple:
https://github.com/testcontainers/testcontainers-java/tree/master/examples/mongodb-container

@ankurpathak
Copy link
Author

ankurpathak commented Jun 28, 2019

What is the issue in adding the new module for MondoDB? Its might be simple but inbuild support for it help community a lot as MongoDB is very widely used Document Store. If current contributors have less time to work they can invite community to join and work on it as a PR. We are supporting many databases and we must add support for MongoDB as well.

@bsideup
Copy link
Member

bsideup commented Jun 28, 2019

@ankurpathak
every new module adds an overhead to our CI, maintainability and release process.

We are supporting many databases and we must add support for MongoDB as well.

Testcontainers project provides support for many databases that are not trivial to use with GenericContainer only.

In case of MongoDB, we're talking about the following lines:

new GenericContainer("mongo:4.0").withExposedPort(27017);

Why would you need a dedicated module for that? Isn't it leftpad-ish?

@ankurpathak
Copy link
Author

This example work like a champ. @bsideup I agree with u.

@ankurpathak
Copy link
Author

ankurpathak commented Jul 24, 2019

@bsideup MongoDB 4 support Transactions. But to test those transactions we need run MongoDb in
Replica Set mode,and its a pain. Can we add a new module for MongoDb to support replica set mode
or give an example for same. So we can test MongoDb Transactions.
Here is a reference url for same:
https://www.baeldung.com/spring-data-mongodb-transactions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants