Add DPG testserver tests for developer driven evolution#1989
Add DPG testserver tests for developer driven evolution#1989pshao25 merged 17 commits intoAzure:feature/v3from
Conversation
test/TestServerProjectsLowLevel/dpg-customization/Generated/DPGClient.cs
Show resolved
Hide resolved
annelo-msft
left a comment
There was a problem hiding this comment.
@pshao25, I wasn't able to find the swagger file the client was generated from. Could you provide a link to this in the PR description?
|
@annelo-msft - Here is the swagger link https://github.com/Azure/autorest.testserver/blob/main/swagger/dpg-customization.json. This is a test server project. All languages use test server swagger to generate code and add test cases to verify that the generated result is correct or not. |
test/TestServerProjectsLowLevel/dpg-customization/Generated/DPGClient.cs
Show resolved
Hide resolved
annelo-msft
left a comment
There was a problem hiding this comment.
Let's wait to check this in until we have resolution on what the grow-up methods should look like.
test/TestServerProjectsLowLevel/dpg-customization/Generated/DPGClient.cs
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Generated/DPGClient.cs
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Models/Input.Serialization.cs
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Models/Input.Serialization.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Models/LROProduct.Serialization.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Generated/DPGClient.cs
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Models/ProductResult.Serialization.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Outdated
Show resolved
Hide resolved
annelo-msft
left a comment
There was a problem hiding this comment.
Added a few comments and checked off completed APIs in the description checklist. This is getting close!
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Outdated
Show resolved
Hide resolved
test/TestServerProjectsLowLevel/dpg-customization/Customization/DPGClient.cs
Outdated
Show resolved
Hide resolved
annelo-msft
left a comment
There was a problem hiding this comment.
Only things left are updating to GetPagesValues and using the model's on serializer for creating the RequestContext.
annelo-msft
left a comment
There was a problem hiding this comment.
Thanks for your perseverance on this task!
Description
Add DGP testserver tests for developer driven evolution
Addresses #1944
Test Cases
Service Methods
public virtual Response GetModel(string mode, RequestContext context = null)public virtual Response<Product> GetModelValue(string mode, CancellationToken cancellationToken = default)public virtual Response PostModel(string mode, RequestContent content, RequestContext context = null)public virtual Response<Product> PostModel(string mode, Input input, CancellationToken cancellationToken = default)public virtual Pageable<BinaryData> GetPages(string mode, RequestContext context = null)public virtual Pageable<Product> GetPagesValues(string mode, CancellationToken cancellationToken = default)LRO grow-ups moved to #2027.
Relevant docs
https://github.com/Azure/autorest.testserver/wiki/Data-plane-codegen-testing#developer-driven-evolution
https://github.com/Azure/autorest.testserver/blob/main/swagger/dpg-customization.json
Checklist
To ensure a quick review and merge, please ensure:
Ready to Land?