mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix docker console port lost during update
Fix https://github.com/GNS3/gns3-gui/issues/1026
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -352,6 +352,9 @@ def test_update(loop, vm):
|
||||
"Id": "e90e34656806",
|
||||
"Warnings": []
|
||||
}
|
||||
|
||||
original_console = vm.console
|
||||
|
||||
with asyncio_patch("gns3server.modules.docker.Docker.list_images", return_value=[{"image": "ubuntu"}]) as mock_list_images:
|
||||
with asyncio_patch("gns3server.modules.docker.DockerVM._get_container_state", return_value="stopped"):
|
||||
with asyncio_patch("gns3server.modules.docker.Docker.query", return_value=response) as mock_query:
|
||||
@@ -373,6 +376,7 @@ def test_update(loop, vm):
|
||||
"Name": "test",
|
||||
"Image": "ubuntu"
|
||||
})
|
||||
assert vm.console == original_console
|
||||
|
||||
|
||||
def test_remove(loop, vm):
|
||||
|
||||
Reference in new issue
Block a user