aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/dmaap/dr_interface.robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/dmaap/dr_interface.robot')
-rwxr-xr-xrobot/resources/dmaap/dr_interface.robot23
1 files changed, 23 insertions, 0 deletions
diff --git a/robot/resources/dmaap/dr_interface.robot b/robot/resources/dmaap/dr_interface.robot
new file mode 100755
index 00000000..b368ce94
--- /dev/null
+++ b/robot/resources/dmaap/dr_interface.robot
@@ -0,0 +1,23 @@
+*** Settings ***
+Documentation The main interface for interacting with Data-Router.
+Library RequestsLibrary
+
+Resource global_properties.robot
+
+*** Variables ***
+${DR_HEALTH_CHECK_PATH} /internal/fetchProv
+${DR_ENDPOINT} ${GLOBAL_DMAAP_DR_NODE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_DMAAP_DR_NODE_IP_ADDR}:${GLOBAL_DMAAP_DR_NODE_SERVER_PORT}
+
+
+*** Keywords ***
+Run DR Health Check
+ [Documentation] Runs DR Health check
+ ${resp}= Run DR Get Request ${DR_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 204
+
+Run DR Get Request
+ [Documentation] Runs DR Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session session ${DR_ENDPOINT}
+ ${resp}= Get Request session ${data_path}
+ [Return] ${resp}