microcks / microcks-testcontainers-java

Java lib for Testcontainers that enables embedding Microcks into your JUnit tests with lightweight, throwaway instance thanks to containers.
https://microcks.io
Apache License 2.0
22 stars 5 forks source link

Add API to enable MQTT mocking support #53

Closed lbroudoux closed 4 months ago

lbroudoux commented 4 months ago

Reason/Context

Today, the Microcks testcontainersmodule only supports WebSocket, Kafka and AWS SQS and SNS as asynchronous protocols. The Microcks regular distribution supports all the other protocols like MQTT, Nats, Google PubSub and RabbitMQ.

The goal of this enhancement is to add MQTT support to the testcontainers module. MQTT is a popular protocol and we met many developers being interested in having its support in Microcks testcontainers module.

Description

Simply put, we need a new withMQTTConnection(GenericConnection connection) method on the MicrocksAsyncMinionContainer and the MicrocksContainersEnsemble.

Implementation ideas

No response

lbroudoux commented 4 months ago

This is linked to microcks/microcks#1239