From 15036837bb7e4ebea32e19bfcf4f8d33dbd6215c Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 20 Feb 2015 16:54:23 +0100 Subject: [PATCH] No project for qemu binaries list --- gns3server/handlers/qemu_handler.py | 5 +---- tests/api/test_qemu.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gns3server/handlers/qemu_handler.py b/gns3server/handlers/qemu_handler.py index 11cdb928..4f8cb16c 100644 --- a/gns3server/handlers/qemu_handler.py +++ b/gns3server/handlers/qemu_handler.py @@ -262,10 +262,7 @@ class QEMUHandler: @classmethod @Route.get( - r"/projects/{project_id}/qemu/binaries", - parameters={ - "project_id": "UUID for the project" - }, + r"/qemu/binaries", status_codes={ 200: "Success", 400: "Invalid request", diff --git a/tests/api/test_qemu.py b/tests/api/test_qemu.py index 6d184b27..92501bc4 100644 --- a/tests/api/test_qemu.py +++ b/tests/api/test_qemu.py @@ -161,7 +161,7 @@ def test_qemu_list_binaries(server, vm): ret = [{"path": "/tmp/1", "version": "2.2.0"}, {"path": "/tmp/2", "version": "2.1.0"}] with asyncio_patch("gns3server.modules.qemu.Qemu.binary_list", return_value=ret) as mock: - response = server.get("/projects/{project_id}/qemu/binaries".format(project_id=vm["project_id"])) + response = server.get("/qemu/binaries".format(project_id=vm["project_id"])) assert mock.called assert response.status == 200 assert response.json == ret