Gary Wu | ba8f94d | 2017-10-23 09:51:13 -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 | ${CLAMP_HEALTH_CHECK_PATH} /restservices/clds/v1/clds/healthcheck |
| 9 | ${CLAMP_ENDPOINT} ${GLOBAL_CLAMP_SERVER_PROTOCOL}://${GLOBAL_INJECTED_CLAMP_IP_ADDR}:${GLOBAL_CLAMP_SERVER_PORT} |
| 10 | |
| 11 | |
| 12 | *** Keywords *** |
| 13 | Run CLAMP Health Check |
| 14 | [Documentation] Runs CLAMP Health check |
| 15 | ${resp}= Run CLAMP Get Request ${CLAMP_HEALTH_CHECK_PATH} |
| 16 | Should Be Equal As Integers ${resp.status_code} 200 |
| 17 | |
| 18 | Run CLAMP Get Request |
| 19 | [Documentation] Runs CLAMP Get request |
| 20 | [Arguments] ${data_path} |
| 21 | ${session}= Create Session session ${CLAMP_ENDPOINT} |
| 22 | ${resp}= Get Request session ${data_path} |
| 23 | Should Be Equal As Integers ${resp.status_code} 200 |
| 24 | Log Received response from CLAMP ${resp.text} |
| 25 | [Return] ${resp} |