Allow integer version when using PDP Group Deploy 56/90256/1
authorjrh3 <jrh3@att.com>
Thu, 20 Jun 2019 18:57:50 +0000 (14:57 -0400)
committerjrh3 <jrh3@att.com>
Thu, 20 Jun 2019 20:12:30 +0000 (16:12 -0400)
commitb346fda03f450ccf9f8adb143f872cfce6ba76a8
tree5dc6167e8a8bf143dd92d24682e587fd47ef5f2d
parent82cc7e0ccf799e0ea5d9afd033a3cff88468b6bf
Allow integer version when using PDP Group Deploy

The policies listed in a "PDP Group Deploy" request may not have
fully qualified versions.  Modified the code to replace the versions
in the request with fully qualified versions.
Also improved performance by avoiding look-ups of policies that
are already in the subgroup.

Change-Id: I37899c2b45228b97a80b7ef44f69694ba57e8f4a
Issue-ID: POLICY-1784
Signed-off-by: jrh3 <jrh3@att.com>
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
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestPdpGroupDeployProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestSessionData.java
main/src/test/resources/simpleDeploy/createGroupsNewSubNotFound.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/createGroupsVersPrefix.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/createGroupsVersPrefixMismatch.json [new file with mode: 0644]