ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
test(api): assert correlated error contract
Juan Denis773232dd8b9c
diff --git a/backend/tests/test_error_logs.py b/backend/tests/test_error_logs.pyindex 12034749..547cd5ae 100644--- a/backend/tests/test_error_logs.py+++ b/backend/tests/test_error_logs.py@@ -184,7 +184,13 @@ def test_500_handler_records_error_and_keeps_response(client, app):res = client.get('/api/v1/__test_boom')assert res.status_code == 500- assert res.get_json() == {'error': 'Internal server error'}+ request_id = res.headers['X-Request-ID']+ assert res.get_json() == {+ 'error': 'Internal server error',+ 'status': 500,+ 'code': 'internal_error',+ 'request_id': request_id,+ }entry = ErrorLog.query.filter_by(source='backend').first()assert entry is not None