mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Expose /virtualbox/vms /vmwares/vms and /images via controller
Ref #1192, #537
This commit is contained in:
4 files changed
+88
-2
No files matched your search
@@ -221,3 +221,11 @@ def test_update(compute, controller, async_run):
|
||||
assert compute.host == "example.org"
|
||||
controller.notification.emit.assert_called_with("compute.updated", compute.__json__())
|
||||
assert compute.connected is False
|
||||
|
||||
|
||||
def test_forward(compute, async_run):
|
||||
response = MagicMock()
|
||||
response.status = 200
|
||||
with asyncio_patch("aiohttp.ClientSession.request", return_value=response) as mock:
|
||||
async_run(compute.forward("qemu", "images"))
|
||||
mock.assert_called_with("GET", "https://example.com:84/v2/compute/qemu/images", auth=None, data=None, headers={'content-type': 'application/json'})
|
||||
Reference in new issue
Block a user