From a9b8d9da4602727ca5810f62d250b6b941664b8c Mon Sep 17 00:00:00 2001 From: mpriyank Date: Tue, 20 Jun 2023 13:42:31 +0100 Subject: DMI Data AVC RFC8641 and CloudEvent Compliant - Introduced CloudEvents for DMI Data AVC Events - Kafkatemplate config to support legacy as well as CloudEvents - AvcEvent to be compliant with RFC8641 schema format - Updating the released version of CPS and NCMP 3.3.3 - Refactored the test code to handle the changes related to CloudEvents Issue-ID: CPS-1719 Change-Id: I082bbceda6dc26c860e1eff977ede219296d1875 Signed-off-by: mpriyank --- src/test/resources/application.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/test/resources/application.yml') diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index d2aafbd7..43eb0fc5 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -59,8 +59,16 @@ spring: protocol: PLAINTEXT producer: key-serializer: org.apache.kafka.common.serialization.StringSerializer - value-serializer: org.springframework.kafka.support.serializer.JsonSerializer + value-serializer: io.cloudevents.kafka.CloudEventSerializer client-id: ncmp-dmi-plugin + consumer: + group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group} + key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer + value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer + properties: + spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer + spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer + spring.json.use.type.headers: false app: ncmp: -- cgit 1.2.3-korg