Merge "Added CPS enhanced health check"
authoraditya puthuparambil <aditya.puthuparambil@bell.ca>
Thu, 27 Jan 2022 14:03:06 +0000 (14:03 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 27 Jan 2022 14:03:06 +0000 (14:03 +0000)
csit/tests/actuator/actuator.robot

index 2ee575e..80617a3 100644 (file)
@@ -29,11 +29,9 @@ Suite Setup           Create Session    MANAGEMENT_URL    http://${CPS_CORE_HOST
 
 
 *** Test Cases ***
-Test Liveness Probe Endpoint
-    ${response}=      GET On Session    MANAGEMENT_URL     health/liveness     expected_status=200
-    Should Be Equal As Strings          ${response.json()['status']}      UP
-
-Test Readiness Probe Endpoint
-    ${response}=      GET On Session    MANAGEMENT_URL     health/readiness    expected_status=200
-    Should Be Equal As Strings          ${response.json()['status']}      UP
-
+Test CPS Enhanced Healthcheck
+    [Documentation]     Runs CPS Health Check. It will check for overall status update of CPS component like, Database and diskspace status along with liveliness and readiness check
+    ${response}=      GET On Session    MANAGEMENT_URL     health    expected_status=200
+    ${resp_body}=      Convert to string     ${response.text}
+    Should Contain      ${resp_body}     UP
+    Should Not Contain      ${resp_body}     DOWN