NcmpEvent creation and Mapping 95/129595/7
authormpriyank <priyank.maheshwari@est.tech>
Fri, 10 Jun 2022 11:09:20 +0000 (12:09 +0100)
committermpriyank <priyank.maheshwari@est.tech>
Wed, 15 Jun 2022 09:17:40 +0000 (10:17 +0100)
commitf174640d9aebe8b962de651d954243f434cc5eab
treeb24d1d7f9393211e25efc5d0ea317a4e5be7a6b0
parent708d2b566a8b8cdf48e1dfe337369c946cec0e02
NcmpEvent creation and Mapping

- Mapping class to create header and event payload based on type of
  operation i.e CREATE, UPDATE and DELETE.
- Service class to get CmHandle public properties, create event and
  delegate request to event publisher.
- Modification in NcmpEvent schema json to mark field as String instead
  of URI
- Test scenarios
- UPCOMING: Call the service method from relevant code to actually
  publish the event.

Issue-ID: CPS-1037
Change-Id: I6bb7de4b27e602c4d8ee6a5528a866e5f7e8799a
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/NcmpEventsCreator.java [new file with mode: 0644]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/NcmpEventsService.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/event/NcmpEventsCreatorSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/event/NcmpEventsServiceSpec.groovy [new file with mode: 0644]