oncall-engine/engine/apps/api/tests
Innokentii Konstantinov 26a2bd9c91
Refactor maintenance (#1340)
# What this PR does
This PR simplifies code of maintenance mode.
1. Perform distribution/escalation maintenance checks in send_signal...
tasks.
2. Use usual alert distribution flow for the maintenance incident.
3. Decouple maintenance mode from slack (all, except
**notify_about_maintenance_action** methods, I don't want to make this
PR too big)

As a bonus from these changes, maintenance mode now mute alert group
delivery in all chatops integrations, not only in slack. (Before,
incidents happened while maintenance were posted to telegram and msteams
anyway)

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
2023-02-23 07:13:03 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
test_alert_group.py Hide direct paging integrations (#1162) 2023-01-20 13:29:57 +00:00
test_alert_receive_channel.py Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
test_alert_receive_channel_template.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_channel_filter.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_custom_button.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_escalation_chain.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_escalation_policy.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_features.py Enable mobile app backend by default on OSS (#1286) 2023-02-03 12:44:22 +00:00
test_gitops.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_integration_heartbeat.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_live_settings.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_maintenance.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_oncall_shift.py Web schedules overrides are the higher priority level (#1115) 2023-01-13 08:58:35 -03:00
test_organization.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_paging.py Return alert group ID in direct paging API (#1241) 2023-01-30 11:48:25 +00:00
test_postmortem_messages.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_preview_template_options.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_public_api_tokens.py only grant admins read/write access to public api keys (#952) 2022-12-06 13:02:53 +01:00
test_route_regex_debugger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_schedule_export.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_schedules.py Add default slack channel info to direct paging dialog (#1263) 2023-02-01 10:03:54 -03:00
test_set_general_log_channel.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_slack_channels.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_slack_team_settings.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_subscription.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_team.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_telegram_channel.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_terraform_renderer.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_user.py Add Google reCAPTCHA for mobile app phone verification (#1373) 2023-02-21 20:17:06 +01:00
test_user_groups.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_user_notification_policy.py Allow messaging backends to be enabled/disabled per organization (#1151) 2023-01-18 15:52:25 +00:00
test_user_schedule_export.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00