LCM Event fix: Include main properties in V2 version 76/143376/3
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 24 Feb 2026 10:08:37 +0000 (10:08 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Wed, 25 Feb 2026 17:26:10 +0000 (17:26 +0000)
commit1303266c573b86d8eb4c5bf936be383e3a2201ad
tree376e865bebd1fe893e1563aa61994dcc25c23049
parentfa7aec9bf705459712bf39abe791ec727809c47f
LCM Event fix: Include main properties in V2 version

- moduleSetTag now include in old and new properties for V2 if changed
- dataProducerIdentifier now include in old and new properties for V2 if changed
- alternateId now include in old and new properties for V2 if changed (probably not a real use case)
- 'public properties' key-name is actualy "cmHandleProperties" for consistency with V1
- refactored code for consistency and readability
- extended unit test to cover missed scenarios
- add V2 variation of create and update integration test

Issue-ID: CPS-2975
Change-Id: Ia6b6f7368dc8c7824d3270ffc25964016bf50b32
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-charts/values.yaml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/PayloadFactory.java
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/PayloadFactorySpec.groovy
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