From a25711de47cb9fa7840f5e67a3d93da9fab8e0a3 Mon Sep 17 00:00:00 2001 From: emaclee Date: Wed, 24 Jan 2024 15:22:58 +0000 Subject: Populate cmSubscription cache - Create subscription cache handler - Add unit tests Issue-ID: CPS-2025 Change-Id: I54d505369a8429d6f6a87a2af0b169f9530622c3 Signed-off-by: emaclee --- .../cmNotificationSubscriptionNcmpInEvent.json | 21 ++++++++++++++++++++ .../cmSubscription/cmSubscriptionNcmpInEvent.json | 23 ---------------------- 2 files changed, 21 insertions(+), 23 deletions(-) create mode 100644 cps-ncmp-service/src/test/resources/cmSubscription/cmNotificationSubscriptionNcmpInEvent.json delete mode 100644 cps-ncmp-service/src/test/resources/cmSubscription/cmSubscriptionNcmpInEvent.json (limited to 'cps-ncmp-service/src/test/resources') diff --git a/cps-ncmp-service/src/test/resources/cmSubscription/cmNotificationSubscriptionNcmpInEvent.json b/cps-ncmp-service/src/test/resources/cmSubscription/cmNotificationSubscriptionNcmpInEvent.json new file mode 100644 index 0000000000..09796e2f4f --- /dev/null +++ b/cps-ncmp-service/src/test/resources/cmSubscription/cmNotificationSubscriptionNcmpInEvent.json @@ -0,0 +1,21 @@ +{ + "data": { + "subscriptionId": "cm-subscription-001", + "predicates": [ + { + "targetFilter": ["ch1","ch2"], + "scopeFilter": { + "datastore": "ncmp-datastore:passthrough-operational", + "xpath-filter": ["/x1/y1","x2/y2"] + } + }, + { + "targetFilter": ["ch3","ch4"], + "scopeFilter": { + "datastore": "ncmp-datastore:passthrough-operational", + "xpath-filter": ["/x3/y3","x4/y4"] + } + } + ] + } +} \ No newline at end of file diff --git a/cps-ncmp-service/src/test/resources/cmSubscription/cmSubscriptionNcmpInEvent.json b/cps-ncmp-service/src/test/resources/cmSubscription/cmSubscriptionNcmpInEvent.json deleted file mode 100644 index 5246618820..0000000000 --- a/cps-ncmp-service/src/test/resources/cmSubscription/cmSubscriptionNcmpInEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "data": { - "subscriptionId": "cm-subscription-001", - "predicates": [ - { - "targetFilter": [ - "CMHandle1", - "CMHandle2", - "CMHandle3" - ], - "scopeFilter": { - "datastore": "ncmp-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 -- cgit 1.2.3-korg