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

ARM, test case for LRO #696

Closed
Tracked by #585
XiaofeiCao opened this issue Aug 14, 2024 · 1 comment · Fixed by Azure/typespec-azure#1821
Closed
Tracked by #585

ARM, test case for LRO #696

XiaofeiCao opened this issue Aug 14, 2024 · 1 comment · Fixed by Azure/typespec-azure#1821
Assignees

Comments

@XiaofeiCao
Copy link
Contributor

XiaofeiCao commented Aug 14, 2024

Add LRO test case. Support both location headers and Azure-AsyncOperation.
ARM LRO guideline: https://github.com/cloud-and-ai-microsoft/resource-provider-contract/blob/master/v1.0/async-api-reference.md

@XiaofeiCao XiaofeiCao self-assigned this Oct 28, 2024
@XiaofeiCao
Copy link
Contributor Author

XiaofeiCao commented Nov 1, 2024

We should already have enough LRO cases for now: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/azure/resource-manager/resources/toplevel.tsp#L43-L44

LRO pageable will be covered in #695, closing this issue.

@XiaofeiCao XiaofeiCao reopened this Nov 7, 2024
github-merge-queue bot pushed a commit to Azure/typespec-azure that referenced this issue Dec 10, 2024
### Context
- fix Azure/cadl-ranch#696
- ARM LRO guideline:
https://github.com/cloud-and-ai-microsoft/resource-provider-contract/blob/master/v1.0/async-api-reference.md
- not covering legacy cases

### Content
|verb|lro type|expected polling pattern|
|--|--|--|
|PUT|AAO|poll AAO, get final result through original(resource) uri
|POST|AAO+Location|poll AAO, get final result through Location|
|DELETE|Location|poll Location, until 204|
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 a pull request may close this issue.

1 participant