Gary Wu | 26dd72a | 2017-10-17 12:27:22 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with Microservice Bus. |
| 3 | Library RequestsLibrary |
| 4 | |
| 5 | Resource global_properties.robot |
| 6 | |
| 7 | *** Variables *** |
| 8 | ${MSB_HEALTH_CHECK_PATH} /iui/microservices/default.html |
Gary Wu | 4d80cb7 | 2018-08-06 13:51:02 -0700 | [diff] [blame] | 9 | ${MSB_ENDPOINT} ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MSB_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT} |
Gary Wu | 26dd72a | 2017-10-17 12:27:22 -0700 | [diff] [blame] | 10 | |
| 11 | |
| 12 | *** Keywords *** |
| 13 | Run 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 | |
| 18 | Run 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 Wu | 3a9cc24 | 2017-10-18 12:30:02 -0700 | [diff] [blame] | 23 | Should Be Equal As Integers ${resp.status_code} 200 |
Gary Wu | 26dd72a | 2017-10-17 12:27:22 -0700 | [diff] [blame] | 24 | Log Received response from MSB ${resp.text} |
| 25 | [Return] ${resp} |