diff options
author | emaclee <lee.anjella.macabuhay@est.tech> | 2024-01-24 15:22:58 +0000 |
---|---|---|
committer | emaclee <lee.anjella.macabuhay@est.tech> | 2024-02-26 16:25:51 +0000 |
commit | a25711de47cb9fa7840f5e67a3d93da9fab8e0a3 (patch) | |
tree | 41a37f57ccd28bf4d28f07e1ab48fec88ff6f23c /cps-ncmp-service/src/test/resources | |
parent | 49fcc06df92a1a2bb7d8db69e635292c3c234998 (diff) |
Populate cmSubscription cache
- Create subscription cache handler
- Add unit tests
Issue-ID: CPS-2025
Change-Id: I54d505369a8429d6f6a87a2af0b169f9530622c3
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/test/resources')
-rw-r--r-- | cps-ncmp-service/src/test/resources/cmSubscription/cmNotificationSubscriptionNcmpInEvent.json | 21 | ||||
-rw-r--r-- | cps-ncmp-service/src/test/resources/cmSubscription/cmSubscriptionNcmpInEvent.json | 23 |
2 files changed, 21 insertions, 23 deletions
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 |