Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerta matches fix #1068

Merged
merged 5 commits into from
Jan 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the alerta_test.py to send a list too
  • Loading branch information
costevens committed Dec 29, 2022
commit 1ffe85cf02240a7eab8fb7bd7c29ed0dc398f5a1
4 changes: 2 additions & 2 deletions tests/alerters/alerta_test.py
Original file line number Diff line number Diff line change
@@ -883,11 +883,11 @@ def test_get_json_payload_error():
'alert': 'alerta',
'query_key': 'hostname'
}
match = {
match = [{
'@timestamp': '2014-10-10T00:00:00',
'sender_ip': '1.1.1.1',
'hostname': 'aProbe'
}
}]
rules_loader = FileRulesLoader({})
rules_loader.load_modules(rule)
alert = AlertaAlerter(rule)