Skip to content

Commit

Permalink
Ignore gibs working hours exception in Sentry (#3674)
Browse files Browse the repository at this point in the history
* ignore GIBS OutsideWorkingHours exception


Co-authored-by: Keifer Furzland <[email protected]>
  • Loading branch information
omgitsbillryan and kfrz committed Dec 20, 2019
1 parent 6da69aa commit 5f462ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class ApplicationController < ActionController::API
Common::Exceptions::Unauthorized,
Common::Exceptions::RoutingError,
Common::Exceptions::Forbidden,
Breakers::OutageException
Breakers::OutageException,
EVSS::GiBillStatus::OutsideWorkingHours
].freeze

VERSION_STATUS = {
Expand Down
4 changes: 4 additions & 0 deletions spec/request/post911_gi_bill_status_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
get v0_post911_gi_bill_status_url, params: nil
expect(response.headers).to include('Retry-After')
end
it 'ignores OutsideWorkingHours exception' do
expect(Raven).not_to receive(:capture_message)
get v0_post911_gi_bill_status_url, params: nil
end
end

context 'with deprecated GibsNotFoundUser class' do
Expand Down

0 comments on commit 5f462ec

Please sign in to comment.