diff options
author | Daniel Rose <dr695h@att.com> | 2018-09-04 14:22:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-04 14:22:10 +0000 |
commit | 5b4c864a373cd4636bcff2fbe86a7eed81a24059 (patch) | |
tree | a18c0b0bea7e9f592d74c1f9a78a9b8099a42821 | |
parent | 7f02ef3df71c330a7efa67388764a1d3ed11f451 (diff) | |
parent | d7400a150b94cd7a1ded43f8ce63130fa168d827 (diff) |
Merge "Add healthcheck for Data-Router"
-rw-r--r-- | robot/resources/dr_interface.robot | 24 | ||||
-rw-r--r-- | robot/testsuites/health-check.robot | 5 |
2 files changed, 29 insertions, 0 deletions
diff --git a/robot/resources/dr_interface.robot b/robot/resources/dr_interface.robot new file mode 100644 index 00000000..ff57435e --- /dev/null +++ b/robot/resources/dr_interface.robot @@ -0,0 +1,24 @@ +*** 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} + Log Received response from data router ${resp.text} + [Return] ${resp} diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot index 5049489d..373fbeeb 100644 --- a/robot/testsuites/health-check.robot +++ b/robot/testsuites/health-check.robot @@ -25,6 +25,7 @@ Resource ../resources/vnfsdk_interface.robot Resource ../resources/log_interface.robot Resource ../resources/oof_interface.robot Resource ../resources/sms_interface.robot +Resource ../resources/dr_interface.robot *** Test Cases *** @@ -56,6 +57,10 @@ Basic DCAE Health Check [Tags] health dcae Run DCAE Health Check +Basic DMAAP Data Router Health Check + [Tags] health core + Run DR Health Check + Basic DMAAP Message Router Health Check [Tags] health core Run MR Health Check |