From 112feff0684f4c0ff1f19490a1dd7df779562dca Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Wed, 26 Jul 2023 15:54:02 +0300 Subject: [PATCH] test: drop 2 tests --- spec/sentry/sanitizer/cleaner_spec.rb | 39 --------------------------- 1 file changed, 39 deletions(-) diff --git a/spec/sentry/sanitizer/cleaner_spec.rb b/spec/sentry/sanitizer/cleaner_spec.rb index b7acf77..5715465 100644 --- a/spec/sentry/sanitizer/cleaner_spec.rb +++ b/spec/sentry/sanitizer/cleaner_spec.rb @@ -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