Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9451da33
Commit
9451da33
authored
Mar 03, 2021
by
Quang-Minh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 2 suggestion(s) to 1 file(s)
parent
80acfadf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/error_tracking/context_payload_generator_spec.rb
...b/gitlab/error_tracking/context_payload_generator_spec.rb
+2
-2
No files found.
spec/lib/gitlab/error_tracking/context_payload_generator_spec.rb
View file @
9451da33
...
@@ -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 embed
d
ed 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 sens
i
tive 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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment