diff --git a/integration-tests/json-output.test.ts b/integration-tests/json-output.test.ts index 7a65a651..cb85f183 100644 --- a/integration-tests/json-output.test.ts +++ b/integration-tests/json-output.test.ts @@ -36,10 +36,10 @@ describe('JSON output', () => { }); it('should return a JSON error for enforced auth mismatch before running', async () => { - process.env['GOOGLE_GENAI_USE_GCA'] = 'true'; + process.env['QWEN_OAUTH'] = 'true'; await rig.setup('json-output-auth-mismatch', { settings: { - security: { auth: { enforcedType: 'gemini-api-key' } }, + security: { auth: { enforcedType: 'openai' } }, }, }); @@ -50,7 +50,7 @@ describe('JSON output', () => { } catch (e) { thrown = e as Error; } finally { - delete process.env['GOOGLE_GENAI_USE_GCA']; + delete process.env['QWEN_OAUTH']; } expect(thrown).toBeDefined(); @@ -79,11 +79,7 @@ describe('JSON output', () => { expect(payload.error).toBeDefined(); expect(payload.error.type).toBe('Error'); expect(payload.error.code).toBe(1); - expect(payload.error.message).toContain( - 'configured auth type is gemini-api-key', - ); - expect(payload.error.message).toContain( - 'current auth type is oauth-personal', - ); + expect(payload.error.message).toContain('configured auth type is openai'); + expect(payload.error.message).toContain('current auth type is qwen-oauth'); }); }); diff --git a/integration-tests/test-helper.ts b/integration-tests/test-helper.ts index e5660b85..a1eb15c8 100644 --- a/integration-tests/test-helper.ts +++ b/integration-tests/test-helper.ts @@ -9,7 +9,6 @@ import { mkdirSync, writeFileSync, readFileSync } from 'node:fs'; import { join, dirname } from 'node:path'; import { fileURLToPath } from 'node:url'; import { env } from 'node:process'; -import { DEFAULT_QWEN_MODEL } from '../packages/core/src/config/models.js'; import fs from 'node:fs'; import { EOL } from 'node:os'; import * as pty from '@lydell/node-pty'; @@ -182,7 +181,6 @@ export class TestRig { otlpEndpoint: '', outfile: telemetryPath, }, - model: DEFAULT_QWEN_MODEL, sandbox: env.GEMINI_SANDBOX !== 'false' ? env.GEMINI_SANDBOX : false, ...options.settings, // Allow tests to override/add settings };