aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/resources/rest
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2020-08-06 18:06:17 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2020-08-07 09:15:53 -0400
commitc0d20132b774b1fa43b4fb9b322e13b6d19d33ee (patch)
treed62987133ad74c1611d7fc86f8816c4182dabbd8 /main/src/test/resources/rest
parente32cb0265d6950c10a7512868846feeee95f9434 (diff)
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>
Diffstat (limited to 'main/src/test/resources/rest')
-rw-r--r--main/src/test/resources/rest/pdpGroup.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/test/resources/rest/pdpGroup.json b/main/src/test/resources/rest/pdpGroup.json
index 2a7b4edc..279d8079 100644
--- a/main/src/test/resources/rest/pdpGroup.json
+++ b/main/src/test/resources/rest/pdpGroup.json
@@ -25,6 +25,11 @@
"instanceId": "pdpAA_2",
"pdpState": "PASSIVE",
"healthy": "HEALTHY"
+ },
+ {
+ "instanceId": "pdpAA_3",
+ "pdpState": "PASSIVE",
+ "healthy": "HEALTHY"
}
],
"supportedPolicyTypes": [
@@ -42,6 +47,7 @@
},
{
"pdpType": "pdpTypeB",
+ "currentInstanceCount": 1,
"desiredInstanceCount": 1,
"pdpInstances": [
{
@@ -66,6 +72,7 @@
"pdpSubgroups": [
{
"pdpType": "pdpTypeA",
+ "currentInstanceCount": 2,
"desiredInstanceCount": 2,
"pdpInstances": [
{