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>
This commit is contained in:
yuneng 2026-09-23 14:58:50 +00:00
parent 400c7c83fb
commit ba07390948

View file

@ -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"))