We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChiragPatankar/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_health.py•964 B
"""
Integration tests for health check endpoints.
"""
import pytest
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_live():
"""Test liveness probe endpoint."""
response = client.get("/health/live")
assert response.status_code == 200
data = response.json()
assert data["status"] == "alive"
def test_health_ready():
"""Test readiness probe endpoint."""
response = client.get("/health/ready")
# Should return 200 if all dependencies are available
# or 503 if not ready
assert response.status_code in [200, 503]
data = response.json()
assert "status" in data
assert "checks" in data
assert isinstance(data["checks"], dict)
def test_health_main():
"""Test main health endpoint."""
response = client.get("/health")
assert response.status_code == 200
data = response.json()
assert "status" in data
assert "version" in data