blob: 81d728f84b51e7752ee712b3297f9943b32e0cff [file] [log] [blame]
Kiran Kamineni09edd942018-05-10 13:50:33 -07001*** Settings ***
2Documentation The main interface for interacting with SMS.
Kiran Kamineni09edd942018-05-10 13:50:33 -07003Library RequestsLibrary
4Library UUID
5
6Resource 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 ***
13Run 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
18Run 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}