diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-01-11 06:33:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-11 06:33:28 +0000 |
commit | 6d2bc81b4087330ddd6c76d1bdf2e73836fbde68 (patch) | |
tree | 6411cbb66523b71fd1f661cb4a682bd4458bbf0a /utils/test/testapi/opnfv_testapi/router/url_mappings.py | |
parent | 4a32a0adddc5fc9ab06202b2f191f1b82f6be805 (diff) | |
parent | 3064b88ccd222c18352ac8be042d98904ca3828c (diff) |
Merge "add scenario models and framework"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/router/url_mappings.py')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/router/url_mappings.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/router/url_mappings.py b/utils/test/testapi/opnfv_testapi/router/url_mappings.py index eb648ecbb..0ae3c31c3 100644 --- a/utils/test/testapi/opnfv_testapi/router/url_mappings.py +++ b/utils/test/testapi/opnfv_testapi/router/url_mappings.py @@ -14,7 +14,8 @@ from opnfv_testapi.resources.project_handlers import ProjectCLHandler, \ ProjectGURHandler from opnfv_testapi.resources.result_handlers import ResultsCLHandler, \ ResultsGURHandler - +from opnfv_testapi.resources.scenario_handlers import ScenariosCLHandler +from opnfv_testapi.resources.scenario_handlers import ScenarioGURHandler mappings = [ # GET /versions => GET API version @@ -45,4 +46,8 @@ mappings = [ # (project, case, and pod) (r"/api/v1/results", ResultsCLHandler), (r"/api/v1/results/([^/]+)", ResultsGURHandler), + + # scenarios + (r"/api/v1/scenarios", ScenariosCLHandler), + (r"/api/v1/scenarios/([^/]+)", ScenarioGURHandler), ] |