0
0
Fork 0
mirror of https://github.com/alerta/alerta-contrib.git synced 2025-03-18 06:12:51 +00:00
Commit graph

6 commits

Author SHA1 Message Date
root
dfca8af1e5 fixed import name to alertaclient 2016-09-15 09:12:46 +00:00
Moises Silva
fbac2aec9f Fix alerta mailer routing bug causing mails to be sent to everyone
This bug was introduced during the json routing rules refactoring.

The global OPTIONS['mail_to'] setting was being modified instead of
using a copy causing every new alert notification to start with the
notification list from the previous notification instead of the
original global settings.

I've also updated the tests to be more resilient to internal
implementation changes and focus on testing the input/output of
the send_email() function. The function now returns the email
message sent and the list of contacts on success or None on failure.
2016-06-07 19:02:22 -04:00
Joao Mesquita
bc42d21173 Implement the ability to match against other attrs
Add the ability to match regex to list objects as well
2016-05-13 17:58:46 -03:00
Joao Mesquita
11e27137a2 Add exclude keyword to rules
By setting the exclude keyword, contacts will be cleared and replaced
with current rule's contact list.
2016-05-13 14:21:22 -03:00
Joao Mesquita
84719c4c48 Minor fixes to validation 2016-05-13 00:40:25 -03:00
Joao Mesquita
0c26ab5c8d Move email rules to more flexible JSON format
* alerta-mailer now has unit tests using py.test
* rules should be ported to new JSON format
2016-05-12 23:47:02 -03:00