oncall-engine/engine/apps/api/tests
Vadim Stepanov 3d7c044193
Fix Telegram ratelimit on live setting change (#2100)
# What this PR does

Fixes https://github.com/grafana/oncall/issues/1103, inspired by
https://github.com/grafana/oncall/pull/1934.

Makes sure that:
1. `LiveSettings.validate_settings` is only called once per update
request and not called for any individual LiveSetting instance save.
2. `telegram.Bot.set_webhook` is only called once per request when
changing `TELEGRAM_WEBHOOK_HOST`.


## Which issue(s) this PR fixes

https://github.com/grafana/oncall/issues/1103

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-06-06 15:18:12 +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 upgrade to python 3.11.3 (#1849) 2023-05-05 15:32:40 +00:00
test_alert_receive_channel.py Fix demo alert for inbound email (#2081) 2023-06-02 09:44:32 +00:00
test_alert_receive_channel_template.py Fix 500 on templates when slack or tg integration is disabled (#2064) 2023-05-31 08:22:58 +00:00
test_channel_filter.py Better english (#1959) 2023-06-01 12:37:37 +00:00
test_custom_button.py use CustomURLValidator in custom_button (#1398) 2023-03-23 12:21:17 +00:00
test_escalation_chain.py Allow changing team for escalation chains (#1658) 2023-03-30 10:43:00 +01:00
test_escalation_policy.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
test_features.py remove mobile app feature flag (#1484) 2023-03-08 11:22:44 +01: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 Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
test_maintenance.py Fix teams filter related issue setting maintenance mode (#1885) 2023-05-05 18:09:25 +00:00
test_oncall_shift.py Add support to update web schedule rotations in-place (#2102) 2023-06-05 17:24:59 +00: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 public API endpoint to export schedule final shifts (#2047) 2023-06-05 14:06:10 +00: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 Fix team update (#1794) 2023-04-19 15:22:14 +00: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 Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00: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
test_webhooks.py Webhooks 2 hide secrets (#2104) 2023-06-06 07:59:12 +00:00