Undeploy policies when deploy fails 89/98689/4
authorJim Hahn <jrh3@att.com>
Wed, 20 Nov 2019 18:48:16 +0000 (13:48 -0500)
committerJim Hahn <jrh3@att.com>
Wed, 20 Nov 2019 23:49:59 +0000 (23:49 +0000)
commitc9c5db71b36204cabbbb34e7caba625197968b8f
tree603233bbd5fa9e77a4cce706d0b4b604d3a9a6b9
parent892ee586c85c7fc4cdd12d7f42a70a12f7006d77
Undeploy policies when deploy fails

Modified the code so that if a PDP fails to deploy one or more policies
specified in a PDP-UPDATE message, PAP will undeploy those policies that
failed to deploy to the PDP.  This entails removing the policies from
the Pdp Group(s), issuing new PDP-UPDATE requests, and updating the
notification tracking data.

Issue-ID: POLICY-2155
Change-Id: I1740282385b0fa804254ebdf57537ef0f3a7a4c8
Signed-off-by: Jim Hahn <jrh3@att.com>
14 files changed:
main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpRequests.java
main/src/main/java/org/onap/policy/pap/main/comm/PolicyUndeployer.java [new file with mode: 0644]
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/Request.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/UpdateReq.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PolicyUndeployerImpl.java [new file with mode: 0644]
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpRequestsTest.java
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/UpdateReqTest.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPolicyUndeployerImpl.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/rest/e2e/PdpGroupStateChangeTest.java