mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
87eef545e1
commit
057b637961
@ -153,6 +153,7 @@ class DockerVM(BaseVM):
|
|||||||
image_infos = yield from self._get_image_informations()
|
image_infos = yield from self._get_image_informations()
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
|
"Hostname": self._name,
|
||||||
"Name": self._name,
|
"Name": self._name,
|
||||||
"Image": self._image,
|
"Image": self._image,
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
|
@ -91,6 +91,7 @@ def test_create(loop, project, manager):
|
|||||||
"Volumes": {},
|
"Volumes": {},
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
"Name": "test",
|
"Name": "test",
|
||||||
|
"Hostname": "test",
|
||||||
"Image": "ubuntu"
|
"Image": "ubuntu"
|
||||||
})
|
})
|
||||||
assert vm._cid == "e90e34656806"
|
assert vm._cid == "e90e34656806"
|
||||||
@ -121,6 +122,7 @@ def test_create_start_cmd(loop, project, manager):
|
|||||||
"Cmd": ["/bin/ls"],
|
"Cmd": ["/bin/ls"],
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
"Name": "test",
|
"Name": "test",
|
||||||
|
"Hostname": "test",
|
||||||
"Image": "ubuntu"
|
"Image": "ubuntu"
|
||||||
})
|
})
|
||||||
assert vm._cid == "e90e34656806"
|
assert vm._cid == "e90e34656806"
|
||||||
@ -151,6 +153,7 @@ def test_create_environment(loop, project, manager):
|
|||||||
"Volumes": {},
|
"Volumes": {},
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
"Name": "test",
|
"Name": "test",
|
||||||
|
"Hostname": "test",
|
||||||
"Image": "ubuntu"
|
"Image": "ubuntu"
|
||||||
})
|
})
|
||||||
assert vm._cid == "e90e34656806"
|
assert vm._cid == "e90e34656806"
|
||||||
@ -180,6 +183,7 @@ def test_create_image_not_available(loop, project, manager):
|
|||||||
"Volumes": {},
|
"Volumes": {},
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
"Name": "test",
|
"Name": "test",
|
||||||
|
"Hostname": "test",
|
||||||
"Image": "ubuntu"
|
"Image": "ubuntu"
|
||||||
})
|
})
|
||||||
assert vm._cid == "e90e34656806"
|
assert vm._cid == "e90e34656806"
|
||||||
@ -382,6 +386,7 @@ def test_update(loop, vm):
|
|||||||
"Volumes": {},
|
"Volumes": {},
|
||||||
"NetworkDisabled": True,
|
"NetworkDisabled": True,
|
||||||
"Name": "test",
|
"Name": "test",
|
||||||
|
"Hostname": "test",
|
||||||
"Image": "ubuntu"
|
"Image": "ubuntu"
|
||||||
})
|
})
|
||||||
assert vm.console == original_console
|
assert vm.console == original_console
|
||||||
|
Loading…
Reference in New Issue
Block a user