diff --git a/README.md b/README.md index 52caac7..3a09c6a 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,6 @@ Only the clients need a connection to this service on configured port. Redirect to `/-/readme`. -### `GET /status` (deprecated: use `/-/health`) - -Status endpoint, used for *healthcheck*. Shows also current version and commit hash. - ### `GET /-/health` Status endpoint, used for *healthcheck*. @@ -67,7 +63,7 @@ List current leases. Deletes an lease. -### `GET /client-token` (deprecated: use `/-/client-token`) +### `GET /-/client-token` Generate client token, (see [installation](#installation)). diff --git a/app/main.py b/app/main.py index 27dbfbf..3708ea5 100644 --- a/app/main.py +++ b/app/main.py @@ -69,11 +69,6 @@ async def index(): return RedirectResponse('/-/readme') -@app.get('/status', summary='* Status', description='returns current service status, version (incl. git-commit) and some variables.', deprecated=True) -async def status(): - return JSONResponse({'status': 'up', 'version': VERSION, 'commit': COMMIT, 'debug': DEBUG}) - - @app.get('/-/', summary='* Index') async def _index(): return RedirectResponse('/-/readme') @@ -228,11 +223,6 @@ async def _client_token(): return response -@app.get('/client-token', summary='* Client-Token', description='creates a new messenger token for this service instance', deprecated=True) -async def client_token(): - return RedirectResponse('/-/client-token') - - # venv/lib/python3.9/site-packages/nls_services_auth/test/test_origins_controller.py # {"candidate_origin_ref":"00112233-4455-6677-8899-aabbccddeeff","environment":{"fingerprint":{"mac_address_list":["ff:ff:ff:ff:ff:ff"]},"hostname":"my-hostname","ip_address_list":["192.168.178.123","fe80::","fe80::1%enp6s18"],"guest_driver_version":"510.85.02","os_platform":"Debian GNU/Linux 11 (bullseye) 11","os_version":"11 (bullseye)"},"registration_pending":false,"update_pending":false} @app.post('/auth/v1/origin', description='find or create an origin') diff --git a/test/main.py b/test/main.py index 8514e78..980fe9e 100644 --- a/test/main.py +++ b/test/main.py @@ -44,11 +44,6 @@ def test_index(): assert response.status_code == 200 -def test_status(): - response = client.get('/status') - assert response.status_code == 200 - assert response.json()['status'] == 'up' - def test_health(): response = client.get('/-/health') @@ -76,11 +71,6 @@ def test_client_token(): assert response.status_code == 200 -def test_client_token_deprecated(): - response = client.get('/client-token') - assert response.status_code == 200 - - def test_origins(): pass