diff options
author | Jim Hahn <jrh3@att.com> | 2021-01-11 10:53:54 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-01-15 13:26:05 -0500 |
commit | 4e5bcfe2a7aeccebcea55c0146a38a931567ea75 (patch) | |
tree | 4da761b41ad14ac85424c4c5e660f36dde1c5f9d /main/src/test/resources/e2e/policyStatus.json | |
parent | 53cf24fc816b3b5702b403c3cd719cd3752936b5 (diff) |
Make PAP stateless
Removed old code that tracked the status using a cache. Modified the
code to use the status found in the DB instead.
Issue-ID: POLICY-2648
Change-Id: I4f1f5201eff7b3352631f50d67c40349ac7f2014
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/resources/e2e/policyStatus.json')
-rw-r--r-- | main/src/test/resources/e2e/policyStatus.json | 65 |
1 files changed, 14 insertions, 51 deletions
diff --git a/main/src/test/resources/e2e/policyStatus.json b/main/src/test/resources/e2e/policyStatus.json index 973e2c0e..185f332c 100644 --- a/main/src/test/resources/e2e/policyStatus.json +++ b/main/src/test/resources/e2e/policyStatus.json @@ -1,56 +1,19 @@ { - "groups": [ + "records": [ { - "name": "policyStatus", - "pdpGroupState": "ACTIVE", - "pdpSubgroups": [ - { - "pdpType": "pdpTypeA", - "desiredInstanceCount": 2, - "pdpInstances": [ - { - "instanceId": "pdpA_1", - "pdpState": "ACTIVE", - "healthy": "HEALTHY" - }, - { - "instanceId": "pdpA_2", - "pdpState": "ACTIVE", - "healthy": "HEALTHY" - } - ], - "supportedPolicyTypes": [ - { - "name": "onap.policies.monitoring.cdap.tca.hi.lo.app", - "version": "1.0.0" - } - ], - "policies": [] - }, - { - "pdpType": "pdpTypeB", - "desiredInstanceCount": 1, - "pdpInstances": [ - { - "instanceId": "pdpB_1", - "pdpState": "ACTIVE", - "healthy": "HEALTHY" - } - ], - "supportedPolicyTypes": [ - { - "name": "onap.policies.monitoring.cdap.tca.hi.lo.app", - "version": "1.0.0" - } - ], - "policies": [ - { - "name": "onap.restart.tca", - "version": "1.0.0" - } - ] - } - ] + "pdpGroup": "policyStatus", + "pdpType": "pdpTypeB", + "pdpId": "pdpB_1", + "policy": { + "name": "onap.restart.tca", + "version": "1.0.0" + }, + "policyType": { + "name": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "version": "1.0.0" + }, + "deploy": true, + "state": "WAITING" } ] } |