From 5d84a8fa7a1f373c1241ded2f05676dc226afbe8 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sun, 31 May 2026 19:33:24 -0300 Subject: [PATCH] test(quota): combo protection guard matches qtSd/ prefix --- tests/unit/combos-quota-protected.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/combos-quota-protected.test.ts b/tests/unit/combos-quota-protected.test.ts index b9dd5c7f99..6c1776a86d 100644 --- a/tests/unit/combos-quota-protected.test.ts +++ b/tests/unit/combos-quota-protected.test.ts @@ -42,9 +42,9 @@ test.after(() => { // ---- quota-protected combos ---- -test("DELETE /api/combos/[id] returns 409 for a quotaShared-* combo and does NOT delete it", async () => { +test("DELETE /api/combos/[id] returns 409 for a qtSd/* combo and does NOT delete it", async () => { const combo = await combosDb.createCombo({ - name: "quotaShared-mypool-openai/gpt-4o", + name: "qtSd/groupdemo/openai/gpt-4o", strategy: "priority", models: [{ provider: "openai", model: "gpt-4o" }], isHidden: true, @@ -67,16 +67,16 @@ test("DELETE /api/combos/[id] returns 409 for a quotaShared-* combo and does NOT assert.ok(still, "Quota combo must still exist after rejected DELETE"); }); -test("PUT /api/combos/[id] returns 409 for a quotaShared-* combo and does NOT mutate it", async () => { +test("PUT /api/combos/[id] returns 409 for a qtSd/* combo and does NOT mutate it", async () => { const combo = await combosDb.createCombo({ - name: "quotaShared-mypool-openai/gpt-4o", + name: "qtSd/groupdemo/openai/gpt-4o", strategy: "priority", models: [{ provider: "openai", model: "gpt-4o" }], isHidden: true, }); const response = await comboRoute.PUT( - makePutRequest(combo.id, { name: "quotaShared-mypool-openai/gpt-4o", strategy: "random" }), + makePutRequest(combo.id, { name: "qtSd/groupdemo/openai/gpt-4o", strategy: "random" }), { params: Promise.resolve({ id: combo.id }) } );