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

Fix extensible headers duplicate tests #1405

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

joelrosario
Copy link
Member

What:

Added back the ability to use extra headers in examples

Why:

This was temporarily removed due to a bug in which the presence of auth headers resulted in two contract tests.

How:

Added metadata to the HttpRequest to indicate which headers were added for auth, and a method for doing this to HttpRequest. This object is used to get a list of extra headers that are not in the spec.

…ec file, one used on the API, and the associated header in an external example works as expected
…ec file, both used on the API, and the associated header of only one in an external example works as expected
@joelrosario joelrosario self-assigned this Oct 31, 2024
@joelrosario joelrosario merged commit 7ac3c80 into main Oct 31, 2024
2 checks passed
@joelrosario joelrosario deleted the fix-extensible-headers-duplicate-tests branch October 31, 2024 04:57
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.

1 participant