Commit 9451da33 authored by Quang-Minh Nguyen's avatar Quang-Minh Nguyen

Apply 2 suggestion(s) to 1 file(s)

parent 80acfadf
...@@ -140,7 +140,7 @@ RSpec.describe Gitlab::ErrorTracking::ContextPayloadGenerator do ...@@ -140,7 +140,7 @@ RSpec.describe Gitlab::ErrorTracking::ContextPayloadGenerator do
) )
end end
it 'appends exception embeded extra metadata to the payload' do it 'appends exception embedded extra metadata to the payload' do
allow(exception).to receive(:sentry_extra_data).and_return( allow(exception).to receive(:sentry_extra_data).and_return(
some_other_info: 'another_info', some_other_info: 'another_info',
mr_url: 'https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1' mr_url: 'https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1'
...@@ -155,7 +155,7 @@ RSpec.describe Gitlab::ErrorTracking::ContextPayloadGenerator do ...@@ -155,7 +155,7 @@ RSpec.describe Gitlab::ErrorTracking::ContextPayloadGenerator do
) )
end end
it 'filters senstive extra info' do it 'filters sensitive extra info' do
extra[:my_token] = '456' extra[:my_token] = '456'
allow(exception).to receive(:sentry_extra_data).and_return( allow(exception).to receive(:sentry_extra_data).and_return(
mr_url: 'https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1', mr_url: 'https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment