-
Story
-
Resolution: Done
-
Medium
-
None
- Create a topic dmi-cm-events in OOM
Topic Parameters
dmiCmEventsTopic: name: dmi-cm-events retentionMs: 7200000 consumer: groupId: ncmp-group
https://gerrit.onap.org/r/c/oom/+/131072/6/kubernetes/cps/templates/cps-kafka-topic.yaml
- REST endpoint to simulate the message trigger. ( eg : v1/simulate )
No change in the openapi.yml file and directly create an endpoint.
Endpoint should be able to produce the event.
- Create the schema in NCMP for CPS-1065 Spike: CM data notifications from NCMP to applications including subscriptions - Developer Wiki - Confluence (onap.org)
Build it and reference the artifact in DMI plugin to use the same event.
NCMP : cps-ncmp-events ( for local testing we need to define the SNAPSHOT version )
Already been referred in DMI plugin. - Create the Producer code to publish the event to kafka topic.
Eg: org/onap/cps/ncmp/dmi/notifications/async/DmiAsyncRequestResponseEventProducer.java
Suggestions :
Package : org/onap/cps/ncmp/dmi/notifications/avc/
Topic can be hardcoded.
A/C :
- To be able to verify the produced event in the correct schema structure.
- Demo to the team
- No new endpoint ( simulated one ) exposed in the openapi.yaml file.
Out Of Scope
- Integration Testing
- Payload can be anything for the moment ( hello world but with agreed schema ) **