CPS Delta API: Update action for delta service 19/136619/29
authorArpit Singh <as00745003@techmahindra.com>
Tue, 21 Nov 2023 15:31:43 +0000 (21:01 +0530)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Tue, 16 Jan 2024 15:09:37 +0000 (15:09 +0000)
commit885980d8ebf6bc8be9efad7ce9094deeb602a076
tree362e31bc7219ec72c5f4e9380005603f91961974
parentf66fb4f4a8fb85ce717e97ef660c21fc70dd98a8
CPS Delta API: Update action for delta service

- Added code for Update action in Delta service
- added method to get updated Leaf data: getUpdatedLeavesBetweenSourceAndTargetDataNode
- added method to compare Leaf data common in source and target data
  node
- added method to process leaves unique to target data node
- added method to compare leaves: compareLeaves
- added method to store updated data to a DeltaReport: addUpdatedLeavesToDeltaReport
- Added corresponding testware

Issue-ID: CPS-1824
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: I3de07ea3227988784a0892f6a92c238ecf00a7fa
cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java
cps-service/src/main/java/org/onap/cps/spi/model/DeltaReport.java
cps-service/src/main/java/org/onap/cps/spi/model/DeltaReportBuilder.java
cps-service/src/test/groovy/org/onap/cps/api/impl/CpsDeltaServiceImplSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsDataServiceIntegrationSpec.groovy
integration-test/src/test/resources/data/bookstore/bookstoreDataForDeltaReport.json