oncall-engine/engine/apps/api/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
test_alert_group.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
test_alert_receive_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_receive_channel_template.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
test_channel_filter.py Fix channel filter updates when there are multiple backends 2022-09-02 14:26:47 -03:00
test_custom_button.py Allow non-JSON custom webhook templates, provided they render as valid JSON (#639) 2022-10-19 12:32:21 +01:00
test_escalation_chain.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_escalation_policy.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_features.py Add web_schedules feature flag 2022-09-02 15:37:33 -03:00
test_gitops.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_integration_heartbeat.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_live_settings.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_maintenance.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_oncall_shift.py Schedules alpha fixes (#541) 2022-09-21 11:19:59 +01:00
test_organization.py Remove unused messaging backends feature flag 2022-06-10 11:09:05 -03:00
test_postmortem_messages.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_preview_template_options.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_route_regex_debugger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_schedule_export.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_schedules.py Clear users cache before schedule tests logic/asserts 2022-10-03 15:00:23 -03:00
test_set_general_log_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_slack_channels.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_slack_team_settings.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_subscription.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_team.py Add tests for wrong team for user 2022-09-16 11:53:47 +03:00
test_telegram_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_terraform_renderer.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_user.py Add hiding personal phone numbers (#411) 2022-09-09 12:42:40 +05:00
test_user_groups.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_user_notification_policy.py Remove unused messaging backends feature flag 2022-06-10 11:09:05 -03:00
test_user_schedule_export.py World, meet OnCall! 2022-06-03 08:09:47 -06:00