Return md5sum and filesize in the list of images

Ref https://github.com/GNS3/gns3-gui/issues/1590
This commit is contained in:
Julien Duponchelle
2016-10-20 17:24:05 +02:00
parent 69fcf801c3
commit 106915f419
10 changed files with 49 additions and 18 deletions

View File

@ -226,7 +226,7 @@ def test_images(http_compute, tmpdir, fake_qemu_vm):
response = http_compute.get("/qemu/images")
assert response.status == 200
assert response.json == [{"filename": "linux载.img", "path": "linux载.img"}]
assert response.json == [{"filename": "linux载.img", "path": "linux载.img", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}]
def test_upload_image(http_compute, tmpdir):