From 08b6589712baf6e64d13e2b14084ad34eefb0e92 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Wed, 4 Feb 2026 09:53:02 -0600 Subject: [PATCH] test: add infrastructure integration tests for pypi_proxy --- backend/tests/integration/test_pypi_proxy.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/backend/tests/integration/test_pypi_proxy.py b/backend/tests/integration/test_pypi_proxy.py index 4bfdd4c..1354e42 100644 --- a/backend/tests/integration/test_pypi_proxy.py +++ b/backend/tests/integration/test_pypi_proxy.py @@ -135,3 +135,18 @@ class TestPyPIPackageNormalization: assert "text/html" in response.headers.get("content-type", "") elif response.status_code == 503: assert "No PyPI upstream sources configured" in response.json()["detail"] + + +class TestPyPIProxyInfrastructure: + """Tests for PyPI proxy infrastructure integration.""" + + @pytest.mark.integration + def test_health_endpoint_includes_infrastructure(self, integration_client): + """Health endpoint should report infrastructure status.""" + response = integration_client.get("/health") + assert response.status_code == 200 + + data = response.json() + assert data["status"] == "healthy" + # Infrastructure status may include these if implemented + # assert "infrastructure" in data