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.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
)

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/lgy/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
)
Expand Down
6 changes: 3 additions & 3 deletions spec/lib/mhv/account_creation/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand All @@ -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:
}
Expand All @@ -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:
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down
Loading