summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/tests
diff options
context:
space:
mode:
Diffstat (limited to 'components/pm-subscription-handler/tests')
-rw-r--r--components/pm-subscription-handler/tests/services/test_measurement_group_service.py4
-rwxr-xr-xcomponents/pm-subscription-handler/tests/test_controller.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/components/pm-subscription-handler/tests/services/test_measurement_group_service.py b/components/pm-subscription-handler/tests/services/test_measurement_group_service.py
index 7190069e..f7b98a59 100644
--- a/components/pm-subscription-handler/tests/services/test_measurement_group_service.py
+++ b/components/pm-subscription-handler/tests/services/test_measurement_group_service.py
@@ -336,14 +336,14 @@ class MeasurementGroupServiceTestCase(BaseClassSetup):
self.assertEqual(e.args[0], 'Measurement Group Name: MG1 already exists.')
def test_check_measurement_group_names_comply(self):
- mg = {'subscription_name': 'sub',
+ mg = {'measurementGroup': {
'measurementGroupName': 'MG2',
'administrativeState': 'UNLOCKED',
'fileBasedGP': 15,
'fileLocation': '/pm/pm.xml',
'measurementTypes': '[{ "measurementType": "countera" }, '
'{ "measurementType": "counterb" }]',
- 'managedObjectDNsBasic': '[{ "DN":"dna"},{"DN":"dnb"}]'}
+ 'managedObjectDNsBasic': '[{ "DN":"dna"},{"DN":"dnb"}]'}}
try:
measurement_group_service.check_measurement_group_names_comply('MG1', mg)
except InvalidDataException as e:
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()