econwar | d7400a1 | 2018-09-03 13:47:00 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with Data-Router. |
| 3 | Library RequestsLibrary |
| 4 | |
| 5 | Resource global_properties.robot |
| 6 | |
| 7 | *** Variables *** |
| 8 | ${DR_HEALTH_CHECK_PATH} /internal/fetchProv |
| 9 | ${DR_ENDPOINT} ${GLOBAL_DMAAP_DR_NODE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_DMAAP_DR_NODE_IP_ADDR}:${GLOBAL_DMAAP_DR_NODE_SERVER_PORT} |
| 10 | |
| 11 | |
| 12 | *** Keywords *** |
| 13 | Run DR Health Check |
| 14 | [Documentation] Runs DR Health check |
| 15 | ${resp}= Run DR Get Request ${DR_HEALTH_CHECK_PATH} |
| 16 | Should Be Equal As Strings ${resp.status_code} 204 |
| 17 | |
| 18 | Run DR Get Request |
| 19 | [Documentation] Runs DR Get request |
| 20 | [Arguments] ${data_path} |
| 21 | ${session}= Create Session session ${DR_ENDPOINT} |
| 22 | ${resp}= Get Request session ${data_path} |
econwar | d7400a1 | 2018-09-03 13:47:00 +0000 | [diff] [blame] | 23 | [Return] ${resp} |