zulip/zproject
Alex Vandiver 5ee4b642ad views: Add a /health healthcheck endpoint.
This endpoint verifies that the services that Zulip needs to function
are running, and Django can talk to them.  It is designed to be used
as a readiness probe[^1] for Zulip, either by Kubernetes, or some other
reverse-proxy load-balancer in front of Zulip.  Because of this, it
limits access to only localhost and the IP addresses of configured
reverse proxies.

Tests are limited because we cannot stop running services (which would
impact other concurrent tests) and there would be extremely limited
utility to mocking the very specific methods we're calling to raising
the exceptions that we're looking for.

[^1]: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
2023-09-20 09:53:59 -07:00
..
jinja2 jinja2: Make sure that 500 pages have support_email set. 2023-04-12 16:41:07 -07:00
__init__.py
backends.py ruff: Fix RUF015 Prefer `next(...)` over single element slice. 2023-07-23 15:20:53 -07:00
computed_settings.py mypy: Remove no_implicit_reexport override. 2023-09-08 16:46:44 -07:00
config.py coverage: Clean up coverage configuration. 2023-05-31 13:53:04 -07:00
configured_settings.py coverage: Clean up coverage configuration. 2023-05-31 13:53:04 -07:00
default_settings.py typing: Add typing constants to the post register api response. 2023-08-23 16:36:44 -07:00
dev_settings.py dev_settings: Remove `THUMBNAIL_IMAGES` from test_extra_settings. 2023-06-12 16:26:55 -07:00
dev_urls.py transaction_tests: Remove testing URL. 2023-09-06 09:13:02 -07:00
email_backends.py email: Replace `uri` with `url` in templates and backend. 2023-04-26 16:37:16 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py uploads: Allow uploads to set storage class. 2023-07-19 16:19:34 -07:00
sentry.py sentry: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py saml: Rework SP-initiated logout config to support IdP-level config. 2023-05-23 13:01:15 -07:00
template_loaders.py template_loaders: Extract TwoFactorLoader to new module. 2022-09-26 12:42:36 -07:00
test_extra_settings.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
test_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
urls.py views: Add a /health healthcheck endpoint. 2023-09-20 09:53:59 -07:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00