Erasing distinction between plugins that are an inherent part of the
notification engine and plugins that can be specified via the config file.
Fixing broken tests.
Story: 2003801
Task: 26532
Change-Id: I360cc2ad0782f209606706bf1869570fdae2260d
Change upgrades the monasca-notification to leverage
the capabilities of both oslo.log and oslo.conf:
- configuration of logging separated from application settings
- ability to enforce data types for application settings
- ability to use oslo.config-generator capabilities
- automatic configuration parsing done by oslo.cfg
That change will bring it closer to the rest of monasca
components where such transition has happened already.
However, in the rest of monasca, oslo.cfg was partially
or fully implemented whereas monasca-notification has
been relying on YAML based configuration file.
Therefore backward compatybility for such format will
be kept for now.
Story: 2000959
Task: 4093
Task: 4092
Change-Id: Ia75c3b60d0fada854178f21ca5ccb9e6a880f37f
We should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3* as well. And dict.items/keys will be more readable.
Change-Id: Ic532dc08e7712721e8be5eda83fc8fa2beb415e2
Remove plugins keyword from possible notifiers. Monasca notification
was throwing a warning: "No notifiers found for plugins" if
plugins section was defined in notification_types.
Change-Id: I7ccacba0624322bf912bbb088ed7c993ed32db02
Following commits migrates running
monasca-notification tests from nosetest
to ostestr, similar to other openstack projects.
Additionally, it enables calculating coverage
and py35 tests.
Extra:
* added debug environment with oslo_debug_helper
Change-Id: I555176b7f2ed54c3222312da341d433f429c5c6a
This patch
1. Supports for loading new notification types as plugins.
2) Adds new plugins for HipChat and Slack
3) Insert Notification types during startup
Partially-implements: blueprint notification-engine-plugin
Change-Id: I246ced3fe22a9797a3c8384f7bda166797cfac3a
Added more test coverage for email notifications.
Moved notification methods from notification_processor to new types directory.
types/interface.py now automatically records statsd information for configured
types.
Configuration for a type is now optional. Uncofigured types are not able to
send notifications. Notifications that come across for unconfigured types
generate a warning.
Email notification type now explicity exits when unable to connect to an SMTP
server.
Change-Id: I213d815965761736eb3680b5e14206ba7bef7e90