diff options
author | mpriyank <priyank.maheshwari@est.tech> | 2022-09-14 17:29:50 +0100 |
---|---|---|
committer | aditya puthuparambil <aditya.puthuparambil@bell.ca> | 2022-09-15 12:42:16 +0000 |
commit | d9a583b78f1a187afddac4aeafb74df710ce8a89 (patch) | |
tree | 8ac2a013f8db197341e7c8f0c5c481323c32ca06 | |
parent | 2733fa4c506f4fe55e019b72c996b6d4effa4f8f (diff) |
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 <priyank.maheshwari@est.tech>
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventCreator.java | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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> 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)); |