X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_mon%2Ftest%2FOpenStack%2Funit%2Ftest_notifier.py;fp=osm_mon%2Ftest%2FOpenStack%2Funit%2Ftest_notifier.py;h=e2695d4d23c094f67764cd116fd60ecb287c29d2;hb=6418f698822467c91e6685647297f3f606e00809;hp=a135cec119aa25d117f567bedc9d18ea7766922e;hpb=cae650341754311d90bc7c7a0321787b6c0e315a;p=osm%2FMON.git diff --git a/osm_mon/test/OpenStack/unit/test_notifier.py b/osm_mon/test/OpenStack/unit/test_notifier.py index a135cec..e2695d4 100644 --- a/osm_mon/test/OpenStack/unit/test_notifier.py +++ b/osm_mon/test/OpenStack/unit/test_notifier.py @@ -100,7 +100,7 @@ class TestNotifier(unittest.TestCase): set_head.assert_called_once() 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): @@ -116,7 +116,7 @@ class TestNotifier(unittest.TestCase): notify.assert_called_with("notify_alarm", mock.ANY) - @mock.patch.object(KafkaProducer, "notify_alarm") + @mock.patch.object(KafkaProducer, "publish_alarm_response") @mock.patch.object(DatabaseManager, "get_alarm") def test_notify_alarm_invalid_alarm( self, get_alarm, notify):