fix(web-app-seaweedfs): mount the console config on the service that renders

The role's compose template names its service after the entity, which the rename turned into seaweedfs-console, while meta/volumes.yml still pointed the config mount at a role id that no longer exists and at the service key the engine consumer occupies. A mount whose service matches nothing is dropped without an error, so the console would have come up without its vhost config and still answered the HTTP probe from the nginx default page.

The remaining files are line joins the formatter produced once the shorter symbol name let the calls fit on one line; their syntax trees are identical to the previous revision.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-10-03 20:14:26 +02:00
1 parent a05071fe78
commit a056c2edaa
8 files changed
+9 -24

No files matched your search

@@ -6,9 +6,7 @@ class TestGetDockerPaths(unittest.TestCase):
def test_get_docker_paths_uses_entity_name_and_builds_layout(self):
import plugins.filter.get.docker_paths as m
with patch(
"utils.docker.paths_utils.entity_name", lambda app_id: "myentity"
):
with patch("utils.docker.paths_utils.entity_name", lambda app_id: "myentity"):
out = m.get_docker_paths("web-app-anything", "/opt/compose/")
self.assertEqual(out["directories"]["instance"], "/opt/compose/myentity/")
@@ -39,9 +39,7 @@ class TestGetEntityNameFilter(unittest.TestCase):
root.start()
self.addCleanup(root.stop)
entity_root = patch(
"utils.roles.entity.name.PROJECT_ROOT", Path(self.temp_dir)
)
entity_root = patch("utils.roles.entity.name.PROJECT_ROOT", Path(self.temp_dir))
entity_root.start()
self.addCleanup(entity_root.stop)
@@ -58,9 +58,7 @@ class ObjstoreLookupTests(unittest.TestCase):
lookup = self._make_lookup(vars_)
with (
mock.patch.object(self.mod, "lookup_loader") as loader_mock,
patch.object(
self.mod, "entity_name", side_effect=self._fake_entity_name
),
patch.object(self.mod, "entity_name", side_effect=self._fake_entity_name),
):
loader_mock.get.return_value = mock.MagicMock(
run=lambda *_a, **_k: [applications]