Fail component health check if PDP is down 12/111012/2
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Thu, 6 Aug 2020 22:06:17 +0000 (18:06 -0400)
committerRam Krishna Verma <ram_krishna.verma@bell.ca>
Fri, 7 Aug 2020 13:15:53 +0000 (09:15 -0400)
commitc0d20132b774b1fa43b4fb9b322e13b6d19d33ee
treed62987133ad74c1611d7fc86f8816c4182dabbd8
parente32cb0265d6950c10a7512868846feeee95f9434
Fail component health check if PDP is down

Changing the policy component health check to fail if the required
PDP instances are down or not registered with PAP.
The check is performed by comparing the "currentInstanceCount"
& "desiredInstanceCount" fields of PdpSubGroup.

Issue-ID: POLICY-2718
Change-Id: Iad1075d0812f4ef166dfed4f110eff4d9e5f995e
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
main/src/main/java/org/onap/policy/pap/main/rest/PolicyComponentsHealthCheckProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupHealthCheckProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/TestPolicyComponentsHealthCheckProvider.java
main/src/test/resources/rest/pdpGroup.json