Bug 2215 fixed
[osm/MON.git] / osm_mon / tests / unit / core / test_common_db_client.py
index b639b7a..7f0768d 100644 (file)
@@ -20,6 +20,7 @@
 # For those usages not covered by the Apache License, Version 2.0 please
 # contact: bdiaz@whitestack.com or glavado@whitestack.com
 ##
+
 import unittest
 from unittest import mock
 
@@ -185,7 +186,17 @@ 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 +211,8 @@ class CommonDbClientTest(unittest.TestCase):
                 "name": "name",
                 "operation": "operation",
                 "uuid": "1",
+                "alarm_status": "ok",
+                "extra_labels": {},
             },
         )