Add API(v2) to update openrc 43/37443/2
authorchenjiankun <chenjiankun1@huawei.com>
Fri, 14 Jul 2017 01:01:19 +0000 (01:01 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Fri, 14 Jul 2017 04:22:03 +0000 (04:22 +0000)
commit0da3e8ad7c1374b3d0c25bd12b75b2e3b04688b0
tree1537def072f9fb5caa22b9e90c43d32bcd06b538
parent1a83219677fd0ce48f59e09f5a787d8296ba9261
Add API(v2)  to update openrc

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>
api/resources/v2/openrcs.py