mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
More VirtualBox work.
This commit is contained in:
1 parent
d9b02efbfa
commit
05c0efe39b
4 files changed
+151
-39
No files matched your search
@@ -70,3 +70,10 @@ def test_vbox_resume(server, vm):
|
||||
response = server.post("/virtualbox/{}/resume".format(vm["uuid"]))
|
||||
assert mock.called
|
||||
assert response.status == 204
|
||||
|
||||
|
||||
def test_vbox_reload(server, vm):
|
||||
with asyncio_patch("gns3server.modules.virtualbox.virtualbox_vm.VirtualBoxVM.reload", return_value=True) as mock:
|
||||
response = server.post("/virtualbox/{}/reload".format(vm["uuid"]))
|
||||
assert mock.called
|
||||
assert response.status == 204
|
||||
Reference in new issue
Block a user