"/appliances" => "/appliances/templates"

This commit is contained in:
Julien Duponchelle 2017-02-08 14:51:00 +01:00
parent dc6756d5ae
commit 8d86d959de
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 3 additions and 6 deletions

View File

@ -26,7 +26,7 @@ class ApplianceHandler:
"""API entry points for appliance management.""" """API entry points for appliance management."""
@Route.get( @Route.get(
r"/appliances", r"/appliances/templates",
description="List of appliance", description="List of appliance",
status_codes={ status_codes={
200: "Appliance list returned" 200: "Appliance list returned"

View File

@ -15,14 +15,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest
from tests.utils import asyncio_patch
def test_appliance_list(http_controller, controller): def test_appliance_list(http_controller, controller):
response = http_controller.get("/appliances") response = http_controller.get("/appliances/templates")
assert response.status == 200 assert response.status == 200
assert response.route == "/appliances" assert response.route == "/appliances/templates"
assert len(response.json) > 0 assert len(response.json) > 0