Rework the backend to support PDP updates 01/119601/13
authorsebdet <sebastien.determe@intl.att.com>
Mon, 22 Mar 2021 17:55:46 +0000 (18:55 +0100)
committersebdet <sebastien.determe@intl.att.com>
Thu, 1 Apr 2021 14:53:14 +0000 (16:53 +0200)
commitee233569e74e4620cb35ce4e9c4320b30d108824
tree5c0dbbbe575381d9696ae3f6cf841bea499c0254
parent1da36e7c13bc7efac7bdd8425cede0e69d3f1335
Rework the backend to support PDP updates

Add new mem structure so that we do not need to parse the same Json for each policy/type + rework the camel flows so that we use the same code for loop and policies related calls

Issue-ID: POLICY-2930
Issue-ID: POLICY-2931
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I3c30c4f87cf669b40511472d518fe5ccc89f56f0
16 files changed:
src/main/java/org/onap/policy/clamp/loop/components/external/PolicyComponent.java
src/main/java/org/onap/policy/clamp/loop/deploy/DcaeDeployParameters.java
src/main/java/org/onap/policy/clamp/policy/pdpgroup/PdpGroupPayload.java [new file with mode: 0644]
src/main/java/org/onap/policy/clamp/policy/pdpgroup/PdpGroupsAnalyzer.java
src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java
src/main/resources/clds/camel/rest/clamp-api-v2.xml
src/main/resources/clds/camel/routes/policy-flows.xml
src/test/java/org/onap/policy/clamp/policy/pdpgroup/PdpGroupAnalyzerTest.java
src/test/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMergerTest.java
src/test/resources/example/policy/pdp-deployment-testos-1_0_0.json [new file with mode: 0644]
src/test/resources/example/policy/pdp-deployment-testos-2_0_0.json [new file with mode: 0644]
src/test/resources/example/policy/policy-merger.json
src/test/resources/http-cache/example/policy/pap/v1/pdps/.file
ui-react-lib/libIndex.js
ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js [new file with mode: 0644]
ui-react/src/components/dialogs/Policy/ViewAllPolicies.js