Skip to content

Commit

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

context "with event as stringified Hash" do
it "filters everything according to configuration" 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(
"data" => a_hash_including(
"password" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"secret_token" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"oops" => "OOPS",
"hmm" => [
a_hash_including(
"password" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"array" => "too"
)
]
),
"headers" => a_hash_including(
"H-1" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"H-2" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"H-3" => "secret3",
"Authorization" => "token",
"X-Xsrf-Token" => "xsrf=token"
),
"cookies" => a_hash_including(
"cookie1" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"cookie2" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"cookie3" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK
)
),
"extra" => a_hash_including(
"password" => Sentry::Sanitizer::Cleaner::DEFAULT_MASK,
"not_password" => "NOT SECRET"
)
)
end
end

context "with event as symbolized Hash" do
it "filters everything according to configuration" do
event_h = event.to_hash
Expand Down

0 comments on commit 112feff

Please sign in to comment.