From 8ef3d4a13dbeac2c4c099f8ec1bdb4f0e17e3387 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Thu, 2 Jul 2026 17:35:42 -0300 Subject: [PATCH] =?UTF-8?q?test(providers):=20update=20APIKEY=20count=2015?= =?UTF-8?q?8=E2=86=92159=20+=20golden=20snapshot=20for=20clinepass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the clinepass provider bumps APIKEY_PROVIDERS to 159 and adds a translate-path golden entry; update both to match (mechanical count/snapshot sync, no behavior change). --- tests/snapshots/provider/translate-path.json | 29 ++++++++++++++++++++ tests/unit/providers-constants-split.test.ts | 10 +++---- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/tests/snapshots/provider/translate-path.json b/tests/snapshots/provider/translate-path.json index 3dfce0ca56..f64cee4d49 100644 --- a/tests/snapshots/provider/translate-path.json +++ b/tests/snapshots/provider/translate-path.json @@ -772,6 +772,35 @@ "stream": "https://api.cline.bot/api/v1/chat/completions" } }, + "clinepass": { + "format": "openai", + "headers": { + "apiKey": { + "Accept": "text/event-stream", + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + }, + "nonStream": { + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + }, + "oauth": { + "Accept": "text/event-stream", + "Authorization": "Bearer ", + "Content-Type": "application/json", + "HTTP-Referer": "https://cline.bot", + "X-Title": "Cline" + } + }, + "url": { + "nonStream": "https://api.cline.bot/api/v1/chat/completions", + "stream": "https://api.cline.bot/api/v1/chat/completions" + } + }, "cloudflare-ai": { "format": "openai", "headers": { diff --git a/tests/unit/providers-constants-split.test.ts b/tests/unit/providers-constants-split.test.ts index eb4e425673..601d03f72e 100644 --- a/tests/unit/providers-constants-split.test.ts +++ b/tests/unit/providers-constants-split.test.ts @@ -31,12 +31,12 @@ test("barrel still exports every catalog + key helpers", () => { } }); -test("APIKEY_PROVIDERS merges the 6 family files into 158 entries (no loss / no dup)", async () => { +test("APIKEY_PROVIDERS merges the 6 family files into 159 entries (no loss / no dup)", async () => { const keys = Object.keys((P as Record).APIKEY_PROVIDERS); - assert.equal(keys.length, 158); - assert.equal(new Set(keys).size, 158, "duplicate keys after spread-merge"); + assert.equal(keys.length, 159); + assert.equal(new Set(keys).size, 159, "duplicate keys after spread-merge"); // the merged object's entry-count equals the sum of the 6 semantic family files; families are a - // strict partition (every provider in exactly one), so the sum must be exactly 158. + // strict partition (every provider in exactly one), so the sum must be exactly 159. const families: [string, string][] = [ ["gateways", "APIKEY_PROVIDERS_GATEWAYS"], ["frontier-labs", "APIKEY_PROVIDERS_FRONTIER"], @@ -56,7 +56,7 @@ test("APIKEY_PROVIDERS merges the 6 family files into 158 entries (no loss / no seen.add(k); } } - assert.equal(famTotal, 158, "families must partition all 158 providers"); + assert.equal(famTotal, 159, "families must partition all 159 providers"); }); test("AI_PROVIDERS Proxy aggregates all sections; lookups resolve", () => {