Notification handler unit tests do not test event types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Won't Fix
|
Undecided
|
Rohit Jaiswal |
Bug Description
Unit tests for the notification handlers just test the part which emits the sample but not the event_types regex. The regex is instrumental in routing the notification to a plugin handler and should be unit tested.
Probably, use something similar to this -
def _get_match_
handler = notification_
return event_filter.
def test_role_
self.
Probably need to add something similar to above for all applicable notification handlers.