diff --git a/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/SshServiceMock.ts b/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/SshServiceMock.ts index be9580e667..9728851c31 100644 --- a/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/SshServiceMock.ts +++ b/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/SshServiceMock.ts @@ -4,10 +4,7 @@ import * as path from "path"; import { SshService } from "@sims/integrations/services"; import { FILE_DEFAULT_ENCODING } from "@sims/services/constants"; -const MOCKED_RESPONSE_FILES = [ - "CCRA_RESPONSE_ABCSL00001.TXT", - "CCRA_RESPONSE_ABCSL00002.TXT", -]; +const MOCKED_RESPONSE_FILES = ["ABCSA00001.TXT", "PBCSA00002.TXT"]; const SshServiceMock = new SshService(); diff --git a/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/CCRA_RESPONSE_ABCSL00001.TXT b/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/ABCSA00001.TXT similarity index 100% rename from sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/CCRA_RESPONSE_ABCSL00001.TXT rename to sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/ABCSA00001.TXT diff --git a/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/CCRA_RESPONSE_ABCSL00002.TXT b/sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/PBCSA00002.TXT similarity index 100% rename from sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/CCRA_RESPONSE_ABCSL00002.TXT rename to sources/packages/backend/libs/integrations/src/cra-integration/__mocks__/response-folder/PBCSA00002.TXT diff --git a/sources/packages/backend/libs/integrations/src/cra-integration/cra-income-verification.processing.service.ts b/sources/packages/backend/libs/integrations/src/cra-integration/cra-income-verification.processing.service.ts index 4524783b61..da35a49ff7 100644 --- a/sources/packages/backend/libs/integrations/src/cra-integration/cra-income-verification.processing.service.ts +++ b/sources/packages/backend/libs/integrations/src/cra-integration/cra-income-verification.processing.service.ts @@ -198,7 +198,10 @@ export class CRAIncomeVerificationProcessingService { async processResponses(): Promise { const remoteFilePaths = await this.craService.getResponseFilesFullPath( this.ftpResponseFolder, - /CCRA_RESPONSE_[\w]*\.txt/i, + new RegExp( + `${this.configService.craIntegration.environmentCode}BCSA\\d{5}\\.TXT`, + "i", + ), ); const processFiles: ProcessSftpResponseResult[] = []; for (const remoteFilePath of remoteFilePaths) {