From ec04dbe1831451759b1ce95db6936aa51b50e869 Mon Sep 17 00:00:00 2001 From: deswali07 Date: Wed, 30 Sep 2020 14:31:33 +0530 Subject: Enhanced SDC Healthcheck Issue-ID: SDC-3287 Change-Id: Ia12013fd56fdb3f4e4612e44add6deb8acaf027f Signed-off-by: deswali07 --- robot/resources/sdc_interface.robot | 12 ++++++++++++ robot/testsuites/health-check.robot | 5 +++++ 2 files changed, 17 insertions(+) (limited to 'robot') diff --git a/robot/resources/sdc_interface.robot b/robot/resources/sdc_interface.robot index c124be1f..b680faa5 100644 --- a/robot/resources/sdc_interface.robot +++ b/robot/resources/sdc_interface.robot @@ -19,6 +19,8 @@ Resource browser_setup.robot *** Variables *** ${SDC_DESIGNER_USER_ID} cs0008 ${SDC_HEALTH_CHECK_PATH} /sdc1/rest/healthCheck +${SDC_HEALTH_CHECK_PATH_ONBOARD} /onboarding-api/v1.0/healthcheck +${SDC_HEALTH_CHECK_PATH_BE} /sdc2/rest/healthCheck ${SDC_VENDOR_LICENSE_MODEL_PATH} /onboarding-api/v1.0/vendor-license-models ${SDC_VENDOR_SOFTWARE_PRODUCT_PATH} /onboarding-api/v1.0/vendor-software-products ${SDC_VENDOR_KEY_GROUP_PATH} /license-key-groups @@ -913,6 +915,16 @@ Run SDC Health Check \ ${SDC_DE_HEALTH} Set Variable If (('DE' in '${ELEMENT['healthCheckComponent']}') and ('${ELEMENT['healthCheckStatus']}' == 'UP')) or ('${SDC_DE_HEALTH}'=='UP') UP Log (DMaaP:${SDC_DE_HEALTH}) console=True +Run SDC BE ONBOARD Healthcheck + [Documentation] Runs a SDC BE ONBOARD health check + ${resp}= SDC.Run Get Request ${SDC_BE_ONBOARD_ENDPOINT} ${SDC_HEALTH_CHECK_PATH_ONBOARD} user=${None} + Should Be Equal As Strings ${resp.status_code} 200 + +Run SDC BE Healthcheck + [Documentation] Runs a SDC BE health check + ${resp}= SDC.Run Get Request ${SDC_BE_ENDPOINT} ${SDC_HEALTH_CHECK_PATH_BE} user=${None} auth=${GLOBAL_SDC_AUTHENTICATION} + Should Be Equal As Strings ${resp.status_code} 200 + Open SDC GUI [Documentation] Logs in to SDC GUI [Arguments] ${PATH} diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot index c80ed715..33984d32 100644 --- a/robot/testsuites/health-check.robot +++ b/robot/testsuites/health-check.robot @@ -193,6 +193,11 @@ Basic SDC Health Check [Tags] health core health-sdc Run SDC Health Check +Enhanced SDC Health Check + [Tags] health core health-sdc + Run SDC BE ONBOARD Healthcheck + Run SDC BE Healthcheck + Basic SDNC Health Check [Tags] health core health-sdnc Run SDNC Health Check -- cgit 1.2.3-korg