mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 03:15:40 +00:00
add a healthcheck for load balancers
This commit is contained in:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user