From 259f6249e2341362770e5e619737b0b22f75103d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 23 Feb 2015 16:09:52 +0100 Subject: [PATCH] Fix tests --- gns3server/handlers/api/iou_handler.py | 3 +-- tests/handlers/api/test_iou.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gns3server/handlers/api/iou_handler.py b/gns3server/handlers/api/iou_handler.py index 30aada83..63a18a42 100644 --- a/gns3server/handlers/api/iou_handler.py +++ b/gns3server/handlers/api/iou_handler.py @@ -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}) diff --git a/tests/handlers/api/test_iou.py b/tests/handlers/api/test_iou.py index e112bd94..5e1b29dc 100644 --- a/tests/handlers/api/test_iou.py +++ b/tests/handlers/api/test_iou.py @@ -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"