From 73aaafa0ab601533d5cdbd839055cb7b5f9bb6ec Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 3 Dec 2019 13:07:57 -0500 Subject: 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 --- .../resources/simpleDeploy/daoPolicyList2.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 main/src/test/resources/simpleDeploy/daoPolicyList2.json (limited to 'main/src/test/resources/simpleDeploy/daoPolicyList2.json') diff --git a/main/src/test/resources/simpleDeploy/daoPolicyList2.json b/main/src/test/resources/simpleDeploy/daoPolicyList2.json new file mode 100644 index 00000000..d4d1446b --- /dev/null +++ b/main/src/test/resources/simpleDeploy/daoPolicyList2.json @@ -0,0 +1,22 @@ +{ + "policies": [ + { + "name": "policyA", + "version": "1.2.3", + "type": "typeA", + "type_version": "100.2.3" + }, + { + "name": "policyB", + "version": "1.2.3", + "type": "typeA", + "type_version": "100.2.3" + }, + { + "name": "policyC", + "version": "1.2.3", + "type": "typeA", + "type_version": "100.2.3" + } + ] +} -- cgit 1.2.3-korg