Support listing images in subdirectories

It's a part of the OVA support:
https://github.com/GNS3/gns3-gui/issues/700
This commit is contained in:
Julien Duponchelle committed 2015-10-05 11:07:15 +02:00
1 parent dd7f6eb021
commit 034ac392b7
11 files changed
+84 -79

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ def test_vms(server, tmpdir, fake_iou_bin):
with patch("gns3server.modules.IOU.get_images_directory", return_value=str(tmpdir)):
response = server.get("/iou/vms", example=True)
assert response.status == 200
assert response.json == [{"filename": "iou.bin"}]
assert response.json == [{"filename": "iou.bin", "path": "iou.bin"}]
def test_upload_vm(server, tmpdir):
+1 -1
View File
@@ -216,7 +216,7 @@ def test_vms(server, tmpdir, fake_qemu_vm):
with patch("gns3server.modules.Qemu.get_images_directory", return_value=str(tmpdir), example=True):
response = server.get("/qemu/vms")
assert response.status == 200
assert response.json == [{"filename": "linux.img"}]
assert response.json == [{"filename": "linux.img", "path": "linux.img"}]
def test_upload_vm(server, tmpdir):