aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/urls.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-21 14:36:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-21 14:36:22 +0000
commit2cfa22a0d0aa86cee5d77707c2f06ef3c4434a14 (patch)
treef4add964b9404c889d10cad47af332642be7c0bd /functest/api/urls.py
parentf9fc2c1df0c6293df3f7c5e413a8aab643a4177a (diff)
parent26efacba9304071956d16a9a50a18e8f243518bb (diff)
Merge "Create API to run a test case"
Diffstat (limited to 'functest/api/urls.py')
-rw-r--r--functest/api/urls.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/functest/api/urls.py b/functest/api/urls.py
index ca45b4be..160a3c1d 100644
--- a/functest/api/urls.py
+++ b/functest/api/urls.py
@@ -39,6 +39,11 @@ URLPATTERNS = [
# => GET the info of one testcase
Url('/api/v1/functest/testcases/<testcase_name>', 'v1_testcase'),
+ # POST /api/v1/functest/testcases/action
+ # {"action":"run_test_case", "args": {"opts": {}, "testcase": "vping_ssh"}}
+ # => Run a testcase
+ Url('/api/v1/functest/testcases/action', 'v1_testcase'),
+
# GET /api/v1/functest/testcases => GET all tiers
Url('/api/v1/functest/tiers', 'v1_tiers'),
@@ -48,5 +53,10 @@ URLPATTERNS = [
# GET /api/v1/functest/tiers/<tier_name>/testcases
# => GET all testcases within given tier
- Url('/api/v1/functest/tiers/<tier_name>/testcases', 'v1_testcases_in_tier')
+ Url('/api/v1/functest/tiers/<tier_name>/testcases',
+ 'v1_testcases_in_tier'),
+
+ # GET /api/v1/functest/tasks/<task_id>
+ # => GET the result of the task id
+ Url('/api/v1/functest/tasks/<task_id>', 'v1_tasks')
]