Skip to content

feat(mongodb): Add Atlas Local for MongoDb - #873

Merged
alexanderankin merged 4 commits into
testcontainers:mainfrom
jeff-goddard:add-mongo-atlas-container
Apr 29, 2026
Merged

feat(mongodb): Add Atlas Local for MongoDb#873
alexanderankin merged 4 commits into
testcontainers:mainfrom
jeff-goddard:add-mongo-atlas-container

Conversation

@jeff-goddard

Copy link
Copy Markdown
Contributor

Linked issue: #865

This adds a Mongo DB Atlas local container.

This works similarly to the Java container: https://java.testcontainers.org/modules/databases/mongodb/#mongodbatlaslocalcontainer

Like the java one, I added this into the same module as the normal Mongo container, but we can make it into its own module if this would be better.

Changes form standard mongo container:

  1. Use different environment variables for configuration
  2. Wait for the container healthcheck rather than the logs, as it takes a little longer for the search service to start.

@jeff-goddard
jeff-goddardforce-pushed the add-mongo-atlas-container branch from e3d97ad to 71edfe1CompareSeptember 10, 2025 11:15
@0xfabioo

Copy link
Copy Markdown

Any progress on this?

@jeff-goddard
jeff-goddardforce-pushed the add-mongo-atlas-container branch from 71edfe1 to fb27121CompareDecember 10, 2025 11:33
@jeff-goddard

Copy link
Copy Markdown
ContributorAuthor

Any progress on this?

I have rebased this change with updates from the main branch, still waiting on a review or guidance from the project if this approach is good.

@Tranquility2Tranquility2 changed the title feat: Add container for MongoDb Atlas Localfeat(mongodb): Add Atlas Local for MongoDbApr 3, 2026
@Tranquility2Tranquility2 added 🚀 enhancement 👥 community feat feature but its a community module so we wont bump tc core for it labels Apr 3, 2026
@codecov

codecovBot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.05%. Comparing base (23aca0b) to head (a4dbe8a).

Additional details and impacted files
@@ Coverage Diff @@## main #873 +/- ##
=======================================
Coverage 83.05% 83.05% =======================================
Files 16 16 Lines 1700 1700 Branches 186 186 =======================================
Hits 1412 1412 Misses 234 234 Partials 54 54 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexanderankin
alexanderankin merged commit 73aeb43 into testcontainers:mainApr 29, 2026
9 of 10 checks passed
@alexanderankin

Copy link
Copy Markdown
Member

the test failure is ephemeral its just a race condition about docker reporting the container exists while it is removing it

alexanderankin added a commit that referenced this pull request Apr 30, 2026
🤖 I have created a release *beep* *boop*
---
##
[4.15.0-rc2](testcontainers-v4.15.0-rc.1...testcontainers-v4.15.0-rc2)
(2026-04-30)
### Features
* **core:** support TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX
([#961](#961))
([be9a0a6](be9a0a6))
* **mongodb:** Add Atlas Local for MongoDb
([#873](#873))
([73aeb43](73aeb43))
* support with_copy_to
([#976](#976))
([59ec1ce](59ec1ce))
* **valkey:** add Valkey module
([#947](#947))
([fc09dc1](fc09dc1))
### Bug Fixes
* **azurite:** use `HttpWaitStrategy` instead of deprecated
`wait_container_is_ready`
([#1003](#1003))
([9fe6b07](9fe6b07)),
closes
[#874](#874)
* fix pr
[#961](#961)
([#1011](#1011))
([8eff908](8eff908))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: David Ankin <daveankin@gmail.com>
@caseyclements

Copy link
Copy Markdown

@alexanderankin Do you know when this new container will be released?

@alexanderankin

Copy link
Copy Markdown
Member

its here - https://pypi.org/project/testcontainers/4.15.0rc2/

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👥 community featfeature but its a community module so we wont bump tc core for it🚀 enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@jeff-goddard@0xfabioo@alexanderankin@caseyclements@Tranquility2