diff options
author | efiacor <fiachra.corcoran@est.tech> | 2022-12-21 08:56:10 +0000 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-01-31 16:25:13 +0000 |
commit | 723a2af2407651d5176984321a462bfd8ede2c11 (patch) | |
tree | dec50cc42bf1c3ebe7ee7f6e4ceaadeb17c5f303 /robot/resources/dmaap/dr_interface.robot | |
parent | 99507033a51c4dfbabc6372c29f43300947be5d6 (diff) |
[DMAAP] Fix dmaap interface endpoints
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I6ed81e4eebdeb4825926a3552b5dec2cd50129f2
Issue-ID: DMAAP-1573
Diffstat (limited to 'robot/resources/dmaap/dr_interface.robot')
-rwxr-xr-x | robot/resources/dmaap/dr_interface.robot | 23 |
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} |