16 Commits

Author SHA1 Message Date
Michal Zielonka
a82a49a1e8 Add configurable database setting (mysql, postgres, orm)
We used sqlalchemy.core for execute query for orm.
The configuration of db is based on monasca-api.
The default mode is mysql connection so we can use old configuration.

Change-Id: Iebb4d6dfca6d43298ced407178e7f9673a83a7ca
2015-08-04 22:34:57 +02:00
Maciej Maciaszek
28a686d7eb Add fix for local time bug
The test 'test_old_timestamp' was not able to pass in different
timezones due to hardcoded expected datetime

Change `test_alarm_processor.py` permissions

`test_alarm_processor.py` had different permissions than other test
files. While `unittest` module could collect tests in this file,
nosetests could't do it. Nose can collect tests in this file after
permissions change

Change-Id: I2b5791e7b352fbb0c05bc665b4000c412b63f1ef
2015-07-01 09:15:28 +02:00
Craig Bryant
c4b469c11d AlarmStateTransitionedEvent timestamp now in ms
This will ensure a unique timestamp. Influx V9 will only keep one
entry with the same timestamp

Some of the tests weren't using a numerica timestamp which caused
problems when the code tried to divide the timestamp by 1000

Change-Id: Ie0fefc61abe9a95503fa7611971a21ed2cb56224
2015-04-16 13:31:40 -06:00
Joe Keen
9f0e65028f Added retry engine to notification system
Change-Id: Iea1a05c1b7336b9e3e8aeb972e0f9ba1b7f74d69
2015-02-09 11:40:02 -07:00
Joe Keen
3eb169fac3 Notification engine refactored from many processes to one
Squished the notification down to one process in preparation for making
multiple engine instances able to talk to the same topic.

Added HA capabilities to the KafkaConsumer object.

Change-Id: Id4799d690c7caf10ae7ba89c2d4e0aeb76c54375
2015-01-30 11:59:57 -07:00
Steven Travis
ebc3c7fc89 Updated email notification
Change-Id: I7e8482b8c1f908ebe505a2f85eeca8397a12b9bf
2014-11-23 12:44:33 -07:00
Craig Bryant
eed5a4ad16 Changes for alarmed metrics
Use alarmDefintionId instead of alarmId to find the right notificaion.
Further changes are needed to complete this change.

Change-Id: I577559fd085261f01a36355095fa1c04a72fb9c9
2014-09-30 12:35:29 -06:00
Tim Kuhlman
e6e54c6576 Rename to monasca, setup for tox, removed legacy bits
Removed manual tests which are no longer valid with a modern mini-mon
Removed debian creation bits all distribution is with pypi now
Minor pep8 fixes

Change-Id: I1f2fc4d0ad6375f4c39446f9627247945066e4ad
2014-07-16 15:59:00 -06:00
Roland Hochmuth
78d7ce32d5 Added copyright header, LICENSE and HACKING.rst. 2014-05-01 12:27:06 -06:00
Tim Kuhlman
d481dd874c Fixed tests to match updated alarmtransition fields 2014-04-17 15:47:40 -06:00
Tim Kuhlman
a77fd0406d Added first notification processor test 2014-03-21 17:13:06 -06:00
Tim Kuhlman
bf33a2be6f pep8/flake8 formatting fixes 2014-03-21 14:21:37 -06:00
Tim Kuhlman
48b2cf7ee0 Fixed test on the build box.
The test worked fine on my box but on the build box would fail.
Switching the log entry to before the queue fixed it.
2014-03-21 14:16:23 -06:00
Tim Kuhlman
f2124a7e79 The build box is slow 2014-03-21 12:34:58 -06:00
Tim Kuhlman
e1c1ddc0be Added tests of the alarm processor. 2014-03-21 12:23:12 -06:00
Tim Kuhlman
8f87f819bf Initial test using mock with the multiprocess setup. 2014-03-21 10:04:51 -06:00