oncall-engine/engine/apps/api/tests
Vadim Stepanov 4c31ede558
Add "used in escalation" filter for schedules internal API (#1425)
# What this PR does
Adds a `used` filter on schedules endpoint for internal API.

Usage:
- `?used=true` returns schedules that are referenced by at least one
escalation policy
- `?used=false` returns schedules that are NOT referenced
- `?used=null` or not providing the query param at all will return all
schedules
## Which issue(s) this PR fixes
https://github.com/grafana/oncall/issues/1423

## Checklist

- [x] Tests updated
2023-03-01 10:09:07 +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 Show 100 latest alerts on alert group page (#1417) 2023-02-28 14:12:56 +00:00
test_alert_receive_channel.py Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
test_alert_receive_channel_template.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08: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 "used in escalation" filter for schedules internal API (#1425) 2023-03-01 10:09:07 +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 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