Fix Null Pointer Exception during LCM Event Metric Recording 24/142724/2 master
authorToineSiebelink <toine.siebelink@est.tech>
Wed, 10 Dec 2025 15:34:36 +0000 (15:34 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Wed, 10 Dec 2025 15:55:08 +0000 (15:55 +0000)
commit4d73e3089e8ae455037d3246f39d0fc51f9fba48
treee8081ca2c9e75ea14a9f34f2ab3afca8cdb20de7
parentc4da89856cf9cd874cc8d148bcab13e2727e8d6e
Fix Null Pointer Exception during LCM Event Metric Recording

- Add null check when recording metric for unknown states (initial create and delete use cases)
- Extend Create Integration test to verify the (number of) recording metrics
- Moved Instrumentation bean to integration testbase as it is now used in several test classes
- Update version of docker test container to latest (part of troubleshooting with Docker for windows integration)
- Clean up some legacy issues in related integration testware
  - unnecessary and distracting spacing
  - correct use of #testValue in descriptions

Issue-ID:CPS-3088

Change-Id: Ic1163e33606ee2fe2c4e136e63282708a4625f60
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-dependencies/pom.xml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventProducer.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventProducerSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/base/CpsIntegrationSpecBase.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
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/inventory/CmHandleUpgradeSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/inventory/ModuleSyncWatchdogIntegrationSpec.groovy