diff options
Diffstat (limited to 'robot/resources')
-rw-r--r-- | robot/resources/sms_interface.robot | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/robot/resources/sms_interface.robot b/robot/resources/sms_interface.robot new file mode 100644 index 00000000..dd2cabeb --- /dev/null +++ b/robot/resources/sms_interface.robot @@ -0,0 +1,26 @@ +*** Settings *** +Documentation The main interface for interacting with SMS. +Library RequestsClientCert +Library RequestsLibrary +Library UUID + +Resource global_properties.robot + +*** Variables *** +${SMS_HEALTH_CHECK_PATH} /v1/sms/healthcheck +${SMS_ENDPOINT} ${GLOBAL_SMS_SERVER_PROTOCOL}://${GLOBAL_SMS_SERVER_NAME}:${GLOBAL_SMS_SERVER_PORT} + +*** Keywords *** +Run SMS Health Check + [Documentation] Runs SMS Health check + ${resp}= Run SMS Get Request ${SMS_HEALTH_CHECK_PATH} + Should Be Equal As Strings ${resp.status_code} 200 + +Run SMS Get Request + [Documentation] Runs SMS Get request + [Arguments] ${data_path} + ${session}= Create Session smssession ${SMS_ENDPOINT} + ${resp}= Get Request smssession ${data_path} + Should Be Equal As Integers ${resp.status_code} 200 + Log Received response from SMS ${resp.text} + [Return] ${resp}
\ No newline at end of file |