mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
83bd9c5ce3
Based on cameldev's work, introduce basic tests to ensure the health endpoint responds correctly.
22 lines
636 B
Python
22 lines
636 B
Python
"""Integration tests for the health check endpoints."""
|
|
|
|
|
|
class TestHeartbeat:
|
|
"""Tests for the /__heartbeat__ endpoint."""
|
|
|
|
def test_returns_200(self, client):
|
|
"""The heartbeat endpoint responds with 200 OK without a token."""
|
|
response = client.get("/__heartbeat__")
|
|
|
|
assert response.status_code == 200
|
|
|
|
|
|
class TestLBHeartbeat:
|
|
"""Tests for the /__lbheartbeat__ endpoint."""
|
|
|
|
def test_returns_200(self, client):
|
|
"""The load-balancer heartbeat endpoint responds with 200 OK without a token."""
|
|
response = client.get("/__lbheartbeat__")
|
|
|
|
assert response.status_code == 200
|