Content-Length: 294602 | pFad | http://github.com/Azure/azure-sdk-for-net/pull/50471

B6 Adopt special-headers and serialization spector scenarios by JoshLove-msft · Pull Request #50471 · Azure/azure-sdk-for-net · GitHub
Skip to content

Adopt special-headers and serialization spector scenarios #50471

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

Merged
merged 2 commits into from
Jun 6, 2025

Conversation

JoshLove-msft
Copy link
Member

Fixes #48064

@Copilot Copilot AI review requested due to automatic review settings June 6, 2025 18:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adopts new Spector scenarios for special headers and serialization, addressing the issue #48064 by adding new tests for special header behaviors and JSON property encoding.

  • Added tests for repeatability and conditional request headers.
  • Added tests for JSON-encoded name serialization.
  • Updated the test projects’ csproj by removing the Azure.Core package reference to better align dependencies.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialHeaders/Repeatability/RepeatabilityTests.cs Introduces tests for repeatability headers, verifying header values and ensuring no unintended parameters.
eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialHeaders/ConditionalRequest/ConditionalRequestHeaderTests.cs Adds tests for conditional request headers with various HTTP methods and header scenarios.
eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Serialization/EncodedName/Json/EncodedNameJsonTests.cs Implements tests for JSON serialization using encoded property names.
eng/packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj Removes the Azure.Core package reference to reflect updated dependency requirements.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation labels Jun 6, 2025
@JoshLove-msft JoshLove-msft enabled auto-merge (squash) June 6, 2025 18:39
@JoshLove-msft JoshLove-msft merged commit c7dcb11 into Azure:main Jun 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt serialization scenarios from Spector
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Azure/azure-sdk-for-net/pull/50471

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy