Skip to content

feat(mqtt): MosquittoContainer: Add version 2.1.2#978

Merged
alexanderankin merged 5 commits into
testcontainers:mainfrom
f18m:fix-mosquitto
Mar 24, 2026
Merged

feat(mqtt): MosquittoContainer: Add version 2.1.2#978
alexanderankin merged 5 commits into
testcontainers:mainfrom
f18m:fix-mosquitto

Conversation

@f18m

@f18m f18m commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

This PR enables the testcontainer MosquittoContainer (which I contributed to this project a few years ago) to work with version 2.1.2 and higher of Mosquitto.

In particular this PR is fixing an issue where rw mode is now needed for /data partition for Mosquitto version 2.1.1 (released 2026-02-04), which fixed a PUID/PGID issue.
In addition, it contains a fix for Mosquitto warnings generated by the listener directive appearing after protocol directive.

@alexanderankin alexanderankin changed the title MosquittoContainer: Add version 2.1.2 Mar 18, 2026

@alexanderankin alexanderankin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the goal here?

@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.86%. Comparing base (b12ae13) to head (210719e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
core/testcontainers/core/container.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #978      +/-   ##
==========================================
+ Coverage   78.71%   78.86%   +0.15%     
==========================================
  Files          14       14              
  Lines        1217     1221       +4     
  Branches      142      142              
==========================================
+ Hits          958      963       +5     
+ Misses        218      216       -2     
- Partials       41       42       +1     

☔ 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.
@f18m

f18m commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

hey @alexanderankin ,
sorry I forgot to update the description of the PR, doing now.

@f18m f18m marked this pull request as ready for review March 18, 2026 09:42
@alexanderankin

Copy link
Copy Markdown
Member

ok lets make sure this doesnt cause weirdness with the hardcoded volume name. lets use a uuid or something there

@alexanderankin

Copy link
Copy Markdown
Member

if you can figure out how to mount tmpfs that would be even better

@f18m

f18m commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

hey @alexanderankin ,
I have added support in the DockerContainer class for tmpfs mounts... WDYT ?

@alexanderankin alexanderankin merged commit af382f7 into testcontainers:main Mar 24, 2026
11 of 12 checks passed
alexanderankin added a commit that referenced this pull request Apr 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[4.15.0-rc.1](testcontainers-v4.14.2...testcontainers-v4.15.0-rc.1)
(2026-04-07)


### Features

* **compose:** add structured container inspect information
([#897](#897))
([58459a1](58459a1))
* **core:** support SSH-based DOCKER_HOST
([#993](#993))
([d48115d](d48115d))
* **generic:** Reintroducing the generic SQL module
([#892](#892))
([2ca2321](2ca2321))
* **keycloak:** support for relative path and management relative path
([#982](#982))
([898faf6](898faf6))
* **mqtt:** MosquittoContainer: Add version 2.1.2
([#978](#978))
([af382f7](af382f7))


### Bug Fixes

* **azurite:** make visible to type checkers
([#927](#927))
([baa5668](baa5668))
* **clickhouse:** add `HttpWaitStrategy` instead of deprecated
`wait_container_is_ready`
([#962](#962))
([8034541](8034541))
* **compose:** return type in get_service_port docstring
([#939](#939))
([fed65fe](fed65fe))
* **core:** Refactor copy file
([#996](#996))
([0e0bb24](0e0bb24))
* **core:** wait for ryuk more reliably, improve tests: long_running,
filter logs
([#984](#984))
([b12ae13](b12ae13))
* **generic:** Migrate ServerContainer from deprecated decorator to
HttpWaitStrategy
([#971](#971))
([460b0d8](460b0d8))
* **kafka:** Use wait strategy instead of deprecated wait_for_logs
([#903](#903))
([87332c1](87332c1))
* **postgres:** add py.typed marker to postgres module
([#849](#849))
([c8a5bbd](c8a5bbd))
* **qdrant:** migrate Qdrant from deprecated decorator.
([#963](#963))
([407f798](407f798))
* **redis:** Use wait strategy instead of deprecated decorator
([#914](#914))
([e25713a](e25713a))
* **sftp:** Avoid using wait_for_logs in module.
([#995](#995))
([83157eb](83157eb))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants