1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 12:16:49 +00:00

refactor(computes): drop the unused domain capabilities endpoint

No page or script called it, and it answered with the disk device
types for both videos and buses. The create view keeps reading the
domain capabilities through wvmConnect.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
catborise 2026-10-21 08:31:10 +03:00
parent b45f673da7
commit aa720e09e8
4 changed files with 1 additions and 38 deletions

View file

@ -87,10 +87,9 @@ class JsonEndpointContentTypeTestCase(TestCase):
reverse("compute_graph", args=[self.compute.id]),
reverse("machines", args=[self.compute.id, "x86_64"]),
reverse("buses", args=[self.compute.id, "x86_64", "q35", "disk"]),
reverse("domcaps", args=[self.compute.id, "x86_64", "q35"]),
]
with patch("computes.views.ComputeManager") as mock_mgr:
for method in ("compute_graph", "get_machine_types", "get_disk_buses", "get_dom_capabilities"):
for method in ("compute_graph", "get_machine_types", "get_disk_buses"):
getattr(mock_mgr.return_value, method).return_value = "{}"
for url in urls:
with self.subTest(url=url):