Fix Exception when opening project that contains an IOU node

Fix #636
This commit is contained in:
Julien Duponchelle committed 2016-08-23 22:38:44 +02:00
1 parent 147bb8758a
commit 9231b8e991
3 files changed
-11

No files matched your search

-6
View File
@@ -98,8 +98,6 @@ def test_iou_create_with_params(http_compute, project, base_params):
with open(startup_config_file(project, response.json)) as f:
assert f.read() == "hostname test"
assert "iourc" in response.json["iourc_path"]
def test_iou_create_startup_config_already_exist(http_compute, project, base_params):
"""We don't erase a startup-config if already exist at project creation"""
@@ -153,8 +151,6 @@ def test_iou_start_with_iourc(http_compute, vm, tmpdir):
response = http_compute.get("/projects/{project_id}/iou/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]))
assert response.status == 200
with open(response.json["iourc_path"]) as f:
assert f.read() == "test"
def test_iou_stop(http_compute, vm):
@@ -205,8 +201,6 @@ def test_iou_update(http_compute, vm, tmpdir, free_console_port, project):
with open(startup_config_file(project, response.json)) as f:
assert f.read() == "hostname test"
assert "iourc" in response.json["iourc_path"]
def test_iou_nio_create_udp(http_compute, vm):
response = http_compute.post("/projects/{project_id}/iou/nodes/{node_id}/adapters/1/ports/0/nio".format(project_id=vm["project_id"], node_id=vm["node_id"]), {"type": "nio_udp",