Fix tests

This commit is contained in:
Julien Duponchelle 2015-02-23 16:09:52 +01:00
parent f7cd09d5fb
commit 259f6249e2
2 changed files with 1 additions and 4 deletions

View File

@ -308,5 +308,4 @@ class IOUHandler:
vm = iou_manager.get_vm(request.match_info["vm_id"],
project_id=request.match_info["project_id"])
response.set_status(200)
response.json({"content": vm.initial_config,
"path": vm.relative_initial_config_file})
response.json({"content": vm.initial_config})

View File

@ -234,7 +234,6 @@ def test_get_initial_config_without_config_file(server, vm):
response = server.get("/projects/{project_id}/iou/vms/{vm_id}/initial_config".format(project_id=vm["project_id"], vm_id=vm["vm_id"]), example=True)
assert response.status == 200
assert response.json["content"] == None
assert response.json["path"] == None
def test_get_initial_config_with_config_file(server, project, vm):
@ -246,4 +245,3 @@ def test_get_initial_config_with_config_file(server, project, vm):
response = server.get("/projects/{project_id}/iou/vms/{vm_id}/initial_config".format(project_id=vm["project_id"], vm_id=vm["vm_id"]), example=True)
assert response.status == 200
assert response.json["content"] == "TEST"
assert response.json["path"] == "initial-config.cfg"