From 1b2da802cb6af98a912cdb90b5965e74604d07fc Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 29 Dec 2022 10:37:47 +0100 Subject: [PATCH] added tests for new endpoints --- test/main.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/test/main.py b/test/main.py index 34903db..364c5b0 100644 --- a/test/main.py +++ b/test/main.py @@ -44,11 +44,43 @@ def test_status(): assert response.json()['status'] == 'up' +def test_health(): + response = client.get('/-/health') + assert response.status_code == 200 + assert response.json()['status'] == 'up' + + +def test_readme(): + response = client.get('/-/readme') + assert response.status_code == 200 + + +def test_manage(): + response = client.get('/-/manage') + assert response.status_code == 200 + + def test_client_token(): response = client.get('/client-token') assert response.status_code == 200 +def test_origins(): + pass + + +def test_origins_delete(): + pass + + +def test_leases(): + pass + + +def test_lease_delete(): + pass + + def test_auth_v1_origin(): payload = { "registration_pending": False,