blob: b368ce945dfe4cc476978ee8309872612345cbd4 [file] [log] [blame]
econward7400a12018-09-03 13:47:00 +00001*** Settings ***
2Documentation The main interface for interacting with Data-Router.
3Library RequestsLibrary
4
5Resource 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 ***
13Run 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
18Run 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}
econward7400a12018-09-03 13:47:00 +000023 [Return] ${resp}