Undeploy policies when subgroup is deleted 92/89292/3
authorJim Hahn <jrh3@att.com>
Tue, 4 Jun 2019 21:27:31 +0000 (17:27 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 4 Jun 2019 22:06:49 +0000 (18:06 -0400)
commit23b2730941fff26082de9e8a308e1a29758c96a5
tree5aefc3af87b59109d380d60e7290fb7fc773ea6a
parent6ece57498b8eccbe8e4b1d76f7116592b933f7c3
Undeploy policies when subgroup is deleted

When a subgroup is deleted via the PDP Group create/update API,
any PDPs in the subgroup should have all of its policies undeployed.
In the process, refactored addOrUpdateSubGroups() out of updateGroup().

Change-Id: I0750802bfb133a655e38493a868744b512ca3fb4
Issue-ID: POLICY-1803
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeployProvider.java
main/src/test/resources/simpleDeploy/createGroupsDelSub.json [new file with mode: 0644]