From dc2d473581b2837aec02d017f1a8dcc5d4d06ecd Mon Sep 17 00:00:00 2001 From: Ram Krishna Verma Date: Tue, 31 Aug 2021 17:11:06 -0400 Subject: 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 --- csit/pap/tests/pap-test.robot | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'csit/pap/tests/pap-test.robot') 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 -- cgit 1.2.3-korg