fix: pass mqtt credentials through compose

This commit is contained in:
Media
2026-08-06 19:30:22 -05:00
parent 63ea314b18
commit 72cc66df92
5 changed files with 61 additions and 2 deletions
+12
View File
@@ -213,6 +213,18 @@ class ComposeRuntimeTests(unittest.TestCase):
published_targets.add(match.group(1))
self.assertIn("7531", published_targets)
def test_compose_passes_all_supported_mqtt_environment_overrides(self):
environment = _environment_map(self.service.get("environment"))
for name in (
"MQTT_HOST",
"MQTT_PORT",
"MQTT_USERNAME",
"MQTT_PASSWORD",
"MQTT_CLIENT_ID",
):
with self.subTest(name=name):
self.assertIn(name, environment)
def test_compose_uses_dedicated_data_media_and_cookie_mounts(self):
mounts = _volume_mounts(self.service.get("volumes"))
by_target = {target: (source, read_only) for source, target, read_only in mounts}