Merge "Put vnf_test pass if more than 80% of vnf test result are OK"
[functest.git] / functest / api / urls.py
index 160a3c1..0cc22f8 100644 (file)
@@ -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'),
 
@@ -58,5 +63,9 @@ URLPATTERNS = [
 
     # GET /api/v1/functest/tasks/<task_id>
     # => GET the result of the task id
-    Url('/api/v1/functest/tasks/<task_id>', 'v1_tasks')
+    Url('/api/v1/functest/tasks/<task_id>', 'v1_task'),
+
+    # GET /api/v1/functest/tasks/<task_id>/log
+    # => GET the log of the task
+    Url('/api/v1/functest/tasks/<task_id>/log', 'v1_task_log')
 ]