oncall-engine/engine/apps/alerts/tests
Vadim Stepanov e67d3519fe
Restore email notifications (#621)
* remove email verification related code

* remove email verification related code

* remove sendgrid callback

* remove sendgrid related code

* remove sendgrid related code

* rename sendgrid app to email

* remove email from built-in channels

* remove email from built-in channels

* remove email from built-in channels

* add email backend: https://github.com/grafana/oncall/pull/50

* add email templater

* add email templater

* convert md to html

* add email settings to live settings

* use task to send email, handle some exceptions to create logs

* remove ERROR_NOTIFICATION_MAIL_DELIVERY_FAILED usage

* add email limit logic

* fix tests

* add docs

* remove old email templates

* remove old email templates

* add template_fields to messaging backend

* add messaging backends templates to public api

* add comment for deprecated fields

* fix test

* fix tests

* disable email by default

* don't retry on SMTPException and TimeoutError

* add tests

* bring email back to public api docs

* return ERROR_NOTIFICATION_MAIL_LIMIT_EXCEEDED

* make template_fields tuple

* build_subject_and_title -> build_subject_and_message

* add one more comment about template deprecation

* use 8 as backend id

* add comment about gaierror and BadHeaderError

* add comment on importing in notify_user_async

* edit oss docs
2022-10-19 12:32:56 +01:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_group_renderer.py Refactor integrations 2022-06-09 23:27:40 +03:00
test_alert_manager.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_receiver_channel.py Change slack URL to be built the same as other engine URLs (#280) 2022-07-22 10:02:00 -06:00
test_channel_filter.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
test_check_escalation_finished_task.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_custom_button.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_default_templates.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
test_escalation_chain.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_escalation_policy_snapshot.py Add rotation_start field to shifts public api endpoint, fix tests 2022-07-18 12:59:50 +03:00
test_escalation_snapshot.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_incident_log_builder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_maintenance.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
test_notify_ical_schedule_shift.py Update slack lookup days when checking for next shift 2022-09-30 12:25:51 -03:00
test_notify_user.py Merge dev to main (#54) 2022-06-13 16:39:58 -06:00
test_representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_silence.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_terraform_renderer.py Fix terraform render test to avoid intermittent fail 2022-07-28 10:16:43 -03:00
test_utils.py Fix outgoing webhook to resolve IP from parsed hostname 2022-09-22 14:35:37 -03:00
test_wipe.py World, meet OnCall! 2022-06-03 08:09:47 -06:00