jail2ban/tests/test_ping.py

16 lines
335 B
Python
Raw Permalink Normal View History

2024-07-31 16:30:43 +02:00
'''
Test application health check
'''
def test_ping(client, valid_credentials):
2023-01-13 09:30:03 +00:00
'''
Test application health check
'''
response = client.get("/ping",
headers={"Authorization":
"Basic " + valid_credentials})
assert response.json['operation'] == 'ping'