Introduce LCM Event V2 17/143317/4
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 9 Feb 2026 10:55:01 +0000 (10:55 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Mon, 16 Feb 2026 16:51:59 +0000 (16:51 +0000)
commit9f6acf20c21251eb3fe9d81a5e2b5135edf96120
tree0ea36233823996b07f4de855e0db3fe2cafb45b7
parente58f836a5a1376f13aa36df3dd72d415b5d2cad9
Introduce LCM Event V2

- Add config parameter to enable V2 (optional, defaults to V1 if not provided)
- Introduced data holders specific for version 2
- refactor change detector to produce V2 format and then covert to V1
 (easier then the other way around, and better if we in the future remove V1))
- Added ChangeDetector Specs specifically focussed on change in (additional)Properties
- Refactor to create Payload directly instead of using in between classes.
- Renamed ChangeDetector to PayloadFactory

Issue-ID: CPS-2975
Change-Id: I1a5abbbfa9ab71d3826d3d089f8a75001b41bd97
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-events/src/main/resources/schemas/lcm/lcm-event-v2.json
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/CmHandlePropertyChangeDetector.java [deleted file]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/CmHandlePropertyUpdates.java [deleted file]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventObjectCreator.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventProducer.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/PayloadFactory.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventProducerSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/PayloadFactorySpec.groovy [moved from cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/CmHandlePropertyChangeDetectorSpec.groovy with 67% similarity]