Return 200 when policy successfully undeployed 64/87464/2
authorJim Hahn <jrh3@att.com>
Fri, 10 May 2019 14:19:43 +0000 (10:19 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 10 May 2019 14:45:00 +0000 (10:45 -0400)
commitf9b1e7a0cd418738375505a9269f50f903d459ad
tree1aed0143bdefd7d31ab1d631e43c811469581500
parent2de7e5642b9a61566e7e6ad52ccdcb5798f0924f
Return 200 when policy successfully undeployed

The PAP Undeploy CSIT was failing, because it was returning 400.
The code was counting PDP UPDATE requests to determine whether or
not the policy had been found.  However, if a subgroup currently
has no PDPs assigned (as is the case with the CSIT), then there
will be no PDP UPDATEs, thus it will think that the policy was
not found and return 400.  Modified the code to count updates to
the DB instead.

Change-Id: I80cdcc738e07c418e0a7184284e7a228e3a6014d
Issue-ID: POLICY-1758
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestGroupData.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestSessionData.java