[CSIT] PMSH Supporting New Monitoring Policy Key Update 81/120381/2
authorajay_dp001 <ajay.deep.singh@est.tech>
Sun, 11 Apr 2021 18:13:24 +0000 (23:43 +0530)
committerajay_dp001 <ajay.deep.singh@est.tech>
Sat, 1 May 2021 15:53:43 +0000 (21:23 +0530)
Issue-ID: INT-1905
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Change-Id: I4720aeaef66ac64d8573b9fa776728df22b0939a

plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json
tests/dcaegen2-services-pmsh/testcases/assets/cbs-expectation-unlocked-config.json

index 5bb2e6f..6826962 100644 (file)
       "body": {
         "type": "JSON",
         "json": {
-          "policy": {
-            "subscription": {
-              "subscriptionName": "ExtraPM-All-gNB-R2B",
-              "administrativeState": "LOCKED",
-              "fileBasedGP": 15,
-              "fileLocation": "/pm/pm.xml",
-              "nfFilter": {
-                "nfNames": [
-                  "^pnf.*",
-                  "^vnf.*"
-                ],
-                "modelInvariantIDs": [
-                  "7129e420-d396-4efb-af02-6b83499b12f8"
-                ],
-                "modelVersionIDs": [
-
-                ],
-                "modelNames": [
-
-                ]
-              },
-              "measurementGroups": [
-                {
-                  "measurementGroup": {
-                    "measurementTypes": [
-                      {
-                        "measurementType": "countera"
-                      },
-                      {
-                        "measurementType": "counterb"
-                      }
-                    ],
-                    "managedObjectDNsBasic": [
-                      {
-                        "DN": "dna"
-                      },
-                      {
-                        "DN": "dnb"
-                      }
-                    ]
-                  }
-                },
-                {
-                  "measurementGroup": {
-                    "measurementTypes": [
-                      {
-                        "measurementType": "counterc"
-                      },
-                      {
-                        "measurementType": "counterd"
-                      }
-                    ],
-                    "managedObjectDNsBasic": [
-                      {
-                        "DN": "dnc"
-                      },
-                      {
-                        "DN": "dnd"
-                      }
-                    ]
-                  }
-                }
-              ]
-            }
-          },
           "config": {
             "control_loop_name": "pmsh-control-loop",
             "operational_policy_name": "pmsh-operational-policy",
             "cert_path": "/opt/app/pmsh/etc/certs/cert.pem",
             "enable_tls": true,
             "ca_cert_path": "/opt/app/pmsh/etc/certs/cacert.pem",
+            "pmsh_policy": {
+              "subscription": {
+                "subscriptionName": "ExtraPM-All-gNB-R2B",
+                "administrativeState": "LOCKED",
+                "fileBasedGP": 15,
+                "fileLocation":"\/pm\/pm.xml",
+                "nfFilter": {
+                  "nfNames": [
+                    "^pnf.*",
+                    "^vnf.*"
+                  ],
+                  "modelInvariantIDs": [
+                    "7129e420-d396-4efb-af02-6b83499b12f8"
+                  ],
+                  "modelVersionIDs": [
+                  ],
+                  "modelNames": [
+                  ]
+                },
+                "measurementGroups": [
+                  {
+                    "measurementGroup": {
+                      "measurementTypes": [
+                        {
+                          "measurementType": "countera"
+                        },
+                        {
+                          "measurementType": "counterb"
+                        }
+                      ],
+                      "managedObjectDNsBasic": [
+                        {
+                          "DN": "dna"
+                        },
+                        {
+                          "DN": "dnb"
+                        }
+                      ]
+                    }
+                  },
+                  {
+                    "measurementGroup": {
+                      "measurementTypes": [
+                        {
+                          "measurementType": "counterc"
+                        },
+                        {
+                          "measurementType": "counterd"
+                        }
+                      ],
+                      "managedObjectDNsBasic": [
+                        {
+                          "DN": "dnc"
+                        },
+                        {
+                          "DN": "dnd"
+                        }
+                      ]
+                    }
+                  }
+                ]
+              }
+            },
             "streams_publishes": {
               "policy_pm_publisher": {
                 "dmaap_info": {
index f22d456..60ac2aa 100644 (file)
       "body": {
         "type": "JSON",
         "json": {
-          "policy": {
-            "subscription": {
-              "subscriptionName": "ExtraPM-All-gNB-R2B",
-              "administrativeState": "UNLOCKED",
-              "fileBasedGP": 15,
-              "fileLocation": "/pm/pm.xml",
-              "nfFilter": {
-                "nfNames": [
-                  "^pnf.*",
-                  "^vnf.*"
-                ],
-                "modelInvariantIDs": [
-                  "7129e420-d396-4efb-af02-6b83499b12f8"
-                ],
-                "modelVersionIDs": [
-
-                ],
-                "modelNames": [
-
-                ]
-              },
-              "measurementGroups": [
-                {
-                  "measurementGroup": {
-                    "measurementTypes": [
-                      {
-                        "measurementType": "countera"
-                      },
-                      {
-                        "measurementType": "counterb"
-                      }
-                    ],
-                    "managedObjectDNsBasic": [
-                      {
-                        "DN": "dna"
-                      },
-                      {
-                        "DN": "dnb"
-                      }
-                    ]
-                  }
-                },
-                {
-                  "measurementGroup": {
-                    "measurementTypes": [
-                      {
-                        "measurementType": "counterc"
-                      },
-                      {
-                        "measurementType": "counterd"
-                      }
-                    ],
-                    "managedObjectDNsBasic": [
-                      {
-                        "DN": "dnc"
-                      },
-                      {
-                        "DN": "dnd"
-                      }
-                    ]
-                  }
-                }
-              ]
-            }
-          },
           "config": {
             "control_loop_name": "pmsh-control-loop",
             "operational_policy_name": "pmsh-operational-policy",
             "cert_path": "/opt/app/pmsh/etc/certs/cert.pem",
             "enable_tls": true,
             "ca_cert_path": "/opt/app/pmsh/etc/certs/cacert.pem",
+            "pmsh_policy": {
+              "subscription": {
+                "subscriptionName": "ExtraPM-All-gNB-R2B",
+                "administrativeState": "UNLOCKED",
+                "fileBasedGP": 15,
+                "fileLocation":"\/pm\/pm.xml",
+                "nfFilter": {
+                  "nfNames": [
+                    "^pnf.*",
+                    "^vnf.*"
+                  ],
+                  "modelInvariantIDs": [
+                    "7129e420-d396-4efb-af02-6b83499b12f8"
+                  ],
+                  "modelVersionIDs": [
+                  ],
+                  "modelNames": [
+                  ]
+                },
+                "measurementGroups": [
+                  {
+                    "measurementGroup": {
+                      "measurementTypes": [
+                        {
+                          "measurementType": "countera"
+                        },
+                        {
+                          "measurementType": "counterb"
+                        }
+                      ],
+                      "managedObjectDNsBasic": [
+                        {
+                          "DN": "dna"
+                        },
+                        {
+                          "DN": "dnb"
+                        }
+                      ]
+                    }
+                  },
+                  {
+                    "measurementGroup": {
+                      "measurementTypes": [
+                        {
+                          "measurementType": "counterc"
+                        },
+                        {
+                          "measurementType": "counterd"
+                        }
+                      ],
+                      "managedObjectDNsBasic": [
+                        {
+                          "DN": "dnc"
+                        },
+                        {
+                          "DN": "dnd"
+                        }
+                      ]
+                    }
+                  }
+                ]
+              }
+            },
             "streams_publishes": {
               "policy_pm_publisher": {
                 "dmaap_info": {