Adding module mosquitto#1390
Open
ChxGuillaume wants to merge 3 commits into
Open
Conversation
…ests, and documentation updates.
…up log matching, upgrade to Mosquitto 2 base image, and fix file permissions during setup.
…o a dedicated file and updated related documentation references.
✅ Deploy Preview for testcontainers-node ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Mosquitto module
This PR introduces a new
@testcontainers/mosquittomodule for the Eclipse Mosquitto MQTT broker, following the same structure as the existing HiveMQ module.What's included
MosquittoContainer— starts aneclipse-mosquitto:2container with a custom config injected at startup, since Mosquitto 2.x disallows anonymous connections by defaultallow_anonymous true) out of the boxwithUsername()/withPassword()— creates the password file usingmosquitto_passwd -bbefore launching the broker, with achownto fix ownership since Mosquitto drops privileges to themosquittouserStartedMosquittoContainer.getPort()andgetConnectionString()— the latter includes credentials in the URL when auth is configuredmosquitto-container.test.tsandmosquitto-container-auth.test.ts) kept separate to avoid a codeinclude block-name collision betweenmosquittoConnectandmosquittoConnectWithCredentialsdocs/modules/mosquitto.mdwith codeinclude examples for both usage patterns, added to the mkdocs navigation