aboutsummaryrefslogtreecommitdiffstats
path: root/csit/pap
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-31 17:11:06 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-31 17:11:13 -0400
commitdc2d473581b2837aec02d017f1a8dcc5d4d06ecd (patch)
tree250e4981b96a8070846117b5ce53be25137e9dbf /csit/pap
parentd7c35a17e190476bc05bcfd3374c2e38cecd48ed (diff)
Add CSIT test for consolidated healthcheck
Adding CSIT test for consolidated healthcheck. Also, verifying the an external groups file can be mounted to replace PapDb.json present inside the docker image for database initialization. Issue-ID: POLICY-3609 Change-Id: Icf2585d9d9df7e820fbddfbd1fe044b5a9e29cb3 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'csit/pap')
-rw-r--r--csit/pap/tests/pap-test.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/csit/pap/tests/pap-test.robot b/csit/pap/tests/pap-test.robot
index a5959141..b666eb50 100644
--- a/csit/pap/tests/pap-test.robot
+++ b/csit/pap/tests/pap-test.robot
@@ -16,6 +16,11 @@ Healthcheck
${resp}= PerformGetRequest ${POLICY_PAP_IP} /policy/pap/v1/healthcheck 200 null
Should Be Equal As Strings ${resp.json()['code']} 200
+Consolidated Healthcheck
+ [Documentation] Verify policy consolidated health check
+ ${resp}= PerformGetRequest ${POLICY_PAP_IP} /policy/pap/v1/components/healthcheck 200 null
+ Should Be Equal As Strings ${resp.json()['healthy']} True
+
Metrics
[Documentation] Verify policy pap is exporting prometheus metrics
${resp}= PerformGetRequest ${POLICY_PAP_IP} /metrics 200 null