aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-08-26 09:47:50 +0000
committerGerrit Code Review <gerrit@onap.org>2022-08-26 09:47:50 +0000
commit6abd69ad61216db6c994bfec662ec46685b871c6 (patch)
tree0566e4a686797cb329e3601aea38b09ce1ee404d /cps-ncmp-service/src
parente2a699f90d9b755230ea960df21abef55bc305ce (diff)
parent3689a920e17f6e88967ebf5eb453d10642d659d6 (diff)
Merge "Added eventSchemaVersion for async schema"
Diffstat (limited to 'cps-ncmp-service/src')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/async/NcmpAsyncRequestResponseEventMapper.java1
-rw-r--r--cps-ncmp-service/src/test/resources/dmiAsyncRequestResponseEvent.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/async/NcmpAsyncRequestResponseEventMapper.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/async/NcmpAsyncRequestResponseEventMapper.java
index 5d8ac7f841..46a11b82a0 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/async/NcmpAsyncRequestResponseEventMapper.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/async/NcmpAsyncRequestResponseEventMapper.java
@@ -42,6 +42,7 @@ public interface NcmpAsyncRequestResponseEventMapper {
@Mapping(source = "eventId", target = "forwardedEvent.eventId")
@Mapping(source = "eventCorrelationId", target = "forwardedEvent.eventCorrelationId")
@Mapping(source = "eventSchema", target = "forwardedEvent.eventSchema")
+ @Mapping(source = "eventSchemaVersion", target = "forwardedEvent.eventSchemaVersion")
@Mapping(source = "eventSource", target = "forwardedEvent.eventSource")
@Mapping(source = "eventTarget", target = "forwardedEvent.eventTarget")
@Mapping(source = "eventTime", target = "forwardedEvent.eventTime")
diff --git a/cps-ncmp-service/src/test/resources/dmiAsyncRequestResponseEvent.json b/cps-ncmp-service/src/test/resources/dmiAsyncRequestResponseEvent.json
index bf6c86aaac..f2a928b47f 100644
--- a/cps-ncmp-service/src/test/resources/dmiAsyncRequestResponseEvent.json
+++ b/cps-ncmp-service/src/test/resources/dmiAsyncRequestResponseEvent.json
@@ -3,7 +3,8 @@
"eventCorrelationId": "122ca20b-4f8c-4759-a2b4-f0b9456df204",
"eventTime": "2022-05-09T13:34:50.466+0000",
"eventSource": "org.onap.ncmp",
- "eventSchema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",
+ "eventSchema": "urn:cps:org.onap.cps:async-request-response-event-schema",
+ "eventSchemaVersion": "v1",
"eventTarget": "test-topic",
"eventContent": {
"response-data-schema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",