X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FMON.git;a=blobdiff_plain;f=osm_mon%2Ftests%2Funit%2Fcore%2Ftest_common_db_client.py;fp=osm_mon%2Ftests%2Funit%2Fcore%2Ftest_common_db_client.py;h=b982bcaa1e870dccf9af1c11dc23345aad879655;hp=71022267476ff0a9a24fffb710daf2c5da51277e;hb=1d71df519a27b90cf88c11b1b14227928db2db1f;hpb=1b7145f6d0d3c0090b7a33b4972861ad9ed48631 diff --git a/osm_mon/tests/unit/core/test_common_db_client.py b/osm_mon/tests/unit/core/test_common_db_client.py index 7102226..b982bca 100644 --- a/osm_mon/tests/unit/core/test_common_db_client.py +++ b/osm_mon/tests/unit/core/test_common_db_client.py @@ -172,8 +172,9 @@ class CommonDbClientTest(unittest.TestCase): alarm.uuid = '1' common_db_client = CommonDbClient(self.config) common_db_client.create_alarm(alarm) - create.assert_called_with('alarms', {'tags': {}, 'threshold': 50.0, 'metric': 'metric', 'severity': 'severity', - 'statistic': 'statistic', 'name': 'name', 'uuid': '1'}) + create.assert_called_with('alarms', {'tags': {}, 'threshold': 50.0, 'metric': 'metric', + 'severity': 'severity', 'statistic': 'statistic', + 'name': 'name', 'operation': 'operation', 'uuid': '1'}) @mock.patch.object(dbmongo.DbMongo, "db_connect", mock.Mock()) @mock.patch.object(dbmongo.DbMongo, "del_one")