blob: 53b67da6494059889cda6124ab1833c413a489fe [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
9${MSB_ENDPOINT} ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OPENO_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT}
10
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}