Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to matcher to ignore headers #104

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

ivangonzalezacuna
Copy link
Contributor

The new matcher, which is more strict now, is breaking tests where some of the headers are skipped (like secrets) or change on each request (like tracing spans). The cassete already supports the User-Agentt, and the Authorization has also been added but not released yet.

In order to make it more generic and usable for people, I've added a more generic implementation of these options, which will allow us to define which headers we really want to ignore.

The new matcher, which is more strict now, is breaking tests where some
of the headers are skipped (like secrets) or change on each request (like tracing
spans). The cassete already supports the User-Agentt, and the Authorization has
also been added but not released yet.

In order to make it more generic and usable for people, I've added a more
generic implementation of these options, which will allow us to define which
headers we really want to ignore.

Signed-off-by: ivangonzalezacuna <[email protected]>
@ivangonzalezacuna ivangonzalezacuna force-pushed the matcher-ignore-headers-generic branch from 6f56979 to 81ddc8a Compare October 10, 2024 07:48
@ivangonzalezacuna ivangonzalezacuna changed the title Add optioon to matcher to ignore headers Add option to matcher to ignore headers Oct 10, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.50%. Comparing base (7f2a4c5) to head (81ddc8a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##               v4     #104      +/-   ##
==========================================
+ Coverage   52.40%   52.50%   +0.09%     
==========================================
  Files           4        4              
  Lines         498      499       +1     
==========================================
+ Hits          261      262       +1     
  Misses        217      217              
  Partials       20       20              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dnaeon dnaeon merged commit e544a7e into dnaeon:v4 Oct 10, 2024
2 checks passed
@dnaeon
Copy link
Owner

dnaeon commented Oct 10, 2024

Thanks!

@ivangonzalezacuna ivangonzalezacuna deleted the matcher-ignore-headers-generic branch October 10, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants