add a healthcheck for load balancers

This commit is contained in:
Thomas Steinert
2023-04-05 16:59:47 +02:00
parent d0cb88a19e
commit bf8db5d151
3 changed files with 29 additions and 0 deletions

View File

@@ -171,3 +171,7 @@ class BotTest(unittest.IsolatedAsyncioTestCase):
bot_req({"body": "Re"}, KEY, room.room_id),
{"status": 200, "ret": "OK"},
)
async def test_healthcheck(self):
"""Check the healthcheck endpoint returns 200."""
self.assertEqual(bot_req(room_id="health"), {"status": 200, "ret": "OK"})