Add DPG testserver tests for developer driven evolution#1989
Conversation
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. |
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.
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!
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?