aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/resources
AgeCommit message (Collapse)AuthorFilesLines
2017-09-07Unify the key as testcase in resultLinda Wang1-3/+3
Change-Id: I4933b013349e64a6e018938db99ecdf6d9c723da Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-09-05unify all the return status as numberLinda Wang3-10/+31
Change-Id: I835a368fe78329e60e811e40c24f3609c7a8960c Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-28Launch Functest RestApi once the container is runLinda Wang1-4/+5
And fix the handling about env prepare exception. Change-Id: I3e590e63157182c442602367a244d7ff647f8b7d Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-25Merge "Create API to get log for each task"Morgan Richomme2-4/+58
2017-08-25Create API to update hosts infoLinda Wang1-1/+40
API: /api/v1/functest/envs/action METHOD: POST PARAMS: { "action": "update_hosts", "args": { "identity.ac.dz.com": "8.20.11.22", "image.ac.dz.com": "8.20.11.22" } } JIRA: FUNCTEST-856 Change-Id: Ifaf064110ade6e39189dd14b38c921d9e1c3568d Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-25Create API to get log for each taskLinda Wang2-4/+58
API: /api/v1/functest/tasks/<task_id>/log METHOD: GET JIRA: FUNCTEST-867 Change-Id: I987cbf662e4da349bf7583e48da5d981a2f1e0fd Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-21Merge "Create API to update openrc"Linda Wang1-0/+38
2017-08-21Create API to run a test caseLinda Wang3-2/+133
Two APIs are created here: 1. Run a test case 2. Get the result of the task id JIRA: FUNCTEST-853 Change-Id: I12950933b143b82fb6aeb186ea1b35ddd16e6097 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-18Create API to update openrcLinda Wang1-0/+38
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>
2017-08-17API proposal for functestLinda Wang6-0/+178
1. Propose a basic framework for API 2. And these functions have been realized: 1) Show environment 2) Prepare Environment 3) Show credentials 4) List all testcases 5) Show a testcase 6) List all tiers 7) Show a tier 8) List all testcases within given tier JIRA: FUNCTEST-843 Change-Id: Ib961446708077b56465eda0052f6d38806b62594 Signed-off-by: Linda Wang <wangwulin@huawei.com>