From 1a973a221b92280f404d79dd3418671738982302 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Fri, 30 Oct 2026 17:51:02 -0700 Subject: [PATCH] test(prometheus): expect no deployment metrics for blocked and missing key rejections Since #48613 a blocked or missing key is rejected with a typed 401, so Prometheus skips it on the deployment metrics like an invalid or expired key, and only the proxy-level failure counters record it --- .../observability/test_prometheus_provider_auth_failure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/observability/test_prometheus_provider_auth_failure.py b/tests/integration/observability/test_prometheus_provider_auth_failure.py index 13d264ca6b0..df6b25dfa74 100644 --- a/tests/integration/observability/test_prometheus_provider_auth_failure.py +++ b/tests/integration/observability/test_prometheus_provider_auth_failure.py @@ -995,7 +995,7 @@ def _gated(gateway: Gateway, cell: str, key: str | None) -> httpx.Response: def recorded_before(cell: str) -> list[tuple[str, str, str, float]]: - if cell in ("invalid-key", "expired-key"): + if cell != "no-model-access": return [] return sorted([(FAILURES, "", "", 1.0), (TOTALS, "", "", 1.0), (LLM_FAILED, identity(cell), "", 1.0)])