From adfb0693ec18025abcd8b9036bafe20a25f2e496 Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Mon, 3 Jul 2023 15:24:02 +0100 Subject: Subscription Creation: NCMP to DMI CloudEvent transformation - Add mapper to convert client event into ncmp event - Add sample json object of ncmp version - Change subscription event consumer to consume CloudEvents - Change subscription event forwarder to publish CloudEvents - Change test producer config to support CloudEvents - Change sample subscription event json to comply with new schema - Add more test for missing branches - Change packages of the mappers into relevant directory Issue-ID: CPS-1737 Change-Id: I8c9e6e7bf713a8fb530a0586dfb2bce796a462f5 Signed-off-by: halil.cakal --- .../avcSubscriptionCreationEventNcmpVersion.json | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 cps-ncmp-service/src/test/resources/avcSubscriptionCreationEventNcmpVersion.json (limited to 'cps-ncmp-service/src/test/resources/avcSubscriptionCreationEventNcmpVersion.json') diff --git a/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEventNcmpVersion.json b/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEventNcmpVersion.json new file mode 100644 index 0000000000..f31362a1c6 --- /dev/null +++ b/cps-ncmp-service/src/test/resources/avcSubscriptionCreationEventNcmpVersion.json @@ -0,0 +1,31 @@ +{ + "data": { + "subscription": { + "clientID": "SCO-9989752", + "name": "cm-subscription-001" + }, + "dataType": { + "dataspace": "ALL", + "dataCategory": "CM", + "dataProvider": "CM-SERVICE" + }, + "predicates": { + "targets":[ + { + "id":"CMHandle2", + "additional-properties":{ + "Books":"Novel" + } + }, + { + "id":"CMHandle1", + "additional-properties":{ + "Books":"Social Media" + } + } + ], + "datastore": "passthrough-running", + "datastore-xpath-filter": "//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/_3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// | //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// | //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//" + } + } +} \ No newline at end of file -- cgit 1.2.3-korg