diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-10-24 19:24:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-24 19:24:27 +0000 |
commit | c09d468ab783c52ca1e96a47cc0eb2418f587734 (patch) | |
tree | 98b77fbf700b06fe06cee10d89665f3f0154ee8a /robot/resources/so_interface.robot | |
parent | 21ea570970282f4f4b9dc3663a9a081657df9c63 (diff) | |
parent | adaa2374a3bbfc972605f33238f0ebd14b946f42 (diff) |
Merge "Updates for cloud_config, SDC health, VID timing"
Diffstat (limited to 'robot/resources/so_interface.robot')
-rw-r--r-- | robot/resources/so_interface.robot | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/robot/resources/so_interface.robot b/robot/resources/so_interface.robot index 23ab9415..0378caff 100644 --- a/robot/resources/so_interface.robot +++ b/robot/resources/so_interface.robot @@ -113,6 +113,30 @@ Run MSO Post request Log Received response from mso ${resp.text} [Return] ${resp} +Run SO Catalog Post request + [Documentation] Runs an SO post request + [Arguments] ${data_path} ${data} ${so_port}= + ${auth}= Create List ${GLOBAL_MSO_CATDB_USERNAME} ${GLOBAL_MSO_PASSWORD} + Log Creating session ${SO_CATDB_ENDPOINT} + ${session}= Create Session so_catdb ${SO_CATDB_ENDPOINT} auth=${auth} + ${uuid}= Generate UUID + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} + ${resp}= Post Request so_catdb ${data_path} data=${data} headers=${headers} + Log Received response from so_catdb ${resp.text} + [Return] ${resp} + +Run SO Catalog Put request + [Documentation] Runs an SO put request + [Arguments] ${data_path} ${data} ${so_port}= + ${auth}= Create List ${GLOBAL_MSO_CATDB_USERNAME} ${GLOBAL_MSO_PASSWORD} + Log Creating session ${SO_CATDB_ENDPOINT} + ${session}= Create Session so_catdb ${SO_CATDB_ENDPOINT} auth=${auth} + ${uuid}= Generate UUID + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} + ${resp}= Put Request so_catdb ${data_path} data=${data} headers=${headers} + Log Received response from so_catdb ${resp.text} + [Return] ${resp} + Run MSO Delete request [Documentation] Runs an MSO Delete request [Arguments] ${data_path} ${data} |