Skip to content

Commit

Permalink
Moving around (#11733)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesoskin authored Feb 7, 2023
1 parent 16d2eaa commit 3ab31c2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

require 'evss/configuration'

module EVSS
module DisabilityCompensationForm
class NonBreakeredConfiguration < EVSS::DisabilityCompensationForm::Configuration
def set_evss_middlewares(faraday, snakecase: true)
# faraday.use :breakers # DONT USE BREAKERS
faraday.use EVSS::ErrorMiddleware
faraday.use Faraday::Response::RaiseError
faraday.response :betamocks if mock_enabled?
faraday.response :snakecase, symbolize: false if snakecase
# calls to EVSS returns non JSON responses for some scenarios that don't make it through VAAFI
# content_type: /\bjson$/ ensures only json content types are attempted to be parsed.
faraday.response :json, content_type: /\bjson$/
faraday.use :immutable_headers
faraday.adapter Faraday.default_adapter
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'common/client/concerns/monitoring'
require 'common/client/errors'
require 'evss/service'
require 'evss/disability_compensation_form/non_breakered_configuration'
require 'evss/disability_compensation_auth_headers'
require_relative 'configuration'
require_relative 'rated_disabilities_response'
Expand All @@ -12,7 +13,7 @@
module EVSS
module DisabilityCompensationForm
class NonBreakeredService < EVSS::DisabilityCompensationForm::Service
configuration EVSS::NonBreakeredConfiguration
configuration EVSS::DisabilityCompensationForm::NonBreakeredConfiguration
end
end
end
20 changes: 0 additions & 20 deletions lib/evss/non_breakered_configuration.rb

This file was deleted.

1 change: 1 addition & 0 deletions lib/sidekiq/form526_backup_submission_process/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'evss/disability_compensation_auth_headers'
require 'evss/disability_compensation_form/form4142'
require 'evss/disability_compensation_form/service'
require 'evss/disability_compensation_form/non_breakered_service'
require 'form526_backup_submission/service'
require 'form526_backup_submission/utilities/convert_to_pdf'
require 'decision_review_v1/utilities/form_4142_processor'
Expand Down

0 comments on commit 3ab31c2

Please sign in to comment.