The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(e2e): skip view-backed global spend probes pending LIT-5211
Yuneng Jiange56a6cadc62f
diff --git a/tests/e2e/quota_management/spend_tracking/test_spend_routes.py b/tests/e2e/quota_management/spend_tracking/test_spend_routes.pyindex 9b4eaefae34..8cb3e3927f0 100644--- a/tests/e2e/quota_management/spend_tracking/test_spend_routes.py+++ b/tests/e2e/quota_management/spend_tracking/test_spend_routes.py@@ -72,6 +72,24 @@ SPEND_ROUTES = (_SPEND_PREFIXES = ("/spend", "/global/spend", "/global/activity")+_MISSING_VIEW_SKIP = pytest.mark.skip(+ reason=(+ "LIT-5211: on a fresh database the proxy's startup view creation can lose the race "+ "against schema migrations, leaving MonthlyGlobalSpend/DailyTagSpend/Last30d* views "+ "missing and these routes 500ing until the views exist"+ )+)++_VIEW_BACKED_ROUTES = frozenset(+ (+ "/global/spend",+ "/global/spend/keys",+ "/global/spend/models",+ "/global/spend/tags",+ "/global/spend/logs",+ )+)+def _date_range() -> DateRangeParams:# Satisfies date-required endpoints (report/activity/provider); ignored elsewhere.@@ -80,7 +98,13 @@ def _date_range() -> DateRangeParams:return DateRangeParams(start_date=start.isoformat(), end_date=end.isoformat())[email protected]("route", SPEND_ROUTES)+ "route",+ tuple(+ pytest.param(route, marks=_MISSING_VIEW_SKIP) if route in _VIEW_BACKED_ROUTES else route+ for route in SPEND_ROUTES+ ),+)def test_spend_route_responsive(client: SpendClient, route: str) -> None:result = client.probe(route, params=_date_range())print(f"{route} -> {result.status_code}\n{result.body[:600]}")