blob: 81224efe19574ff94aab965df33272b30a6de435 [file] [log] [blame]
Gary Wu26dd72a2017-10-17 12:27:22 -07001*** Settings ***
2Documentation The main interface for interacting with Microservice Bus.
3Library RequestsLibrary
4
5Resource global_properties.robot
6
7*** Variables ***
8${MSB_HEALTH_CHECK_PATH} /iui/microservices/default.html
Gary Wu4d80cb72018-08-06 13:51:02 -07009${MSB_ENDPOINT} ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MSB_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT}
Gary Wu26dd72a2017-10-17 12:27:22 -070010
11
12*** Keywords ***
13Run MSB Health Check
14 [Documentation] Runs MSB Health check
15 ${resp}= Run MSB Get Request ${MSB_HEALTH_CHECK_PATH}
16 Should Be Equal As Integers ${resp.status_code} 200
17
18Run MSB Get Request
19 [Documentation] Runs MSB Get request
20 [Arguments] ${data_path}
21 ${session}= Create Session msb ${MSB_ENDPOINT}
22 ${resp}= Get Request msb ${data_path}
Gary Wu3a9cc242017-10-18 12:30:02 -070023 Should Be Equal As Integers ${resp.status_code} 200
Gary Wu26dd72a2017-10-17 12:27:22 -070024 Log Received response from MSB ${resp.text}
25 [Return] ${resp}