oncall-engine/engine/apps/api/tests
Michael Derynck 3582f9b08f
Improve Jinja Template feedback and error handling (#884)
* Improve feedback so template errors are given to user

* Add security error logging

* Add limits for templates, payloads, results

* Show popup error notification for webhook errors and template errors that don't have a result

* Update tests

* Split exceptions into warnings/errors to give more control when previewing, rendering, saving templates

* Limit title lengths

* Make TypeError a warning

* Adjust title length limit

* Remove length limiting on urlize since it is being done on template render

* Fix tests

* Add KeyError and ValueError to warnings

* No longer enforcing json result when saving webhook in case it is dependent on payload

* Add tests for expected exceptions coming from apply_jinja_template

* Update changelog

* Send raw post if template result is not JSON
2022-11-28 09:46:51 -07: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 Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
test_alert_receive_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_receive_channel_template.py Fix saving source link template (#898) 2022-11-24 16:26:12 +08: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 Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07: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 Add support for daily/by-day and custom interval 2022-11-02 16:12:16 -03: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 Update schedules endpoint to filter by numeric type 2022-10-31 11:08:33 -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 internal API fields for the mobile app (#910) 2022-11-28 15:52:31 +00: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