1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix VPCS test suite

This commit is contained in:
Julien Duponchelle 2017-01-17 16:02:56 +01:00
parent bfb23ce7a3
commit 6938e400d1
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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"