aodh/ceilometer/tests/alarm
ZhiQiang Fan f88f6863ea Catch exception when evaluate single alarm
Currently, if we raise exception when evaluate alarms, the outside
method will not catch it, so the higher _evaluate_assigned_alarms
catches it, but this will stop evaluating the rest alarms. Alarm
should be evaluated no matter whether other alarms succeed or not.

This patch adds a try...except block in _evaluate_alarm, it will
log exception when it is raised, and the higher method can move
on next alarm.

Change-Id: Id95865c51dc4ffe2d7089a3ff4fa5b73bd93ae76
Closes-Bug: #1408620
2015-01-08 20:59:28 +08:00
..
evaluator Merge "Fix order of arguments in assertEqual" 2014-11-26 00:33:03 +00:00
partition Correct alarm timestamp field in unittest code 2014-11-07 11:02:39 +08:00
__init__.py Move tests into ceilometer module 2013-11-13 15:32:31 +01:00
test_alarm_svc.py Catch exception when evaluate single alarm 2015-01-08 20:59:28 +08:00
test_notifier.py Switch to oslo.context library 2014-12-19 12:49:56 +03:00
test_partitioned_alarm_svc.py Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
test_rpc.py Add alarm_name field to alarm notification 2014-12-05 10:04:17 +08:00
test_singleton_alarm_svc.py Catch exception when evaluate single alarm 2015-01-08 20:59:28 +08:00