Add ping endpoing

This commit is contained in:
Matthias
2019-11-11 20:09:58 +01:00
parent 904ae5af91
commit 75d5ff69ef
3 changed files with 21 additions and 1 deletions

View File

@@ -64,6 +64,10 @@ def test_api_not_found(botclient):
def test_api_unauthorized(botclient):
ftbot, client = botclient
rc = client.get(f"{BASE_URI}/ping")
assert_response(rc)
assert rc.json == {'status': 'pong'}
# Don't send user/pass information
rc = client.get(f"{BASE_URI}/version")
assert_response(rc, 401)