X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Ftests%2Funit%2Fcore%2Ftest_common_db_client.py;h=8ffc3d870f04202f4e52d29816bc492a70c42803;hb=refs%2Ftags%2Fv10.0.0;hp=b639b7a75b5d9bf0960ccf6ba6a62d964b8df806;hpb=e5e83ccda4ae62947b3302f7704c433f94a322fd;p=osm%2FMON.git 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 b639b7a..8ffc3d8 100644 --- a/osm_mon/tests/unit/core/test_common_db_client.py +++ b/osm_mon/tests/unit/core/test_common_db_client.py @@ -185,7 +185,7 @@ class CommonDbClientTest(unittest.TestCase): @mock.patch.object(dbmongo.DbMongo, "db_connect", mock.Mock()) @mock.patch.object(dbmongo.DbMongo, "create") def test_create_alarm(self, create): - alarm = Alarm("name", "severity", 50.0, "operation", "statistic", "metric", {}) + alarm = Alarm("name", "severity", 50.0, "operation", "statistic", "metric", "scale_out", {}, "ok") alarm.uuid = "1" common_db_client = CommonDbClient(self.config) common_db_client.create_alarm(alarm) @@ -200,6 +200,7 @@ class CommonDbClientTest(unittest.TestCase): "name": "name", "operation": "operation", "uuid": "1", + "alarm_status": "ok", }, )