X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Fapi%2Furls.py;h=0cc22f80f13b88ffa2658e19bb2a2e55f5a86025;hb=63cd8a0bdb80c5d2c885e5205612dcd4bb956981;hp=ca45b4beb581afe621d7be640bfddff1f5f5899b;hpb=f9fc2c1df0c6293df3f7c5e413a8aab643a4177a;p=functest.git diff --git a/functest/api/urls.py b/functest/api/urls.py index ca45b4beb..0cc22f80f 100644 --- a/functest/api/urls.py +++ b/functest/api/urls.py @@ -25,13 +25,18 @@ URLPATTERNS = [ # GET /api/v1/functest/envs => GET environment Url('/api/v1/functest/envs', 'v1_envs'), - # POST /api/v1/functest/envs/action , {"action":"prepare"} - # => Prepare environment + # POST /api/v1/functest/envs/action + # {"action":"prepare"} => Prepare environment + # {"action":"update_hosts", "args": {}} => Update hosts info Url('/api/v1/functest/envs/action', 'v1_envs'), # GET /api/v1/functest/openstack/credentials => GET credentials Url('/api/v1/functest/openstack/credentials', 'v1_creds'), + # POST /api/v1/functest/openstack/action + # {"action":"update_openrc", "args": {"openrc": {}}} => Update openrc + Url('/api/v1/functest/openstack/action', 'v1_creds'), + # GET /api/v1/functest/testcases => GET all testcases Url('/api/v1/functest/testcases', 'v1_test_cases'), @@ -39,6 +44,11 @@ URLPATTERNS = [ # => GET the info of one testcase Url('/api/v1/functest/testcases/', '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 +58,14 @@ URLPATTERNS = [ # GET /api/v1/functest/tiers//testcases # => GET all testcases within given tier - Url('/api/v1/functest/tiers//testcases', 'v1_testcases_in_tier') + Url('/api/v1/functest/tiers//testcases', + 'v1_testcases_in_tier'), + + # GET /api/v1/functest/tasks/ + # => GET the result of the task id + Url('/api/v1/functest/tasks/', 'v1_task'), + + # GET /api/v1/functest/tasks//log + # => GET the log of the task + Url('/api/v1/functest/tasks//log', 'v1_task_log') ]