From ba07390948ff680e95b7cf9e165aef4692adc4b9 Mon Sep 17 00:00:00 2001 From: yuneng Date: Wed, 23 Sep 2026 14:58:50 +0000 Subject: [PATCH] test(integration): pin the ungranted-key llm endpoint status to 200 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/mcp/test_mcp_llm_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/mcp/test_mcp_llm_endpoints.py b/tests/integration/mcp/test_mcp_llm_endpoints.py index 40d7c197066..3d3d337cab7 100644 --- a/tests/integration/mcp/test_mcp_llm_endpoints.py +++ b/tests/integration/mcp/test_mcp_llm_endpoints.py @@ -307,7 +307,7 @@ def test_ungranted_key_gets_no_gateway_tools_and_the_peer_is_never_reached(gatew assert _peer_add_calls(rig.peer) == (), "denied caller reached the peer" requests: Final = rig.upstream_tools() assert requests and all(rig.tool not in names for names in requests), requests - assert response.status_code in (200, 400, 401, 403), response.text + assert response.status_code == 200, response.text @pytest.mark.parametrize("surface", ("chat", "responses", "messages"))