Orchestrata Ultimate › Tests › Reference › postman › test_health
Tests reference — tests/postman/test_health.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_health.py
source · 33 tests · 572 lines
Tests for Postman health checks.
Covers: postman.health
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_client |
44 | Create TestClient for health endpoints. |
| function | test_check_redis_healthy |
54 | Test Redis health check with healthy connection. |
| function | test_check_redis_handles_connection_errors |
74 | Test Redis health check handles connection errors gracefully. |
| function | test_check_redis_timeout |
103 | Test Redis health check handles timeouts. |
| function | test_check_graph_healthy |
134 | Test graph health check with healthy connection. |
| function | test_check_graph_handles_connection_errors |
154 | Test graph health check handles connection errors gracefully. |
| function | test_check_graph_auth_failure |
178 | Test graph health check handles authentication failures. |
| function | test_get_overall_status_structure |
203 | Test get_overall_status returns correct structure. |
| function | test_get_overall_status_checks_redis_and_graph |
222 | Test get_overall_status includes both Redis and graph checks. |
| function | test_get_overall_status_aggregates_healthy |
231 | Test overall status aggregation logic with real health checks. |
| function | test_get_overall_status_aggregates_unhealthy |
250 | Test overall status returns proper structure with real checks. |
| function | test_get_overall_status_aggregates_degraded |
267 | Test overall status returns valid states with real checks. |
| function | test_create_health_router_returns_api_router |
287 | Test create_health_router returns APIRouter instance. |
| function | test_create_health_router_has_health_prefix |
296 | Test router has /health prefix. |
| function | test_create_health_router_has_health_tag |
303 | Test router has health tag. |
| function | test_get_health_router_returns_router |
310 | Test get_health_router returns router. |
| function | test_live_endpoint_returns_200 |
325 | Test /health/live returns 200 OK. |
| function | test_live_endpoint_structure |
332 | Test /health/live returns correct structure. |
| function | test_live_endpoint_always_succeeds |
346 | Test /health/live always returns alive status. |
| function | test_ready_endpoint_returns_valid_status |
360 | Test /health/ready returns valid status code. |
| function | test_ready_endpoint_structure |
368 | Test /health/ready returns correct structure. |
| function | test_ready_endpoint_includes_checks |
390 | Test /health/ready includes service checks when healthy. |
| function | test_ready_endpoint_fails_on_unhealthy |
411 | Test /health/ready endpoint response structure. |
| function | test_checks_endpoint_returns_200 |
428 | Test /health/checks returns 200 OK. |
| function | test_checks_endpoint_structure |
435 | Test /health/checks returns correct structure. |
| function | test_checks_endpoint_lists_available_checks |
449 | Test /health/checks lists available health checks. |
| function | test_health_checker_concurrent_checks |
466 | Test HealthChecker handles concurrent health checks. |
| function | test_router_all_endpoints_accessible |
480 | Test all health endpoints are accessible. |
| function | test_health_check_performance |
490 | Test health checks complete in reasonable time. |
| function | test_multiple_router_instances_independent |
503 | Test multiple router instances are independent. |
| function | test_health_check_with_rapid_service_changes |
521 | Test health checker handles rapid successive checks without errors. |
| function | test_ready_endpoint_consistent_with_checks |
536 | Test /ready endpoint status matches /checks availability. |
| function | test_individual_checks_isolation |
550 | Test individual health checks are isolated from each other. |