Only update policies in PAP REST API 19/99119/4
authorJim Hahn <jrh3@att.com>
Tue, 3 Dec 2019 18:07:57 +0000 (13:07 -0500)
committerJim Hahn <jrh3@att.com>
Mon, 9 Dec 2019 15:41:02 +0000 (10:41 -0500)
commit73aaafa0ab601533d5cdbd839055cb7b5f9bb6ec
treee72d1123aee0f7408eccfdda523c1418e6d5df79
parentdf7ccc04c86aa4b93c6f24b1e83d54c6a10fcc64
Only update policies in PAP REST API

Modified the deploy controller and provider to only update the
policies within a group, while leaving the other fields unchanged.
Added delta operations so that only additions or deletions need
be included instead of providing the complete list of policies.

Change-Id: Id2b69dac15f97b8a898f459f8d3f09216fc3618e
Issue-ID: POLICY-2274
Signed-off-by: Jim Hahn <jrh3@att.com>
14 files changed:
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupCreateOrUpdateProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployControllerV1.java
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupDeployProvider.java
main/src/test/java/org/onap/policy/pap/main/rest/e2e/PdpGroupDeployTest.java
main/src/test/resources/e2e/deployGroups.json [new file with mode: 0644]
main/src/test/resources/e2e/deployGroups2.json [new file with mode: 0644]
main/src/test/resources/e2e/deployGroupsReq.json [new file with mode: 0644]
main/src/test/resources/e2e/deployGroupsReq2.json [new file with mode: 0644]
main/src/test/resources/e2e/deployPolicies.json
main/src/test/resources/simpleDeploy/createGroupNewPolicy2.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/daoPolicyList2.json [new file with mode: 0644]
main/src/test/resources/simpleDeploy/deployGroups.json [new file with mode: 0644]