Skip to content

Commit 8b6bc54

Browse files
authored
Temporarily change Mock IdV attributes (#12204)
* Temporarily change Mock IdV attributes For more context, please see [JIRA issue LG-16254](https://cm-jira.usa.gov/browse/LG-16254) This is a temporary change to allow a partner agency to test the facial matching flow in `int` using custom data that matches what they have on their end. The plan is to let them know today when the change is live in `int`, and when they're done testing, I will revert this PR. * Fix tests * [skip changelog] Fix more tests
1 parent 6691da5 commit 8b6bc54

22 files changed

+110
-110
lines changed

lib/idp/constants.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,31 +95,31 @@ module Vendors
9595
AAL2 = 2
9696
AAL3 = 3
9797

98-
MOCK_IDV_APPLICANT_FULL_STATE = 'Montana'
98+
MOCK_IDV_APPLICANT_FULL_STATE = 'West Virginia'
9999
MOCK_IDV_APPLICANT_FULL_STATE_ID_JURISDICTION = 'North Dakota'
100100
MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION = 'ND'
101-
MOCK_IDV_APPLICANT_STATE = 'MT'
101+
MOCK_IDV_APPLICANT_STATE = 'WV'
102102
MOCK_IDV_APPLICANT = {
103-
address1: '1 FAKE RD',
103+
address1: '514 EAST AVE',
104104
address2: '',
105-
city: 'GREAT FALLS',
106-
dob: '1938-10-06',
105+
city: 'SOUTH CHARLESTON',
106+
dob: '1976-10-18',
107107
eye_color: nil,
108-
first_name: 'FAKEY',
108+
first_name: 'MICHELE',
109109
height: 72,
110110
issuing_country_code: 'US',
111-
last_name: 'MCFAKERSON',
111+
last_name: 'DEBAK',
112112
middle_name: nil,
113-
name_suffix: 'JR',
113+
name_suffix: '',
114114
state: MOCK_IDV_APPLICANT_STATE,
115115
state_id_expiration: '2099-12-31',
116116
state_id_issued: '2019-12-31',
117117
state_id_jurisdiction: MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION,
118118
state_id_number: '1111111111111',
119119
id_doc_type: 'drivers_license',
120-
sex: 'male',
120+
sex: 'female',
121121
weight: nil,
122-
zipcode: '59010-1234',
122+
zipcode: '25309-1104',
123123
}.freeze
124124

125125
MOCK_IPP_APPLICANT = {

spec/controllers/idv/image_uploads_controller_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
async: false,
499499
billed: true,
500500
doc_auth_result: 'Passed',
501-
state: 'MT',
501+
state: 'WV',
502502
country: 'US',
503503
id_doc_type: 'drivers_license',
504504
user_id: user.uuid,
@@ -521,8 +521,8 @@
521521
selfie_quality_good: boolean,
522522
transaction_status: 'passed',
523523
workflow: an_instance_of(String),
524-
birth_year: 1938,
525-
zip_code: '59010',
524+
birth_year: 1976,
525+
zip_code: '25309',
526526
issue_year: 2019,
527527
document_type: an_instance_of(String),
528528
)

spec/controllers/idv/in_person/address_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
analytics_id: 'In Person Proofing',
197197
flow_path: 'standard',
198198
step: 'address',
199-
current_address_zip_code: '59010',
199+
current_address_zip_code: '25309',
200200
}
201201
end
202202

spec/features/idv/analytics_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
transaction_id: 'state-id-mock-transaction-id-456',
7171
vendor_name: 'StateIdMock',
7272
verified_attributes: [],
73-
state: 'MT',
73+
state: 'WV',
7474
state_id_jurisdiction: 'ND',
7575
state_id_number: '#############',
7676
jurisdiction_in_maintenance_window: false }
@@ -134,9 +134,9 @@
134134
},
135135
},
136136
biographical_info: {
137-
birth_year: 1938,
137+
birth_year: 1976,
138138
identity_doc_address_state: nil,
139-
state: 'MT',
139+
state: 'WV',
140140
state_id_jurisdiction: 'ND',
141141
state_id_number: '#############',
142142
},
@@ -189,9 +189,9 @@
189189
},
190190
},
191191
biographical_info: {
192-
birth_year: 1938,
193-
identity_doc_address_state: 'MT',
194-
state: 'MT',
192+
birth_year: 1976,
193+
identity_doc_address_state: 'WV',
194+
state: 'WV',
195195
state_id_jurisdiction: 'ND',
196196
state_id_number: '#############',
197197
},
@@ -606,13 +606,13 @@
606606
step: 'state_id', flow_path: 'standard', analytics_id: 'In Person Proofing'
607607
},
608608
'IdV: in person proofing state_id submitted' => {
609-
success: true, flow_path: 'standard', step: 'state_id', analytics_id: 'In Person Proofing', birth_year: '1938', document_zip_code: '12345', proofing_components: { document_check: 'usps' }
609+
success: true, flow_path: 'standard', step: 'state_id', analytics_id: 'In Person Proofing', birth_year: '1976', document_zip_code: '12345', proofing_components: { document_check: 'usps' }
610610
},
611611
'IdV: in person proofing address visited' => {
612612
step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', proofing_components: { document_check: 'usps' }
613613
},
614614
'IdV: in person proofing residential address submitted' => {
615-
success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '59010', proofing_components: { document_check: 'usps' }
615+
success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '25309', proofing_components: { document_check: 'usps' }
616616
},
617617
'IdV: doc auth ssn visited' => {
618618
analytics_id: 'In Person Proofing', step: 'ssn', flow_path: 'standard', proofing_components: { document_check: 'usps' }

spec/features/idv/doc_auth/document_capture_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516

517517
expect(page).to have_current_path(idv_ssn_url)
518518
expect_costing_for_document
519-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
519+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
520520

521521
expect(page).to have_current_path(idv_ssn_url)
522522
fill_out_ssn_form_ok
@@ -561,7 +561,7 @@
561561

562562
expect(page).to have_current_path(idv_ssn_url)
563563
expect_costing_for_document
564-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
564+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
565565

566566
expect(page).to have_current_path(idv_ssn_url)
567567
fill_out_ssn_form_ok
@@ -761,7 +761,7 @@
761761

762762
expect(page).to have_current_path(idv_ssn_url)
763763
expect_costing_for_document
764-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
764+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
765765

766766
expect(page).to have_current_path(idv_ssn_url)
767767
fill_out_ssn_form_ok
@@ -824,7 +824,7 @@
824824

825825
expect(page).to have_current_path(idv_ssn_url)
826826
expect_costing_for_document
827-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
827+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
828828

829829
expect(page).to have_current_path(idv_ssn_url)
830830
fill_out_ssn_form_ok

spec/features/idv/doc_auth/redo_document_capture_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399

400400
expect(page).to have_current_path(idv_ssn_url)
401401
expect_costing_for_document
402-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
402+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
403403

404404
expect(page).to have_current_path(idv_ssn_url)
405405
fill_out_ssn_form_ok
@@ -444,7 +444,7 @@
444444

445445
expect(page).to have_current_path(idv_ssn_url)
446446
expect_costing_for_document
447-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
447+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
448448

449449
expect(page).to have_current_path(idv_ssn_url)
450450
fill_out_ssn_form_ok
@@ -642,7 +642,7 @@
642642

643643
expect(page).to have_current_path(idv_ssn_url)
644644
expect_costing_for_document
645-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
645+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
646646

647647
expect(page).to have_current_path(idv_ssn_url)
648648
fill_out_ssn_form_ok
@@ -705,7 +705,7 @@
705705

706706
expect(page).to have_current_path(idv_ssn_url)
707707
expect_costing_for_document
708-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
708+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
709709

710710
expect(page).to have_current_path(idv_ssn_url)
711711
fill_out_ssn_form_ok

spec/features/idv/end_to_end_idv_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def validate_document_capture_page
223223

224224
def validate_document_capture_submit(user)
225225
expect_costing_for_document
226-
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('MT')
226+
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('WV')
227227
end
228228

229229
# copied from document_capture_spec

spec/features/idv/steps/in_person/state_id_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
with: InPersonHelper::GOOD_LAST_NAME,
8383
)
8484
expect(page).to have_field(t('components.memorable_date.month'), with: '10')
85-
expect(page).to have_field(t('components.memorable_date.day'), with: '6')
86-
expect(page).to have_field(t('components.memorable_date.year'), with: '1938')
85+
expect(page).to have_field(t('components.memorable_date.day'), with: '18')
86+
expect(page).to have_field(t('components.memorable_date.year'), with: '1976')
8787
expect(page).to have_field(
8888
t('in_person_proofing.form.state_id.state_id_jurisdiction'),
8989
with: Idp::Constants::MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION,

spec/forms/idv/api_image_upload_form_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
doc_auth_result: 'Passed',
250250
errors: {},
251251
remaining_submit_attempts: 3,
252-
state: 'MT',
252+
state: 'WV',
253253
country: 'US',
254254
id_doc_type: 'drivers_license',
255255
success: true,
@@ -265,8 +265,8 @@
265265
selfie_status: anything,
266266
transaction_status: 'passed',
267267
workflow: 'test_non_liveness_workflow',
268-
birth_year: 1938,
269-
zip_code: '59010',
268+
birth_year: 1976,
269+
zip_code: '25309',
270270
issue_year: 2019,
271271
document_type: document_type,
272272
passport_check_result: {},

spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ describe('document-capture/components/review-issues-step', () => {
422422
async () => {
423423
const { getByRole, getByText } = render(
424424
<ReviewIssuesStep
425-
pii={{ first_name: 'Fakey', last_name: 'McFakerson', dob: '1938-10-06' }}
425+
pii={{ first_name: 'Michele', last_name: 'Debak', dob: '1976-10-18' }}
426426
/>,
427427
);
428428

spec/jobs/resolution_proofing_job_spec.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -586,24 +586,24 @@
586586
)
587587
expect(json[:applicant_pii]).to eql(
588588
{
589-
first_name: 'FAKEY',
589+
first_name: 'MICHELE',
590590
middle_name: nil,
591-
last_name: 'MCFAKERSON',
592-
name_suffix: 'JR',
593-
address1: '1 FAKE RD',
594-
identity_doc_address1: '1 FAKE RD',
591+
last_name: 'DEBAK',
592+
name_suffix: '',
593+
address1: '514 EAST AVE',
594+
identity_doc_address1: '514 EAST AVE',
595595
identity_doc_address2: '',
596-
identity_doc_city: 'GREAT FALLS',
597-
identity_doc_address_state: 'MT',
598-
identity_doc_zipcode: '59010-1234',
596+
identity_doc_city: 'SOUTH CHARLESTON',
597+
identity_doc_address_state: 'WV',
598+
identity_doc_zipcode: '25309-1104',
599599
issuing_country_code: 'US',
600600
address2: '',
601601
same_address_as_id: 'true',
602-
city: 'GREAT FALLS',
603-
state: 'MT',
604-
zipcode: '59010-1234',
605-
dob: '1938-10-06',
606-
sex: 'male',
602+
city: 'SOUTH CHARLESTON',
603+
state: 'WV',
604+
zipcode: '25309-1104',
605+
dob: '1976-10-18',
606+
sex: 'female',
607607
height: 72,
608608
weight: nil,
609609
eye_color: nil,

spec/jobs/socure_shadow_mode_proofing_job_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,14 @@
420420

421421
let(:expected_attributes) do
422422
{
423-
first_name: 'FAKEY',
424-
last_name: 'MCFAKERSON',
425-
address1: '1 FAKE RD',
423+
first_name: 'MICHELE',
424+
last_name: 'DEBAK',
425+
address1: '514 EAST AVE',
426426
address2: '',
427-
city: 'GREAT FALLS',
428-
state: 'MT',
429-
zipcode: '59010-1234',
430-
dob: '1938-10-06',
427+
city: 'SOUTH CHARLESTON',
428+
state: 'WV',
429+
zipcode: '25309-1104',
430+
dob: '1976-10-18',
431431
ssn: '900661234',
432432
email: user.email,
433433
}

spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
expect(get_results_response.success?).to eq(true)
2727
expect(get_results_response.pii_from_doc).to eq(
2828
Pii::StateId.new(
29-
first_name: 'FAKEY',
29+
first_name: 'MICHELE',
3030
middle_name: nil,
31-
last_name: 'MCFAKERSON',
32-
name_suffix: 'JR',
33-
address1: '1 FAKE RD',
31+
last_name: 'DEBAK',
32+
name_suffix: '',
33+
address1: '514 EAST AVE',
3434
address2: '',
35-
city: 'GREAT FALLS',
36-
state: 'MT',
37-
zipcode: '59010-1234',
38-
dob: '1938-10-06',
39-
sex: 'male',
35+
city: 'SOUTH CHARLESTON',
36+
state: 'WV',
37+
zipcode: '25309-1104',
38+
dob: '1976-10-18',
39+
sex: 'female',
4040
height: 72,
4141
weight: nil,
4242
eye_color: nil,
@@ -198,15 +198,15 @@
198198
Pii::StateId.new(
199199
first_name: 'Susan',
200200
middle_name: nil,
201-
last_name: 'MCFAKERSON',
202-
name_suffix: 'JR',
203-
address1: '1 FAKE RD',
201+
last_name: 'DEBAK',
202+
name_suffix: '',
203+
address1: '514 EAST AVE',
204204
address2: '',
205-
city: 'GREAT FALLS',
206-
state: 'MT',
207-
zipcode: '59010-1234',
208-
dob: '1938-10-06',
209-
sex: 'male',
205+
city: 'SOUTH CHARLESTON',
206+
state: 'WV',
207+
zipcode: '25309-1104',
208+
dob: '1976-10-18',
209+
sex: 'female',
210210
height: 72,
211211
weight: nil,
212212
eye_color: nil,

spec/services/doc_auth/mock/result_response_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@
372372
Pii::StateId.new(
373373
first_name: 'Susan',
374374
middle_name: nil,
375-
last_name: 'MCFAKERSON',
376-
name_suffix: 'JR',
377-
address1: '1 FAKE RD',
375+
last_name: 'DEBAK',
376+
name_suffix: '',
377+
address1: '514 EAST AVE',
378378
address2: '',
379-
city: 'GREAT FALLS',
380-
state: 'MT',
381-
zipcode: '59010-1234',
382-
dob: '1938-10-06',
383-
sex: 'male',
379+
city: 'SOUTH CHARLESTON',
380+
state: 'WV',
381+
zipcode: '25309-1104',
382+
dob: '1976-10-18',
383+
sex: 'female',
384384
height: 72,
385385
weight: nil,
386386
eye_color: nil,

spec/services/proofing/resolution/plugins/phone_finder_plugin_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def sp_cost_count_with_transaction_id
9696
{
9797
uuid: 'abc',
9898
uuid_prefix: '123',
99-
first_name: 'FAKEY',
100-
last_name: 'MCFAKERSON',
99+
first_name: 'MICHELE',
100+
last_name: 'DEBAK',
101101
ssn: '900661234',
102-
dob: '1938-10-06',
102+
dob: '1976-10-18',
103103
phone: '12025551212',
104104
},
105105
).and_call_original

0 commit comments

Comments
 (0)