X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_mon%2Ftests%2Funit%2Fcore%2Ftest_common_db_client.py;h=3ce117a347622cddc7262827f2ebcffc471fce90;hb=HEAD;hp=8ffc3d870f04202f4e52d29816bc492a70c42803;hpb=927a5845cb804605c28fa8079aba19515b72bbf3;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 8ffc3d8..7f0768d 100644 --- a/osm_mon/tests/unit/core/test_common_db_client.py +++ b/osm_mon/tests/unit/core/test_common_db_client.py @@ -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", "scale_out", {}, "ok") + 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) @@ -201,6 +212,7 @@ class CommonDbClientTest(unittest.TestCase): "operation": "operation", "uuid": "1", "alarm_status": "ok", + "extra_labels": {}, }, )