mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-15 21:08:55 +00:00
Fix tests
This commit is contained in:
parent
f7cd09d5fb
commit
259f6249e2
@ -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})
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user