aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14Merge "Allow reading log file with byte offset"Cedric Ollivier1-1/+5
2017-09-13Allow reading log file with byte offsetLinda Wang1-1/+5
Change-Id: I8cd6acef66d798fa43e20ca9d885dcbaa99a5b42 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-09-13Disable urllib3 warningsLinda Wang1-0/+1
1. When running in compass OSA, lots of SubjectAltNameWarnings are shown in console, so just disable the warnings here. See https://github.com/shazow/urllib3/issues/497 for details 2. Redirect warnings issued by the warnings module to the logging system via logging.captureWarnings(True) 3. But urllib3 warning is still there for two cmds about rally/tempest. Change-Id: Ic22cf8e2babc10c9d55a7ed46b841312a4e430a7 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-09-12Fix some errors about getting tiers resourcesLinda Wang1-6/+8
Change-Id: I95cf1cb453e30875498d4dfbbe15f19452c48df1 Signed-off-by: Linda Wang <wangwulin@huawei.com>
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 Richomme4-5/+68
2017-08-25Create API to update hosts infoLinda Wang2-3/+43
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 Wang4-5/+68
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 Wang2-0/+42
2017-08-21Create API to run a test caseLinda Wang14-36/+353
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 Wang5-26/+54
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 Wang13-0/+478
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>