Skip to content

Commit

Permalink
test: drop 1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 26, 2023
1 parent 7cc1153 commit 2fc12c5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions spec/sentry/sanitizer/cleaner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,6 @@
Sentry.get_current_scope.apply_to_event(event)
end

it "cleans all fields including query string" do
event_h = JSON.parse(event.to_hash.to_json)
subject.call(event_h)

expect(event_h).to match a_hash_including(
"request" => a_hash_including(
"headers" => a_hash_including(
"Custom-header" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"Custom-nonsecure" => "NONSECURE",
"Authorization" => "token",
"X-Xsrf-Token" => "xsrf=token"
),
"cookies" => a_hash_including(
"cookie1" => "wooo",
"cookie2" => "weee",
"cookie3" => "WoWoW"
),
"query_string" => "password=[FILTERED]&token=[FILTERED]&nonsecure=NONESECURE&nested[][password]=[FILTERED]&nested[][login]=LOGIN"
),
"extra" => a_hash_including(
"password" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"not_password" => "NOT SECRET"
)
)
end

context "when query_string set to false" do
it "doesn't clean query_string" do
Sentry.get_current_client.configuration.sanitize.query_string = false
Expand Down

0 comments on commit 2fc12c5

Please sign in to comment.