mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fix VPCS test suite
This commit is contained in:
parent
bfb23ce7a3
commit
6938e400d1
@ -130,9 +130,8 @@ def test_vpcs_delete(http_compute, vm):
|
|||||||
def test_vpcs_update(http_compute, vm, tmpdir, free_console_port):
|
def test_vpcs_update(http_compute, vm, tmpdir, free_console_port):
|
||||||
response = http_compute.put("/projects/{project_id}/vpcs/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), {"name": "test",
|
response = http_compute.put("/projects/{project_id}/vpcs/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), {"name": "test",
|
||||||
"console": free_console_port,
|
"console": free_console_port,
|
||||||
"startup_script": "ip 192.168.1.1"},
|
},
|
||||||
example=True)
|
example=True)
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
assert response.json["name"] == "test"
|
assert response.json["name"] == "test"
|
||||||
assert response.json["console"] == free_console_port
|
assert response.json["console"] == free_console_port
|
||||||
assert response.json["startup_script"] == "ip 192.168.1.1"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user