Return error when deleting non-existent policy 75/87375/2
authorJim Hahn <jrh3@att.com>
Thu, 9 May 2019 15:28:28 +0000 (11:28 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 9 May 2019 15:50:28 +0000 (11:50 -0400)
commit54cc5c118de45023692c72388b6389d184a658f7
tree16f4881402a3d2ed4f6bdc03cc82fa06635ed653
parent9bc1d7291d579e80fcb9723ae3400902abb49063
Return error when deleting non-existent policy

When undeploying a policy, if a policy's type is found in
a group, but the policy is not, then PAP returns 200.  It
should return an error instead.

Change-Id: I88273fdbd5d49095e8248ab9267cccc529af0ae0
Issue-ID: POLICY-1758
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/SessionData.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeleteProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestSessionData.java
main/src/test/java/org/onap/policy/pap/main/rest/e2e/PdpGroupDeleteTest.java