Kiran Kamineni | 09edd94 | 2018-05-10 13:50:33 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with SMS. |
Kiran Kamineni | 09edd94 | 2018-05-10 13:50:33 -0700 | [diff] [blame] | 3 | Library RequestsLibrary |
| 4 | Library UUID |
| 5 | |
| 6 | Resource global_properties.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | ${SMS_HEALTH_CHECK_PATH} /v1/sms/healthcheck |
| 10 | ${SMS_ENDPOINT} ${GLOBAL_SMS_SERVER_PROTOCOL}://${GLOBAL_SMS_SERVER_NAME}:${GLOBAL_SMS_SERVER_PORT} |
| 11 | |
| 12 | *** Keywords *** |
| 13 | Run SMS Health Check |
| 14 | [Documentation] Runs SMS Health check |
| 15 | ${resp}= Run SMS Get Request ${SMS_HEALTH_CHECK_PATH} |
| 16 | Should Be Equal As Strings ${resp.status_code} 200 |
| 17 | |
| 18 | Run SMS Get Request |
| 19 | [Documentation] Runs SMS Get request |
| 20 | [Arguments] ${data_path} |
| 21 | ${session}= Create Session smssession ${SMS_ENDPOINT} |
| 22 | ${resp}= Get Request smssession ${data_path} |
| 23 | Should Be Equal As Integers ${resp.status_code} 200 |
| 24 | Log Received response from SMS ${resp.text} |
| 25 | [Return] ${resp} |