diff options
author | Brian Freeman <bf1936@att.com> | 2018-10-24 12:25:22 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2018-10-24 12:28:33 -0500 |
commit | adaa2374a3bbfc972605f33238f0ebd14b946f42 (patch) | |
tree | 8d738ded1eba0c9bd03964434a7b6f69e94a5a1f /robot/resources/so_interface.robot | |
parent | 5aeb30ad203bd5ec2445fb446d040c7d81611dbc (diff) |
Updates for cloud_config, SDC health, VID timing
Based on contribution from Steve Smokowski
Issue-ID: INT-621
Change-Id: I82828397bc0b9701fb0fa90123ac4cdd3b8d327d
Signed-off-by: Brian Freeman <bf1936@att.com>
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} |