summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/tests/test_controller.py
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2022-03-17 12:40:34 +0000
committeregernug <gerard.nugent@est.tech>2022-03-17 12:51:42 +0000
commit934454b4eb2da070d69c810f310c49fd4895f11c (patch)
treee06eb68af9abf5097dd010d342b0d8b042490bf4 /components/pm-subscription-handler/tests/test_controller.py
parenteeacfc71aafb2ae92ac464f3484efc1d181c75ca (diff)
[PMSH] Bug fix for Create MG2.2.2-pmsh
Object parse error in save_measurement_group DB Commit missing Issue-ID: DCAEGEN2-3118 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I47362d5233cca3fef01e2e069f5ea68781e9ac7d
Diffstat (limited to 'components/pm-subscription-handler/tests/test_controller.py')
-rwxr-xr-xcomponents/pm-subscription-handler/tests/test_controller.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/pm-subscription-handler/tests/test_controller.py b/components/pm-subscription-handler/tests/test_controller.py
index 07c17be7..ce540fb7 100755
--- a/components/pm-subscription-handler/tests/test_controller.py
+++ b/components/pm-subscription-handler/tests/test_controller.py
@@ -204,14 +204,14 @@ class ControllerTestCase(BaseClassSetup):
mock_aai.return_value = json.loads(self.aai_response_data)
mock_model_aai.return_value = json.loads(self.good_model_info)
subscription_data = create_subscription_data('Post_MG')
- measurement_grp = {'subscription_name': 'sub',
+ measurement_grp = {'measurementGroup': {
'measurementGroupName': 'MG2',
'administrativeState': 'UNLOCKED',
'fileBasedGP': 15,
'fileLocation': '/pm/pm.xml',
'measurementTypes': '[{ "measurementType": "countera" }, '
- '{ "measurementType": "counterb" }]',
- 'managedObjectDNsBasic': '[{ "DN":"dna"},{"DN":"dnb"}]'}
+ '{ "measurementType": "counterb" }]',
+ 'managedObjectDNsBasic': '[{ "DN":"dna"},{"DN":"dnb"}]'}}
db.session.add(subscription_data)
db.session.commit()
db.session.remove()