Skip to content

Commit

Permalink
Merge pull request #379 from govuk-one-login/KIWI-1638-ci-change
Browse files Browse the repository at this point in the history
KIWI-1638: Updates CI for DOC_NUMBER_INVALID
  • Loading branch information
Caitlin-cooling authored Mar 6, 2024
2 parents 8cb050f + a7c834e commit d24c219
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/services/GenerateVerifiableCredential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export class GenerateVerifiableCredential {
case "TAMPERED":
case "MISSING_HOLOGRAM":
case "NO_HOLOGRAM_MOVEMENT":
case "DOC_NUMBER_INVALID":
contraIndicator = "D14";
break;
case "EXPIRED_DOCUMENT":
Expand All @@ -172,9 +173,6 @@ export class GenerateVerifiableCredential {
case "FRAUD_LIST_MATCH":
contraIndicator = "F03";
break;
case "DOC_NUMBER_INVALID":
contraIndicator = "D02";
break;
case "DATA_MISMATCH":
case "CHIP_DATA_INTEGRITY_FAILED":
case "CHIP_SIGNATURE_VERIFICATION_FAILED":
Expand Down
2 changes: 1 addition & 1 deletion src/tests/data/vcValidationData.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"verificationScore": 0,
"checkMethod": null,
"failedCheck": "DOC_NUMBER_INVALID",
"ci": "D02"
"ci": "D14"
},
"s0123":{
"strengthScore": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ describe("GenerateVerifiableCredential", () => {
{ reason: "COUNTERFEIT", contraIndicator: ["D14"] },
{ reason: "EXPIRED_DOCUMENT", contraIndicator: ["D16"] },
{ reason: "FRAUD_LIST_MATCH", contraIndicator: ["F03"] },
{ reason: "DOC_NUMBER_INVALID", contraIndicator: ["D02"] },
{ reason: "DOC_NUMBER_INVALID", contraIndicator: ["D14"] },
{ reason: "TAMPERED", contraIndicator: ["D14"] },
{ reason: "MISSING_HOLOGRAM", contraIndicator: ["D14"] },
{ reason: "NO_HOLOGRAM_MOVEMENT", contraIndicator: ["D14"] },
Expand Down

0 comments on commit d24c219

Please sign in to comment.