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 app/services/doc_auth_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def self.client(vendor_discriminator: nil, warn_notifier: nil, analytics: nil)
glare_threshold: IdentityConfig.store.doc_auth_error_glare_threshold,
),
)
when Idp::Constants::Vendors::LEXIS_NEXIS
when Idp::Constants::Vendors::LEXIS_NEXIS, 'lexisnexis' # Use constant once configured in prod
DocAuthErrorTranslatorProxy.new(
DocAuth::LexisNexis::LexisNexisClient.new(
account_id: IdentityConfig.store.lexisnexis_account_id,
Expand Down
4 changes: 2 additions & 2 deletions app/services/idv/steps/verify_base_step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def summarize_result_and_throttle_failures(summary_result)

def add_proofing_components
ProofingComponent.create_or_find_by(user: current_user).update(
resolution_check: 'lexis_nexis',
source_check: 'aamva',
resolution_check: Idp::Constants::Vendors::LEXIS_NEXIS,
source_check: Idp::Constants::Vendors::AAMVA,
)
end

Expand Down
3 changes: 2 additions & 1 deletion lib/idp/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ module Idp
module Constants
module Vendors
ACUANT = 'acuant'
LEXIS_NEXIS = 'lexisnexis'
LEXIS_NEXIS = 'lexis_nexis'
MOCK = 'mock'
USPS = 'usps'
AAMVA = 'aamva'
end

DEFAULT_IAL = 1
Expand Down
4 changes: 2 additions & 2 deletions spec/features/idv/doc_auth/verify_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
expect(page).to have_current_path(idv_phone_path)
expect(page).to have_content(t('doc_auth.forms.doc_success'))
user = User.first
expect(user.proofing_component.resolution_check).to eq('lexis_nexis')
expect(user.proofing_component.source_check).to eq('aamva')
expect(user.proofing_component.resolution_check).to eq(Idp::Constants::Vendors::LEXIS_NEXIS)
expect(user.proofing_component.source_check).to eq(Idp::Constants::Vendors::AAMVA)
expect(DocAuthLog.find_by(user_id: user.id).aamva).to eq(true)
expect(fake_analytics).to have_logged_event(
'IdV: doc auth optional verify_wait submitted',
Expand Down
8 changes: 4 additions & 4 deletions spec/services/doc_auth_router_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

context 'for acuant' do
let(:doc_auth_vendor) { 'acuant' }
let(:doc_auth_vendor) { Idp::Constants::Vendors::ACUANT }

it 'is a translation-proxied acuant client' do
expect(DocAuthRouter.client).to be_a(DocAuthRouter::DocAuthErrorTranslatorProxy)
Expand All @@ -16,7 +16,7 @@
end

context 'for lexisnexis' do
let(:doc_auth_vendor) { 'lexisnexis' }
let(:doc_auth_vendor) { Idp::Constants::Vendors::LEXIS_NEXIS }

it 'is a translation-proxied lexisnexis client' do
expect(DocAuthRouter.client).to be_a(DocAuthRouter::DocAuthErrorTranslatorProxy)
Expand Down Expand Up @@ -130,8 +130,8 @@
end

it 'client returns randomized vendors when configured' do
doc_auth_vendor = 'acuant'
doc_auth_vendor_randomize_alternate_vendor = 'lexisnexis'
doc_auth_vendor = Idp::Constants::Vendors::ACUANT
doc_auth_vendor_randomize_alternate_vendor = Idp::Constants::Vendors::LEXIS_NEXIS
doc_auth_vendor_randomize_percent = 35

allow(IdentityConfig.store).to receive(:doc_auth_vendor).and_return(doc_auth_vendor)
Expand Down