From: lavado Date: Fri, 6 Jul 2018 19:14:23 +0000 (+0200) Subject: Merge "[MON] Fixes notifier bug during alarm triggering" X-Git-Tag: BUILD_v4.0.1_1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6418f698822467c91e6685647297f3f606e00809;p=osm%2FMON.git Merge "[MON] Fixes notifier bug during alarm triggering" --- 6418f698822467c91e6685647297f3f606e00809 diff --cc osm_mon/test/OpenStack/unit/test_notifier.py index f0fbf55,a135cec..e2695d4 --- a/osm_mon/test/OpenStack/unit/test_notifier.py +++ b/osm_mon/test/OpenStack/unit/test_notifier.py @@@ -98,9 -98,9 +98,9 @@@ class TestNotifier(unittest.TestCase) self.handler.do_POST() set_head.assert_called_once() - notify.assert_called_with(json.dumps(post_data)) + notify.assert_called_with(post_data) - @mock.patch.object(KafkaProducer, "notify_alarm") + @mock.patch.object(KafkaProducer, "publish_alarm_response") @mock.patch.object(DatabaseManager, "get_alarm") def test_notify_alarm_valid_alarm( self, get_alarm, notify):