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>
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 0000000..09796e2
--- /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