diff --git a/Gemfile.lock b/Gemfile.lock index 21f2a0eb27d..15be0b5bb8a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -448,7 +448,7 @@ GEM railties (>= 6.1.0) faker (3.5.2) i18n (>= 1.8.11, < 2) - faraday (2.13.1) + faraday (2.13.2) faraday-net_http (>= 2.0, < 3.5) json logger diff --git a/modules/decision_reviews/spec/sidekiq/submit_upload_spec.rb b/modules/decision_reviews/spec/sidekiq/submit_upload_spec.rb index bf20a49ae7c..3f295334da8 100644 --- a/modules/decision_reviews/spec/sidekiq/submit_upload_spec.rb +++ b/modules/decision_reviews/spec/sidekiq/submit_upload_spec.rb @@ -407,7 +407,7 @@ get_lighthouse_url_failure_log.delete(:nod_uuid) get_lighthouse_url_failure_log[:sc_uuid] = appeal_submission.submitted_appeal_uuid get_lighthouse_url_failure_log[:http] = - { status_code: 404, body: 'the server responded with status 404' } + { status_code: 404, body: match(/the server responded with status 404/) } allow(Rails.logger).to receive(:error) expect(Rails.logger).to receive(:error).with(get_lighthouse_url_failure_log) expect do diff --git a/spec/lib/debt_management_center/shared_examples/debt_service_examples.rb b/spec/lib/debt_management_center/shared_examples/debt_service_examples.rb index 68b8b66d6b3..8b875c0e170 100644 --- a/spec/lib/debt_management_center/shared_examples/debt_service_examples.rb +++ b/spec/lib/debt_management_center/shared_examples/debt_service_examples.rb @@ -26,7 +26,7 @@ expect(Sentry).to receive(:set_tags).once.with(external_service: described_class.to_s.underscore) expect(Sentry).to receive(:set_extras).once.with( url: Settings.dmc.url, - message: 'the server responded with status 400', + message: match(/the server responded with status 400/), body: { 'message' => 'Bad request' } ) diff --git a/spec/lib/lgy/service_spec.rb b/spec/lib/lgy/service_spec.rb index 0eb31697990..d4a319cf69e 100644 --- a/spec/lib/lgy/service_spec.rb +++ b/spec/lib/lgy/service_spec.rb @@ -203,7 +203,7 @@ expect_any_instance_of(LGY::Service).to receive(:log_message_to_sentry).with( 'COE application submission failed with http status: 500', :error, - { message: 'the server responded with status 500', status: 500, + { message: match(/the server responded with status 500/), status: 500, body: { 'errors' => [{ 'message' => 'Fake error message' }] } }, { team: 'vfs-ebenefits' } ) diff --git a/spec/lib/mhv/account_creation/service_spec.rb b/spec/lib/mhv/account_creation/service_spec.rb index 5aa325dc8f9..7c9031b40b8 100644 --- a/spec/lib/mhv/account_creation/service_spec.rb +++ b/spec/lib/mhv/account_creation/service_spec.rb @@ -224,7 +224,7 @@ let(:expected_log_payload) do { body: { errorCode: 812, message: 'Required ICN field is missing or invalid in the JWT' }.as_json, - error_message: 'the server responded with status 400', + error_message: match(/the server responded with status 400/), status: 400, icn: } @@ -239,7 +239,7 @@ let(:expected_log_payload) do { body: { errorCode: 805, message: 'Deactivated Account found in MHV for ICN' }.as_json, - error_message: 'the server responded with status 400', + error_message: match(/the server responded with status 400/), status: 400, icn: } @@ -254,7 +254,7 @@ let(:expected_log_payload) do { body: { errorCode: 808, message: 'Application authentication failed' }.as_json, - error_message: 'the server responded with status 403', + error_message: match(/the server responded with status 403/), status: 403, icn: } diff --git a/spec/services/claim_fast_tracking/max_rating_annotator_spec.rb b/spec/services/claim_fast_tracking/max_rating_annotator_spec.rb index 505d21c6cb5..b136f696924 100644 --- a/spec/services/claim_fast_tracking/max_rating_annotator_spec.rb +++ b/spec/services/claim_fast_tracking/max_rating_annotator_spec.rb @@ -252,7 +252,7 @@ it 'logs an error when the DisabilityMaxRating client raises a ClientError' do VCR.use_cassette('disability_max_ratings/max_ratings_failure') do expect(Rails.logger).to receive(:error).with( - 'Get Max Ratings Failed the server responded with status 500.', + match(/Get Max Ratings Failed the server responded with status 500/), hash_including(:backtrace) )