Support uploading iourc

This commit is contained in:
Julien Duponchelle committed 2015-03-17 16:31:45 +01:00
1 parent 964ea0f577
commit 66cdf39ea2
7 files changed
+98 -3

No files matched your search

+3
View File
@@ -75,6 +75,7 @@ def test_iou_create_with_params(server, project, base_params):
params["l1_keepalives"] = True
params["initial_config_content"] = "hostname test"
params["use_default_iou_values"] = True
params["iourc_content"] = "test"
response = server.post("/projects/{project_id}/iou/vms".format(project_id=project.id), params, example=True)
assert response.status == 201
@@ -92,6 +93,8 @@ def test_iou_create_with_params(server, project, base_params):
with open(initial_config_file(project, response.json)) as f:
assert f.read() == params["initial_config_content"]
assert "iourc" in response.json["iourc_path"]
def test_iou_get(server, project, vm):
response = server.get("/projects/{project_id}/iou/vms/{vm_id}".format(project_id=vm["project_id"], vm_id=vm["vm_id"]), example=True)