From c05e2986e658d9892c9d65203a1e2a785c68bf27 Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Thu, 4 Oct 2018 12:42:16 +0300 Subject: Revive unit tests and flake8 of webportal JIRA: DOVETAIL-742 This patch revives unit test and flake8 tests of webportal. In addition, it fixes errors and enables handling of some uris which were forgotten. Change-Id: I8225c7ca08a3c97b6e77f00490defc91046a2dd6 Signed-off-by: Stamatis Katsaounis --- opnfv_testapi/router/url_mappings.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'opnfv_testapi/router') diff --git a/opnfv_testapi/router/url_mappings.py b/opnfv_testapi/router/url_mappings.py index e1d4c18..55f1c0e 100644 --- a/opnfv_testapi/router/url_mappings.py +++ b/opnfv_testapi/router/url_mappings.py @@ -11,13 +11,18 @@ from opnfv_testapi.resources import handlers from opnfv_testapi.resources import result_handlers from opnfv_testapi.resources import test_handlers from opnfv_testapi.resources import application_handlers +from opnfv_testapi.resources import pod_handlers +from opnfv_testapi.resources import project_handlers +from opnfv_testapi.resources import scenario_handlers from opnfv_testapi.resources import sut_handlers +from opnfv_testapi.resources import testcase_handlers from opnfv_testapi.ui.auth import sign from opnfv_testapi.ui.auth import user mappings = [ (r"/versions", handlers.VersionHandler), + (r"/api/v1/results", result_handlers.ResultsCLHandler), (r"/api/v1/results/upload", result_handlers.ResultsUploadHandler), (r"/api/v1/results/([^/]+)", result_handlers.ResultsGURHandler), @@ -34,6 +39,14 @@ mappings = [ (r"/api/v1/suts/hardware/([^/]+)", sut_handlers.HardwareHandler), + (r"/api/v1/pods", pod_handlers.PodCLHandler), + (r"/api/v1/pods/([^/]+)", pod_handlers.PodGURHandler), + (r"/api/v1/scenarios", scenario_handlers.ScenarioCLHandler), + (r"/api/v1/scenarios/([^/]+)", scenario_handlers.ScenarioGURHandler), + (r"/api/v1/projects", project_handlers.ProjectCLHandler), + (r"/api/v1/projects/([^/]+)", project_handlers.ProjectGURHandler), + (r"/api/v1/projects/([^/]+)/cases", testcase_handlers.TestcaseCLHandler), + (r"/api/v1/projects/([^/]+)/cases/([^/]+)", testcase_handlers.TestcaseGURHandler), (r'/api/v1/auth/signin', sign.SigninHandler), (r'/api/v1/auth/signin_return', sign.SigninReturnHandler), -- cgit 1.2.3-korg