Skip to content
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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ end

group :production do
gem 'aamva', github: '18F/identity-aamva-api-client-gem', tag: 'v3.4.1'
gem 'lexisnexis', github: '18F/identity-lexisnexis-api-client-gem', tag: 'v2.3.0'
gem 'lexisnexis', github: '18F/identity-lexisnexis-api-client-gem', tag: 'v2.5.0'
end
15 changes: 8 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,21 @@ GIT

GIT
remote: https://github.com/18F/identity-idp-functions.git
revision: 94c96472a5948f3dd97bddcb00401f181ccbfd36
ref: 94c96472a5948f3dd97bddcb00401f181ccbfd36
revision: 696ca97e41efc76c2e0dcb7b0ed188a65406babb
ref: 696ca97e41efc76c2e0dcb7b0ed188a65406babb
specs:
identity-idp-functions (0.7.7)
identity-idp-functions (0.8.0)
aws-sdk-s3 (>= 1.73)
aws-sdk-ssm (>= 1.55)
retries (>= 0.0.5)

GIT
remote: https://github.com/18F/identity-lexisnexis-api-client-gem.git
revision: 1bef47ea242d0aa2e7d777370cafaa7556f7874f
tag: v2.3.0
revision: e9a1650c1771ff85d666e08e38cd3b51062e0d2d
tag: v2.5.0
specs:
lexisnexis (2.3.0)
lexisnexis (2.5.0)
activesupport
dotenv
faraday

Expand Down Expand Up @@ -188,7 +189,7 @@ GEM
aws-sdk-ses (1.36.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sigv4 (~> 1.1)
aws-sdk-ssm (1.100.0)
aws-sdk-ssm (1.103.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.2.2)
Expand Down
1 change: 1 addition & 0 deletions app/services/idv/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def proof_resolution(document_capture_session, should_proof_state_id:, trace_id:
applicant_pii: @applicant,
callback_url: callback_url,
should_proof_state_id: should_proof_state_id,
dob_year_only: AppConfig.env.proofing_send_partial_dob == 'true',
trace_id: trace_id,
},
).run do |idv_result|
Expand Down
1 change: 1 addition & 0 deletions config/application.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ pinpoint_voice_longcode_pool:
pinpoint_voice_region:
poll_rate_for_verify_in_seconds: '3'
proofer_mock_fallback: 'true'
proofing_send_partial_dob: 'false'
push_notifications_enabled:
reauthn_window: '120'
recaptcha_enabled_percent: '0'
Expand Down
2 changes: 1 addition & 1 deletion lib/lambda_jobs/git_ref.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LambdaJobs
GIT_REF = '94c96472a5948f3dd97bddcb00401f181ccbfd36'
GIT_REF = '696ca97e41efc76c2e0dcb7b0ed188a65406babb'
end
17 changes: 17 additions & 0 deletions spec/services/idv/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
let(:bad_phone) do
IdentityIdpFunctions::AddressMockClient::UNVERIFIABLE_PHONE_NUMBER
end

describe 'instance' do
let(:applicant) { { foo: 'bar' } }
let(:trace_id) { SecureRandom.uuid }
Expand Down Expand Up @@ -35,6 +36,22 @@
result = document_capture_session.load_proofing_result.result
expect(result[:context][:stages]).to include({ state_id: 'StateIdMock' })
end

context 'proofing partial date of birth' do
before do
allow(AppConfig.env).to receive(:proofing_send_partial_dob).and_return('true')
end

it 'passes dob_year_only to the proofing function' do
expect(LambdaJobs::Runner).to receive(:new).
with(hash_including(args: hash_including(dob_year_only: true))).
and_call_original

agent.proof_resolution(
document_capture_session, should_proof_state_id: true, trace_id: trace_id
)
end
end
end

context 'proofing state_id disabled' do
Expand Down