-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add scope of waitForCompletion in LRO #29033
Conversation
Hi @pshao25 So now Will LRO set two scopes, one is 'WaitForcomplete', the other is 'UpdateStatus'? |
Yes |
@AlexanderSher @chunyu3 Considering your suggesting about changing flag to string. I would add a check whether the input name is |
API change check API changes are not detected in this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What tests validate that this functionality is correct?
We will comment these lines to test this scenario https://github.com/Azure/autorest.csharp/blob/feature%2Fv3/test/AutoRest.TestServerLowLevel.Tests/dpg-customization.cs#L106-L108 |
These are changes to Azure.Core files in |
Added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have end-to-end tests for distributed tracing in long-running operations, validating each of the cases described here: Azure/autorest.csharp#2136 (comment)
Update: @AlexanderSher let me know the end-to-end tests are here: https://github.com/Azure/autorest.csharp/blob/feature/v3/test/AutoRest.TestServerLowLevel.Tests/dpg-customization.cs#L96.
We should move these into Azure.Core when we migrate these types over.
/azp run net - core - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the tests I've requested are present and pass. Please address @AlexanderSher's comments before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can merge the PR with these changes once the CI is passing. Thanks, @pshao25!
* Add scope of waitForCompletion in LRO * Change flag to string * Resolve comments * Resolve comments * Add tests * Resolve comments * Fix tests * Fix test * Fix test * Resolve comments * Resolve comments * Make scope name not nullable. * Resolve comments * Remove useless method * Resolve comment Co-authored-by: Pan Shao <pashao@microsoft.com>
* Add scope of waitForCompletion in LRO * Change flag to string * Resolve comments * Resolve comments * Add tests * Resolve comments * Fix tests * Fix test * Fix test * Resolve comments * Resolve comments * Make scope name not nullable. * Resolve comments * Remove useless method * Resolve comment Co-authored-by: Pan Shao <pashao@microsoft.com>
Fix Azure/autorest.csharp#2236