diff --git a/gns3server/handlers/api/controller/appliance_handler.py b/gns3server/handlers/api/controller/appliance_handler.py index 75b45697..7e3b0c11 100644 --- a/gns3server/handlers/api/controller/appliance_handler.py +++ b/gns3server/handlers/api/controller/appliance_handler.py @@ -26,7 +26,7 @@ class ApplianceHandler: """API entry points for appliance management.""" @Route.get( - r"/appliances", + r"/appliances/templates", description="List of appliance", status_codes={ 200: "Appliance list returned" diff --git a/tests/handlers/api/controller/test_appliance.py b/tests/handlers/api/controller/test_appliance.py index f73cba43..01fdbe74 100644 --- a/tests/handlers/api/controller/test_appliance.py +++ b/tests/handlers/api/controller/test_appliance.py @@ -15,14 +15,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import unittest -from tests.utils import asyncio_patch - def test_appliance_list(http_controller, controller): - response = http_controller.get("/appliances") + response = http_controller.get("/appliances/templates") assert response.status == 200 - assert response.route == "/appliances" + assert response.route == "/appliances/templates" assert len(response.json) > 0