blob: 10cba192983cfe306a8abb5fdd0d0c8184a25891 [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
Kiran Kamineni09edd942018-05-10 13:50:33 -07004Resource global_properties.robot
5
6*** Variables ***
7${SMS_HEALTH_CHECK_PATH} /v1/sms/healthcheck
8${SMS_ENDPOINT} ${GLOBAL_SMS_SERVER_PROTOCOL}://${GLOBAL_SMS_SERVER_NAME}:${GLOBAL_SMS_SERVER_PORT}
9
10*** Keywords ***
11Run SMS Health Check
12 [Documentation] Runs SMS Health check
13 ${resp}= Run SMS Get Request ${SMS_HEALTH_CHECK_PATH}
14 Should Be Equal As Strings ${resp.status_code} 200
15
16Run SMS Get Request
17 [Documentation] Runs SMS Get request
18 [Arguments] ${data_path}
19 ${session}= Create Session smssession ${SMS_ENDPOINT}
20 ${resp}= Get Request smssession ${data_path}
21 Should Be Equal As Integers ${resp.status_code} 200
22 Log Received response from SMS ${resp.text}
23 [Return] ${resp}