-
Notifications
You must be signed in to change notification settings - Fork 166
LG-13758: Bypass secondary id check for Enhanced IPP #10934
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
Changes from all commits
eadbf2a
157cca4
49a6f96
ba04368
88a0258
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "status": "In-person passed", | ||
| "proofingPostOffice": "WILKES BARRE", | ||
| "proofingCity": "WILKES BARRE", | ||
| "proofingState": "PA", | ||
| "enrollmentCode": "2090002197504352", | ||
| "primaryIdType": "State driver's license", | ||
| "transactionStartDateTime": "12/17/2020 033855", | ||
| "transactionEndDateTime": "12/17/2020 034055", | ||
| "secondaryIdType": "State driver's license", | ||
| "fraudSuspected": false, | ||
| "proofingConfirmationNumber": "350040248346701", | ||
| "ippAssuranceLevel": "2.0" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👏🏻 for the updated |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1498,24 +1498,28 @@ | |
| end | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I'm commenting on a file so that we can thread responses to this comment and resolve the conversation when we're done chatting.) I noticed that the testing plan recommends using I don't know that this would affect behavior for the testing plan, but I wanted to flag it because that line jumped out at me.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would recommend using fixtures that have the correct assurance level in the specs. Thoughts? |
||
|
|
||
| describe 'Enhanced In-Person Proofing' do | ||
| let!(:pending_enrollment) do | ||
| create( | ||
| :in_person_enrollment, | ||
| :pending, | ||
| :with_notification_phone_configuration, | ||
| issuer: 'http://localhost:3000', | ||
| selected_location_details: { name: 'BALTIMORE' }, | ||
| sponsor_id: usps_eipp_sponsor_id, | ||
| ) | ||
| end | ||
|
|
||
| before do | ||
| allow(IdentityConfig.store).to receive(:in_person_proofing_enabled).and_return(true) | ||
| end | ||
|
|
||
| context <<~STR.squish do | ||
| When an Enhanced IPP enrollment passess proofing | ||
| with unsupported ID,enrollment by-passes the | ||
| Primary ID check and | ||
| STR | ||
| let!(:pending_enrollment) do | ||
| create( | ||
| :in_person_enrollment, | ||
| :pending, | ||
| :with_notification_phone_configuration, | ||
| issuer: 'http://localhost:3000', | ||
| selected_location_details: { name: 'BALTIMORE' }, | ||
| sponsor_id: usps_eipp_sponsor_id, | ||
| ) | ||
| end | ||
|
|
||
| before do | ||
| allow(IdentityConfig.store).to receive(:in_person_proofing_enabled).and_return(true) | ||
| stub_request_passed_proofing_unsupported_id_results | ||
| end | ||
|
|
||
|
|
@@ -1561,6 +1565,21 @@ | |
| ) | ||
| end | ||
| end | ||
|
|
||
| context 'By passes the Secondary ID check when enrollment is Enhanced IPP' do | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking nit: I think |
||
| before do | ||
| stub_request_passed_proofing_secondary_id_type_results_ial_2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👏🏻 |
||
| end | ||
|
|
||
| it_behaves_like( | ||
| 'enrollment_with_a_status_update', | ||
| passed: true, | ||
| email_type: 'Success', | ||
| enrollment_status: InPersonEnrollment::STATUS_PASSED, | ||
| response_json: UspsInPersonProofing::Mock::Fixtures. | ||
| request_passed_proofing_secondary_id_type_results_response_ial_2, | ||
| ) | ||
| end | ||
| end | ||
| end | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.