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

[Test Proxy] Fix typo - Update RecordMatcher.cs #6151

Merged
merged 1 commit into from
May 11, 2023

Conversation

HarshaNalluru
Copy link
Member

History

In order to skip matching the browser's dynamic headers for our recordings, we skipped the headers listed in #2185 (comment)

And this was Scott's reaction and the typo crept in
[Test-Proxy] Header Exclusion Updates by scbedd · Pull Request #2317 · Azure/azure-sdk-tools (github.com)

Context on how we found it

@jeremymeng was upgrading the puppeteer version and the "sec-ch-ua" header mismatch occurred, and @timovv pointed out the list.
We could've used a sanitizer, but fixing the source feels righteous.

Copy link
Member

@scbedd scbedd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

What this header is for those who are curious.

@HarshaNalluru HarshaNalluru merged commit d355d41 into main May 11, 2023
@HarshaNalluru HarshaNalluru deleted the HarshaNalluru-patch-2 branch May 11, 2023 20:48
HarshaNalluru added a commit that referenced this pull request May 11, 2023
Ignoring the "Accept-Language" header

@timovv shared the discomfort about the number of times he had to re-record because his locale is en-CA instead of en-US.

And @jeremymeng 's puppeteer upgrade may unveil a pain later on, example below
```
RecorderError: Unable to find a record for the request POST https://keyvault_name.vault.azure.net/keys/listKeyName-cangettheversionsofakeypaged-/create?api-version=7.4 Header differences: <sec-ch-ua> values differ, request <"HeadlessChrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24">, record <> <Accept-Language> is absent in request, value <en-US> Body differences:
```

`sec-ch-ua` is just fixed in #6151
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.

2 participants