aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/urls.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-18 07:08:12 +0000
committerLinda Wang <wangwulin@huawei.com>2017-08-18 20:30:01 +0000
commit6407e77988ea97b995b095af225660cd38c5b590 (patch)
tree52c568c0f74e245f47dd3c38f6c9ae4539b6ecc2 /functest/api/urls.py
parentacb8d8cee379a5c6c40845c7414541095627e71b (diff)
Create API to update openrc
API: /api/v1/functest/openstack/action METHOD: POST PARAMS: { "action": "update_openrc", "args": { "openrc": { "OS_AUTH_URL": "http://192.168.30.222:5000/v3", "OS_IDENTITY_API_VERSION": "3", "OS_IMAGE_API_VERSION": "2", "OS_PASSWORD": "console", "OS_PROJECT_DOMAIN_NAME": "default", "OS_PROJECT_NAME": "admin", "OS_TENANT_NAME": "admin", "OS_USERNAME": "admin", "OS_USER_DOMAIN_NAME": "default" } } } JIRA: FUNCTEST-855 Change-Id: I7c935483c264f2b1b47239684392c8a37dc23d26 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/api/urls.py')
-rw-r--r--functest/api/urls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/api/urls.py b/functest/api/urls.py
index ca45b4beb..40af98d61 100644
--- a/functest/api/urls.py
+++ b/functest/api/urls.py
@@ -32,6 +32,10 @@ URLPATTERNS = [
# 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'),