diff options
author | halil.cakal <halil.cakal@est.tech> | 2023-03-14 11:24:26 +0000 |
---|---|---|
committer | halil.cakal <halil.cakal@est.tech> | 2023-03-29 15:13:47 +0100 |
commit | 8d8ec86444fb3e085d7dd350966beb92ca0a8ba8 (patch) | |
tree | 7ec78469a9031f86effd98cd531b5147c64ab95a /src/test/resources | |
parent | 221ee7ddfe4a0bce0bc8ad57907404429821bc3d (diff) |
Subscription Create Response Handling Dmi Part
- Consume suscription event (payload) with kafka message key
and kafka timestamp from ncmp, and extract cm handle ids.
- Generate subscription event response (payload) and revert it
back to ncmp to specified topic with the corresponding
kafka message key.
- Configure kafka consumer properties and dmi service name.
Issue-ID: CPS-1492
Change-Id: I87de30c00e0f93e350ce6f9fd6079504952da09b
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/application.yml | 5 | ||||
-rw-r--r-- | src/test/resources/avcSubscriptionCreationEvent.json | 45 |
2 files changed, 49 insertions, 1 deletions
diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index 9ed37a73..d2aafbd7 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (C) 2021-2022 Nordix Foundation +# Copyright (C) 2021-2023 Nordix Foundation # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,6 +43,9 @@ cps-core: dmi: service: url: some url for the dmi service + avc: + subscription-topic: ncmp-dmi-cm-avc-subscription + subscription-response-topic: dmi-ncmp-cm-avc-subscription spring: application: diff --git a/src/test/resources/avcSubscriptionCreationEvent.json b/src/test/resources/avcSubscriptionCreationEvent.json new file mode 100644 index 00000000..d52a91ec --- /dev/null +++ b/src/test/resources/avcSubscriptionCreationEvent.json @@ -0,0 +1,45 @@ +{ + "version": "1.0", + "eventType": "CREATE", + "event": { + "subscription": { + "clientID": "SCO-9989752", + "name": "cm-subscription-001" + }, + "dataType": { + "dataspace": "ALL", + "dataCategory": "CM", + "dataProvider": "CM-SERVICE", + "schemaName": "org.onap.ncmp:cm-network-avc-event.rfc8641", + "schemaVersion": "1.0" + }, + "predicates": { + "targets": [ + { + "CMHandle1": { + "cmhandle-properties": { + "prop1": "prop-value" + } + } + }, + { + "CMHandle2": { + "cmhandle-properties": { + "prop-x": "prop-valuex", + "prop-p": "prop-valuep" + } + } + }, + { + "CMHandle3": { + "cmhandle-properties": { + "prop-y": "prop-valuey" + } + } + } + ], + "datastore": "passthrough-running", + "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 |