Async event from dmi plugin 48/130948/2
authormpriyank <priyank.maheshwari@est.tech>
Wed, 14 Sep 2022 16:29:50 +0000 (17:29 +0100)
committeraditya puthuparambil <aditya.puthuparambil@bell.ca>
Thu, 15 Sep 2022 12:42:16 +0000 (12:42 +0000)
- Updating cps version to 3.1.0
- Raising async event with correct eventSchema and eventSchemaVersion

Issue-ID: CPS-1224
Change-Id: I5e25f6217ad5ff554c98f5756120a44467f99aea
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
pom.xml
src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java

diff --git a/pom.xml b/pom.xml
index c935f63..b5202b5 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,7 @@
     <properties>
         <app>org.onap.cps.ncmp.dmi.Application</app>
         <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
-        <cps.version>3.0.0</cps.version>
+        <cps.version>3.1.0</cps.version>
         <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
         <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage>
         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
index de1fc95..1e6c84b 100644 (file)
@@ -63,7 +63,8 @@ public class DmiAsyncRequestResponseEventCreator {
         dmiAsyncRequestResponseEvent.setEventId(UUID.randomUUID().toString());
         dmiAsyncRequestResponseEvent.setEventCorrelationId(requestId);
         dmiAsyncRequestResponseEvent.setEventType(DmiAsyncRequestResponseEvent.class.getName());
-        dmiAsyncRequestResponseEvent.setEventSchema("urn:cps:" + DmiAsyncRequestResponseEvent.class.getName() + ":v1");
+        dmiAsyncRequestResponseEvent.setEventSchema("urn:cps:" + DmiAsyncRequestResponseEvent.class.getName());
+        dmiAsyncRequestResponseEvent.setEventSchemaVersion("v1");
         dmiAsyncRequestResponseEvent.setEventSource(Application.class.getPackageName());
         dmiAsyncRequestResponseEvent.setEventTarget(topicParamInQuery);
         dmiAsyncRequestResponseEvent.setEventTime(ZonedDateTime.now().format(dateTimeFormatter));