Fix the docker aux port is lost after an update

Fix https://github.com/GNS3/gns3-gui/issues/1155
This commit is contained in:
Julien Duponchelle committed 2016-04-05 16:33:40 +02:00
1 parent 36dbcfa7f6
commit 2651a48102
2 files changed
+4

No files matched your search

+2
View File
@@ -451,6 +451,7 @@ def test_update(loop, vm):
}
original_console = vm.console
original_aux = vm.aux
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"):
@@ -481,6 +482,7 @@ def test_update(loop, vm):
"Cmd": ["/bin/sh"]
})
assert vm.console == original_console
assert vm.aux == original_aux
def test_update_running(loop, vm):