Remove PDP from all active groups 71/84971/2
authorJim Hahn <jrh3@att.com>
Wed, 10 Apr 2019 12:48:10 +0000 (08:48 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 11 Apr 2019 00:39:23 +0000 (20:39 -0400)
commitc1df0a9b44dacc6defe1df5f1a2f72ac5c6ec433
treeea440c3cd8dd9f70ff361ec813055e61d96abc7d
parente9df7cf30026787a3cbbae81b4442234609423cd
Remove PDP from all active groups

The code to disable a PDP used the group name, extracted from a
prior PdpUpdate request, to identify the group from which the PDP
should be removed.  This is not sufficient, as the requests tracker
may have never seen an update request.  Therefore, the code was
modified to simply remove the PDP from all active groups.  Also
made removeFromGroups(pdpName) public so that it can be used by
other PAP code.

Change-Id: Iedec88cb23e586944563dcc5ac82ff3b9f122f8c
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
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/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpRequestsTest.java