Skip to content

Temporarily change Mock IdV attributes #12204

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

Merged
merged 3 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions lib/idp/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,31 @@ module Vendors
AAL2 = 2
AAL3 = 3

MOCK_IDV_APPLICANT_FULL_STATE = 'Montana'
MOCK_IDV_APPLICANT_FULL_STATE = 'West Virginia'
MOCK_IDV_APPLICANT_FULL_STATE_ID_JURISDICTION = 'North Dakota'
MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION = 'ND'
MOCK_IDV_APPLICANT_STATE = 'MT'
MOCK_IDV_APPLICANT_STATE = 'WV'
MOCK_IDV_APPLICANT = {
address1: '1 FAKE RD',
address1: '514 EAST AVE',
address2: '',
city: 'GREAT FALLS',
dob: '1938-10-06',
city: 'SOUTH CHARLESTON',
dob: '1976-10-18',
eye_color: nil,
first_name: 'FAKEY',
first_name: 'MICHELE',
height: 72,
issuing_country_code: 'US',
last_name: 'MCFAKERSON',
last_name: 'DEBAK',
middle_name: nil,
name_suffix: 'JR',
name_suffix: '',
state: MOCK_IDV_APPLICANT_STATE,
state_id_expiration: '2099-12-31',
state_id_issued: '2019-12-31',
state_id_jurisdiction: MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION,
state_id_number: '1111111111111',
id_doc_type: 'drivers_license',
sex: 'male',
sex: 'female',
weight: nil,
zipcode: '59010-1234',
zipcode: '25309-1104',
}.freeze

MOCK_IPP_APPLICANT = {
Expand Down
6 changes: 3 additions & 3 deletions spec/controllers/idv/image_uploads_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
async: false,
billed: true,
doc_auth_result: 'Passed',
state: 'MT',
state: 'WV',
country: 'US',
id_doc_type: 'drivers_license',
user_id: user.uuid,
Expand All @@ -566,8 +566,8 @@
selfie_quality_good: boolean,
transaction_status: 'passed',
workflow: an_instance_of(String),
birth_year: 1938,
zip_code: '59010',
birth_year: 1976,
zip_code: '25309',
issue_year: 2019,
document_type: an_instance_of(String),
)
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/idv/in_person/address_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
analytics_id: 'In Person Proofing',
flow_path: 'standard',
step: 'address',
current_address_zip_code: '59010',
current_address_zip_code: '25309',
}
end

Expand Down
16 changes: 8 additions & 8 deletions spec/features/idv/analytics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
transaction_id: 'state-id-mock-transaction-id-456',
vendor_name: 'StateIdMock',
verified_attributes: [],
state: 'MT',
state: 'WV',
state_id_jurisdiction: 'ND',
state_id_number: '#############',
jurisdiction_in_maintenance_window: false }
Expand Down Expand Up @@ -134,9 +134,9 @@
},
},
biographical_info: {
birth_year: 1938,
birth_year: 1976,
identity_doc_address_state: nil,
state: 'MT',
state: 'WV',
state_id_jurisdiction: 'ND',
state_id_number: '#############',
},
Expand Down Expand Up @@ -189,9 +189,9 @@
},
},
biographical_info: {
birth_year: 1938,
identity_doc_address_state: 'MT',
state: 'MT',
birth_year: 1976,
identity_doc_address_state: 'WV',
state: 'WV',
state_id_jurisdiction: 'ND',
state_id_number: '#############',
},
Expand Down Expand Up @@ -606,13 +606,13 @@
step: 'state_id', flow_path: 'standard', analytics_id: 'In Person Proofing'
},
'IdV: in person proofing state_id submitted' => {
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' }
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' }
},
'IdV: in person proofing address visited' => {
step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', proofing_components: { document_check: 'usps' }
},
'IdV: in person proofing residential address submitted' => {
success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '59010', proofing_components: { document_check: 'usps' }
success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '25309', proofing_components: { document_check: 'usps' }
},
'IdV: doc auth ssn visited' => {
analytics_id: 'In Person Proofing', step: 'ssn', flow_path: 'standard', proofing_components: { document_check: 'usps' }
Expand Down
8 changes: 4 additions & 4 deletions spec/features/idv/doc_auth/document_capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -561,7 +561,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -761,7 +761,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -824,7 +824,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down
8 changes: 4 additions & 4 deletions spec/features/idv/doc_auth/redo_document_capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -444,7 +444,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -642,7 +642,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down Expand Up @@ -705,7 +705,7 @@

expect(page).to have_current_path(idv_ssn_url)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')

expect(page).to have_current_path(idv_ssn_url)
fill_out_ssn_form_ok
Expand Down
2 changes: 1 addition & 1 deletion spec/features/idv/end_to_end_idv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def validate_document_capture_page

def validate_document_capture_submit(user)
expect_costing_for_document
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('MT')
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('WV')
end

# copied from document_capture_spec
Expand Down
4 changes: 2 additions & 2 deletions spec/features/idv/steps/in_person/state_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
with: InPersonHelper::GOOD_LAST_NAME,
)
expect(page).to have_field(t('components.memorable_date.month'), with: '10')
expect(page).to have_field(t('components.memorable_date.day'), with: '6')
expect(page).to have_field(t('components.memorable_date.year'), with: '1938')
expect(page).to have_field(t('components.memorable_date.day'), with: '18')
expect(page).to have_field(t('components.memorable_date.year'), with: '1976')
expect(page).to have_field(
t('in_person_proofing.form.state_id.state_id_jurisdiction'),
with: Idp::Constants::MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION,
Expand Down
6 changes: 3 additions & 3 deletions spec/forms/idv/api_image_upload_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
doc_auth_result: 'Passed',
errors: {},
remaining_submit_attempts: 3,
state: 'MT',
state: 'WV',
country: 'US',
id_doc_type: 'drivers_license',
success: true,
Expand All @@ -265,8 +265,8 @@
selfie_status: anything,
transaction_status: 'passed',
workflow: 'test_non_liveness_workflow',
birth_year: 1938,
zip_code: '59010',
birth_year: 1976,
zip_code: '25309',
issue_year: 2019,
document_type: document_type,
passport_check_result: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe('document-capture/components/review-issues-step', () => {
async () => {
const { getByRole, getByText } = render(
<ReviewIssuesStep
pii={{ first_name: 'Fakey', last_name: 'McFakerson', dob: '1938-10-06' }}
pii={{ first_name: 'Michele', last_name: 'Debak', dob: '1976-10-18' }}
/>,
);

Expand Down
26 changes: 13 additions & 13 deletions spec/jobs/resolution_proofing_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -586,24 +586,24 @@
)
expect(json[:applicant_pii]).to eql(
{
first_name: 'FAKEY',
first_name: 'MICHELE',
middle_name: nil,
last_name: 'MCFAKERSON',
name_suffix: 'JR',
address1: '1 FAKE RD',
identity_doc_address1: '1 FAKE RD',
last_name: 'DEBAK',
name_suffix: '',
address1: '514 EAST AVE',
identity_doc_address1: '514 EAST AVE',
identity_doc_address2: '',
identity_doc_city: 'GREAT FALLS',
identity_doc_address_state: 'MT',
identity_doc_zipcode: '59010-1234',
identity_doc_city: 'SOUTH CHARLESTON',
identity_doc_address_state: 'WV',
identity_doc_zipcode: '25309-1104',
issuing_country_code: 'US',
address2: '',
same_address_as_id: 'true',
city: 'GREAT FALLS',
state: 'MT',
zipcode: '59010-1234',
dob: '1938-10-06',
sex: 'male',
city: 'SOUTH CHARLESTON',
state: 'WV',
zipcode: '25309-1104',
dob: '1976-10-18',
sex: 'female',
height: 72,
weight: nil,
eye_color: nil,
Expand Down
14 changes: 7 additions & 7 deletions spec/jobs/socure_shadow_mode_proofing_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@

let(:expected_attributes) do
{
first_name: 'FAKEY',
last_name: 'MCFAKERSON',
address1: '1 FAKE RD',
first_name: 'MICHELE',
last_name: 'DEBAK',
address1: '514 EAST AVE',
address2: '',
city: 'GREAT FALLS',
state: 'MT',
zipcode: '59010-1234',
dob: '1938-10-06',
city: 'SOUTH CHARLESTON',
state: 'WV',
zipcode: '25309-1104',
dob: '1976-10-18',
ssn: '900661234',
email: user.email,
}
Expand Down
34 changes: 17 additions & 17 deletions spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
expect(get_results_response.success?).to eq(true)
expect(get_results_response.pii_from_doc).to eq(
Pii::StateId.new(
first_name: 'FAKEY',
first_name: 'MICHELE',
middle_name: nil,
last_name: 'MCFAKERSON',
name_suffix: 'JR',
address1: '1 FAKE RD',
last_name: 'DEBAK',
name_suffix: '',
address1: '514 EAST AVE',
address2: '',
city: 'GREAT FALLS',
state: 'MT',
zipcode: '59010-1234',
dob: '1938-10-06',
sex: 'male',
city: 'SOUTH CHARLESTON',
state: 'WV',
zipcode: '25309-1104',
dob: '1976-10-18',
sex: 'female',
height: 72,
weight: nil,
eye_color: nil,
Expand Down Expand Up @@ -198,15 +198,15 @@
Pii::StateId.new(
first_name: 'Susan',
middle_name: nil,
last_name: 'MCFAKERSON',
name_suffix: 'JR',
address1: '1 FAKE RD',
last_name: 'DEBAK',
name_suffix: '',
address1: '514 EAST AVE',
address2: '',
city: 'GREAT FALLS',
state: 'MT',
zipcode: '59010-1234',
dob: '1938-10-06',
sex: 'male',
city: 'SOUTH CHARLESTON',
state: 'WV',
zipcode: '25309-1104',
dob: '1976-10-18',
sex: 'female',
height: 72,
weight: nil,
eye_color: nil,
Expand Down
16 changes: 8 additions & 8 deletions spec/services/doc_auth/mock/result_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@
Pii::StateId.new(
first_name: 'Susan',
middle_name: nil,
last_name: 'MCFAKERSON',
name_suffix: 'JR',
address1: '1 FAKE RD',
last_name: 'DEBAK',
name_suffix: '',
address1: '514 EAST AVE',
address2: '',
city: 'GREAT FALLS',
state: 'MT',
zipcode: '59010-1234',
dob: '1938-10-06',
sex: 'male',
city: 'SOUTH CHARLESTON',
state: 'WV',
zipcode: '25309-1104',
dob: '1976-10-18',
sex: 'female',
height: 72,
weight: nil,
eye_color: nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def sp_cost_count_with_transaction_id
{
uuid: 'abc',
uuid_prefix: '123',
first_name: 'FAKEY',
last_name: 'MCFAKERSON',
first_name: 'MICHELE',
last_name: 'DEBAK',
ssn: '900661234',
dob: '1938-10-06',
dob: '1976-10-18',
phone: '12025551212',
},
).and_call_original
Expand Down
Loading