Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(codex-llm-proxy): pin upstream 402/403 mapping (#720)
Alfredo Lopeze6cf49fc6e63
diff --git a/codex-llm-proxy/test/codexTransport.conformance.test.ts b/codex-llm-proxy/test/codexTransport.conformance.test.tsindex b1c76857e..b9d92397f 100644--- a/codex-llm-proxy/test/codexTransport.conformance.test.ts+++ b/codex-llm-proxy/test/codexTransport.conformance.test.ts@@ -1643,7 +1643,7 @@ describe('streamCodexCompletion', () => {// G1-3 (#720): the same request gets the same 4xx every time, so it is not// an outage to retry or fail over from.- it.each([404, 409, 422])(+ it.each([402, 404, 409, 422])('G1-3a maps an unmapped upstream %i to upstream_rejected',async (status) => {const err = await streamWith(() => new Response('rejected', { status })).pending.catch(@@ -1662,6 +1662,17 @@ describe('streamCodexCompletion', () => {).rejects.toMatchObject({ code: 'provider_unavailable' })})++ // A Codex 401 or 403 is a credential refusal, checked before the+ // upstream_rejected arm; narrowing that rule would make a 403 terminal.+ it.each([401, 403])(+ 'G1-3c keeps an upstream %i as connection_unavailable',+ async (status) => {+ await expect(+ streamWith(() => new Response('denied', { status })).pending+ ).rejects.toMatchObject({ code: 'connection_unavailable' })+ }+ )})it('emits a tool call only after argument deltas complete', async () => {