MQTT reference connector tests¶
Layer-1 (pure-logic) tests run in default CI against MockMqttSession
and require no real broker; they live as #[cfg(test)] units in
crates/taktora-connector-mqtt/src and as integration tests in
crates/taktora-connector-mqtt-tests/tests. Layer-3 broker-in-CI tests
sit behind the rumqttc-integration cargo feature, run against a
mosquitto fixture on .github/workflows/ci-mqtt.yml, and skip
(early-return) when the broker environment is absent, so they compile and
noop locally.
Compile-time API-surface check plus a runtime smoke over
|
Unit tests asserting |
Table-driven and |
A table of |
A typed value written through |
|
Unit tests asserting the outbound and inbound bridges are bounded
channels: |
With a full |
Past capacity, the per-channel |
A simulated broker |
Two channels sharing a filter cause exactly one broker |
The health watcher maps the session connection state onto
|
|
An authentication-rejected |
With |
|
A reader subscribes its filter at |
A JSON-encoded struct published on a concrete topic through
|
Broker-in-CI test ( |
Broker-in-CI test ( |
Broker-in-CI test ( |