Reject policy deployment with version mismatch 97/89397/2
authorJim Hahn <jrh3@att.com>
Wed, 5 Jun 2019 15:00:21 +0000 (11:00 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 5 Jun 2019 16:00:42 +0000 (12:00 -0400)
commit9f41ede37c78dd5dcea1851e114b7bdf9a5df7a5
treed5ae6c720dc9ead5f437a961ffcfc34bf7942cda
parentee3bea2552f89babf1b0e0ada286cc36bc6af105
Reject policy deployment with version mismatch

PAP should not allow multiple versions of a policy to be deployed
to the same PDP.  Modified the code to reject deployment requests
where a different version of the policy is already deployed.  This
impacts both the PDP-Group-Deploy and the Simple-Deploy REST APIs.

Change-Id: I586b764951c20228d0d80ec8326869215e970fdf
Issue-ID: POLICY-1785
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/upgradeGroupDao_DiffVers.json [new file with mode: 0644]