6 Commits

Author SHA1 Message Date
Sean McGinnis
db7377f476 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I380f25044c8f7b496d485aabf09215468f955818
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-23 10:29:22 +00:00
Tomasz Trębski
e1a9b9a96a Integrate with oslo.conf and oslo.log
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
2017-10-20 09:32:11 +02:00
Michael James Hoppal
063c4f1d1d Query database to see if the periodic notificiation changes
Also added notification id to notification object we construct in the
alarm processor

Change-Id: I6ccfffc9102bec8f670df13268e244cb0c998950
2016-08-29 15:11:20 -06:00
bklei
f333f92709 Support dynamic mysql port via config file
This is necessary in some installations to specify a non-default
mysql port (something other than 3306).  All of the other monasca
packages allow overriding this in the config file, this change
brings monasca-notification inline with the others.

Change-Id: Ibe6ffca9e5adb13e44594531358e2a8e5da46b9d
2016-03-02 09:06:24 -07:00
Michal Zielonka
94f5bdbd62 Migrate from MysqlDB to pymysql
Change-Id: I61b7a35badaa4a3480a1c786152b07c17a99bf80
2015-12-16 09:51:28 +01:00
Joe Keen
82ae201cc4 Fixed mysql reconnect on error
Change-Id: I4bb502b295ee9f5d748bb11eadeae7392235981c
2015-08-21 14:37:53 -06:00