From d9a583b78f1a187afddac4aeafb74df710ce8a89 Mon Sep 17 00:00:00 2001 From: mpriyank Date: Wed, 14 Sep 2022 17:29:50 +0100 Subject: Async event from dmi plugin - 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 --- pom.xml | 2 +- .../dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c935f633..b5202b52 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ org.onap.cps.ncmp.dmi.Application ${docker.pull.registry}/onap/integration-java11:8.0.0 - 3.0.0 + 3.1.0 ${project.version}-${maven.build.timestamp} 0.98 yyyyMMdd'T'HHmmss'Z' diff --git a/src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java b/src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java index de1fc95a..1e6c84b1 100644 --- a/src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java +++ b/src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java @@ -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)); -- cgit 1.2.3-korg