healthchecks/hc/api/tests
Pēteris Caune b2c5e91c70
Implement legacy -> canonical timezone conversion
There are three related changes:

* Removed legacy timezones from hc.lib.tz.all_timezones
* Added data migration to update existing Check.tz values
* For backwards compatibility, added code to automatically
  replace a legacy timezone with a canonical timezone when a
  legacy timezone is passed to an API call

I used the timezone mapping on
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2024-06-14 12:55:57 +03:00
..
__init__.py Improve type hints 2023-10-25 18:12:12 +03:00
test_admin.py Fix admin test 2023-09-11 11:41:52 +03:00
test_badge.py Improve type hints 2023-08-29 19:10:27 +03:00
test_bounces.py Improve type hints 2023-10-26 08:35:06 +03:00
test_channel_model.py Add Channel.opsgenie property 2023-09-11 16:44:38 +03:00
test_check_badge.py Add support for per-check status badges 2024-02-27 12:55:51 +02:00
test_check_going_down_after.py Improve type hints 2023-08-29 19:10:27 +03:00
test_check_model.py Update Check.prune() to also delete flip objects. 2024-04-11 12:56:28 +03:00
test_create_check.py Implement legacy -> canonical timezone conversion 2024-06-14 12:55:57 +03:00
test_delete_check.py Improve type hints 2023-08-29 19:10:27 +03:00
test_flip_model.py Add Channel.email property 2023-09-11 11:45:25 +03:00
test_get_badges.py Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
test_get_check.py Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
test_get_flips.py Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
test_get_ping_body.py Improve type hints 2023-08-29 19:10:27 +03:00
test_get_pings.py Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
test_list_channels.py Fix type annotations in tests to use _MonkeyPatchedWSGIResponse 2023-08-29 22:35:51 +03:00
test_list_checks.py Fix type warnings 2023-09-03 09:29:44 +03:00
test_metrics.py Improve type hints 2023-08-29 19:10:27 +03:00
test_notification_status.py Improve type hints 2023-08-29 19:10:27 +03:00
test_notify.py Fix the shell integration to use Flip.new_status 2024-04-12 14:10:34 +03:00
test_notify_apprise.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_call.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_discord.py Update the Discord integration to disable channel on HTTP 404 responses 2024-04-26 09:25:42 +03:00
test_notify_email.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_gotify.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_group.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_line.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_matrix.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_mattermost.py Update transport classes to use regular spaces instead of non-breaking 2024-04-17 16:35:43 +03:00
test_notify_msteams.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_ntfy.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_opsgenie.py Include ping's kind in Opsgenie notification's "Last ping" field 2024-04-19 12:19:26 +03:00
test_notify_pagertree.py Fix PagerTree integration to not disclose check's code in incident data 2024-04-22 12:46:18 +03:00
test_notify_pd.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_pushbullet.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_pushover.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_rocketchat.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_signal.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_slack.py Update the Discord integration to disable channel on HTTP 404 responses 2024-04-26 09:25:42 +03:00
test_notify_sms.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_spike.py Fix Spike integration to not disclose check's code in incident data 2024-04-22 13:01:38 +03:00
test_notify_telegram.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_trello.py Fix integrations to include oncalendar schedules in notifications 2024-04-24 16:08:55 +03:00
test_notify_victorops.py Fix VictorOps integration to not disclose check's code in incident data 2024-04-22 12:57:10 +03:00
test_notify_webhook.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_whatsapp.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_notify_zulip.py Update transport classes to use Transport.last_ping() consistently 2024-04-15 15:09:17 +03:00
test_pause.py Improve type hints 2023-08-29 19:10:27 +03:00
test_ping.py Fix type warnings 2023-09-02 17:19:31 +03:00
test_ping_by_slug.py Fix type warnings 2023-09-02 17:19:31 +03:00
test_ping_model.py Improve type hints 2023-08-29 19:10:27 +03:00
test_prunenotifications.py Improve type hints 2023-08-29 19:10:27 +03:00
test_resume.py Improve type hints 2023-08-29 19:10:27 +03:00
test_sendalerts.py Change Channel.notify() signature to take Flip object as an argument 2024-04-12 13:54:16 +03:00
test_sendreports.py Fix type warnings 2023-09-03 09:04:38 +03:00
test_smtpd.py Fix mypy warnings 2023-10-18 16:33:15 +03:00
test_status.py Improve type hints 2023-08-29 19:10:27 +03:00
test_system_checks.py Add a system check which warns about missing SMTP credentials 2023-12-19 14:47:12 +02:00
test_tokenbucket.py Improve type hints 2023-08-29 19:10:27 +03:00
test_update_check.py Add API support for OnCalendar schedules 2023-12-07 14:03:35 +02:00