From e420a971fa11b6f5c10b6427b4b1fed23172029b Mon Sep 17 00:00:00 2001 From: Neha Tarakad Date: Fri, 15 Nov 2024 15:19:26 -0800 Subject: [PATCH] fixing tests and endpoint --- .../unit/amazonqGumby/transformationResultsHandler.test.ts | 4 ++-- packages/core/src/codewhisperer/client/codewhisperer.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts b/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts index 7d63692fe46..d533eac5420 100644 --- a/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts +++ b/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts @@ -50,7 +50,7 @@ describe('DiffModel', function () { testDiffModel.patchFileNodes[0].patchFilePath, getTestResourceFilePath('resources/files/addedFile.diff') ) - assert(testDiffModel.patchFileNodes[0].label.endsWith(parsedTestDescriptions.content[0].name)) + assert(testDiffModel.patchFileNodes[0].label.includes(parsedTestDescriptions.content[0].name)) const change = testDiffModel.patchFileNodes[0].children[0] assert.strictEqual(change instanceof AddedChangeNode, true) @@ -81,7 +81,7 @@ describe('DiffModel', function () { testDiffModel.patchFileNodes[0].patchFilePath, getTestResourceFilePath('resources/files/modifiedFile.diff') ) - assert(testDiffModel.patchFileNodes[0].label.endsWith(parsedTestDescriptions.content[0].name)) + assert(testDiffModel.patchFileNodes[0].label.includes(parsedTestDescriptions.content[0].name)) const change = testDiffModel.patchFileNodes[0].children[0] assert.strictEqual(change instanceof ModifiedChangeNode, true) diff --git a/packages/core/src/codewhisperer/client/codewhisperer.ts b/packages/core/src/codewhisperer/client/codewhisperer.ts index 5043ad159f3..5104ef7ede0 100644 --- a/packages/core/src/codewhisperer/client/codewhisperer.ts +++ b/packages/core/src/codewhisperer/client/codewhisperer.ts @@ -32,7 +32,7 @@ export interface CodeWhispererConfig { export const defaultServiceConfig: CodeWhispererConfig = { region: 'us-east-1', - endpoint: 'https://rts.alpha-us-west-2.codewhisperer.ai.aws.dev/', + endpoint: 'https://codewhisperer.us-east-1.amazonaws.com/', } export function getCodewhispererConfig(): CodeWhispererConfig {