summaryrefslogtreecommitdiffstats
path: root/api/resources/v2/openrcs.py
AgeCommit message (Collapse)AuthorFilesLines
2018-05-23Bugfix: openrc api dump should be safe_dumprexlee87761-5/+6
1. fix safe_dump 2. fix pep8 problem, use flask_restapi custom error handling [1] [1] https://flask-restful.readthedocs.io/en/latest/extending.html#custom-error-handlers JIRA: YARDSTICK-1165 RestApi openrc dump clouds.yaml error it now use yarml.dump, should be yaml.safe_dump. dump would gererate !!python/unicode and cause error when upload openrc file in gui Change-Id: Id3e85f7ba7d4967277ef79109b07d7552179e5db Signed-off-by: rexlee8776 <limingjiang@huawei.com> (cherry picked from commit f1a71b2889da3b49358b10b9a12ea5a512dd2743)
2017-07-24Bugfix: missing license in api directorychenjiankun1-0/+8
JIRA: YARDSTICK-759 In api directory, there are many files missing license header. We need to add it. Change-Id: Ia46cf207295007d4eb7fbf0d3319611f256c36bc Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-14Add API(v2) to delete openrcchenjiankun1-0/+21
JIRA: YARDSTICK-722 API: /api/v2/yardstick/environments/openrcs/<openrc_id> METHOD: DELETE Change-Id: Ia0989fe74681654750af80ddb935bb3e63485f43 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-14Add API(v2) to get openrc infochenjiankun1-1/+32
JIRA: YARDSTICK-721 API: /api/v2/yardstick/environments/openrcs/<openrc_id> METHOD: GET Change-Id: I57241381cf50fef0dc4eec3281c01ba106262a5a Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-14Add API(v2) to update openrcchenjiankun1-0/+41
JIRA: YARDSTICK-720 API: /api/v2/yardstick/environments/openrcs/action METHOD: POST PARAMS: { 'action': 'update_openrc', 'args': { 'openrc': { "EXTERNAL_NETWORK": "ext-net", "OS_AUTH_URL": "http://192.168.23.51: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" }, 'environment_id': environment_id } } Change-Id: Ie9a1614190a01456fd0896f0bdfd05f9d0724fc6 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-14Add API(v2) to upload openrcchenjiankun1-0/+118
JIRA: YARDSTICK-719 API: /api/v2/yardstick/environments/openrcs/action METHOD: POST PARAMS: { 'action': 'upload_openrc', 'args': { 'file': file, 'environment_id': environment_id } } Change-Id: If367904a2d0c2d4a192fdc87a8da21ac6549269e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>