projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added LICENSE file to root folder
[osm/MON.git]
/
osm_mon
/
test
/
OpenStack
/
unit
/
test_notifier.py
diff --git
a/osm_mon/test/OpenStack/unit/test_notifier.py
b/osm_mon/test/OpenStack/unit/test_notifier.py
index
a135cec
..
e2695d4
100644
(file)
--- 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)
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):
@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)
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):
@mock.patch.object(DatabaseManager, "get_alarm")
def test_notify_alarm_invalid_alarm(
self, get_alarm, notify):