aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/router/url_mappings.py
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-04 12:42:16 +0300
committerStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-04 12:42:16 +0300
commitc05e2986e658d9892c9d65203a1e2a785c68bf27 (patch)
tree329e16bee025b4db9f9f43ad143b1aca776d7bd8 /opnfv_testapi/router/url_mappings.py
parent19724cbcef2508f97ddcc7fdef7e7bb44288634c (diff)
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 <mokats@intracom-telecom.com>
Diffstat (limited to 'opnfv_testapi/router/url_mappings.py')
-rw-r--r--opnfv_testapi/router/url_mappings.py13
1 files changed, 13 insertions, 0 deletions
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),