Handling null source and target data in CloudEventData. 16/142816/8
authorSourabh Verma <sv001010507@techmahindra.com>
Mon, 5 Jan 2026 11:53:43 +0000 (17:23 +0530)
committerSourabh Verma <sv001010507@techmahindra.com>
Wed, 14 Jan 2026 08:06:13 +0000 (13:36 +0530)
commit97c43ae6083fa16f2cac321c466a630884c6ead6
treecf31a1f06fe41f8504f8a35d00f3ed6b547a275d
parenta850b757a3caddb419da3fbd0950822ebe1b4f6e
Handling null source and target data in CloudEventData.

-A delta report with null or empty source/target would generate a cloud event with null source and target data.

-The patch fixed the issue and the source and target data in cloud event are populated only when they are present in delta report.

Issue-ID: CPS-3105
Change-Id: Ic76004fdcf4e2f63cdf415f2fc7645203ba17258
Signed-off-by: Sourabh Verma <sv001010507@techmahindra.com>
cps-service/src/main/java/org/onap/cps/events/CpsDataUpdateEventsProducer.java
cps-service/src/main/java/org/onap/cps/utils/DataMapUtils.java
cps-service/src/test/groovy/org/onap/cps/utils/DataMapUtilsSpec.groovy