Use group from cache even with new policy type 00/87400/1
authorJim Hahn <jrh3@att.com>
Thu, 9 May 2019 19:43:53 +0000 (15:43 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 9 May 2019 21:01:10 +0000 (17:01 -0400)
commit2de7e5642b9a61566e7e6ad52ccdcb5798f0924f
tree7407f26af5fd2dceec5a5a226ef1c196cbef3f71
parent54cc5c118de45023692c72388b6389d184a658f7
Use group from cache even with new policy type

When multiple policies are deployed to the same group in a single
request, and the policies have different policy types, only the
changes associated with the last policy are kept.  Updated the
policy type lookup to use cached groups, when available.
This still needs a junit to verify the fix, but that can come
later.
Also added more logging.

Change-Id: Ieaf866da504b167c884bf53f88aa8cb9e9b5e32a
Issue-ID: POLICY-1761
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java