-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3832 - Hotfix: Change file naming convention of the SIN validation request file #3864
#3832 - Hotfix: Change file naming convention of the SIN validation request file #3864
Conversation
I'd also add the additional AC on this one for batch number @bidyashish |
Quality Gate passedIssues Measures |
@@ -35,7 +35,7 @@ export class SINValidationFileHeader implements FixedFormatFileLine { | |||
getFixedFormat(): string { | |||
const record = new StringBuilder(); | |||
record.append(this.recordTypeCode); | |||
record.appendWithStartFiller(this.batchNumber, 8, NUMBER_FILLER); | |||
record.appendWithStartFiller(this.batchNumber, 6, NUMBER_FILLER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
*AC
The expected file name is just BC####.OS in all environments.
ESDC_ENVIRONMENT_CODE
.Need to fix Invalid header format 0010000000120241023BC. There’s 8 characters, but should be 6 characters only.
https://github.com/bcgov/SIMS/blob/main/sources/packages/backend/libs/integrations/src/esdc-integration/sin-validation/sin-validation-files/sin-validation-file-header.ts#L38
*Note:
No E2E file changed PCSLP.PBC.BC0000.ISR
Current E2E test has correct header format
00100500220220921BC1
-> 20 CharacterSample Invalid header
0010000000120241023BC
-> 22 Character