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] Don't match on x-ms-useragent #2185

Merged
merged 2 commits into from
Oct 29, 2021
Merged

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Oct 28, 2021

We actually already treat the header User-Agent as volatile, so this isn't even a departure from what the test-proxy already does. Just an extension of it.

@HarshaNalluru

@scbedd scbedd requested a review from mikeharder as a code owner October 28, 2021 22:49
@@ -7,6 +7,7 @@
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>test-proxy</ToolCommandName>
<LangVersion>9.0</LangVersion>
Copy link
Member Author

Choose a reason for hiding this comment

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

Intentional change. Given that the default build version in azure-sdk-tools is core 3.1, max language version supported is C# 8.0.

This package is built on .NET 5.0.XX, so we need to override the props file with the version necessary for us, which is 9.0. We make use of is not null :).

@scbedd scbedd merged commit 48f528b into Azure:main Oct 29, 2021
@@ -38,6 +38,7 @@ public RecordMatcher(bool compareBodies = true)
"x-ms-date",
"x-ms-client-request-id",
"User-Agent",
"x-ms-useragent",
Copy link
Member

Choose a reason for hiding this comment

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

marking more exclusions to consider
image

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