Attempt 2. Introduce V2 for LCM events 97/143097/2
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 26 Jan 2026 11:34:54 +0000 (11:34 +0000)
committerToine Siebelink <toine.siebelink@est.tech>
Tue, 3 Feb 2026 17:21:02 +0000 (17:21 +0000)
commit0c046eb5427bbaf12473935cf7168bceb0ba9b78
tree3951ee8ae261ea2db6f526787d187502dad82cfb
parent9abce66d32e2b550a2e78747937308075c3e1f79
Attempt 2. Introduce V2 for LCM events

- Refactored schema for Legacy LCM Event (now V1)
- Added schema for CM event V2
- Refactored schemas to re-use common parts
- Refactoring Lcm Event production to simplify and support multiple versions
- TODO in separate commit: Add feature toggle to activate V2 (not by default)
- TODO BEFORE MERGE Compare output of legacy event with refactored V1 version -> should be identical

Change-Id: I0ca14e54c87eb8bfd29cfc391c65c9359acebc46
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
17 files changed:
cps-ncmp-events/src/main/resources/schemas/lcm/lcm-event-base.json [new file with mode: 0644]
cps-ncmp-events/src/main/resources/schemas/lcm/lcm-event-schema-v1.json [deleted file]
cps-ncmp-events/src/main/resources/schemas/lcm/lcm-event-v1.json [new file with mode: 0644]
cps-ncmp-events/src/main/resources/schemas/lcm/lcm-event-v2.json [new file with mode: 0644]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/CmHandlePropertyChangeDetector.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/CmHandlePropertyUpdates.java
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/LcmEventVersion.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/EventProducerSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventObjectCreatorSpec.groovy
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/LcmEventVersionSpec.groovy [new file with mode: 0644]
cps-parent/pom.xml
cps-service/src/main/java/org/onap/cps/events/EventProducer.java
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/inventory/CmHandleCreateSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/inventory/CmHandleUpdateSpec.groovy