-
Notifications
You must be signed in to change notification settings - Fork 67
Add LRO test with array response using ArmProviderActionAsync #3791
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 LRO test with array response using ArmProviderActionAsync #3791
Conversation
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
|
In mockapi.ts For response with status 202, add a header. In section of "// LRO POST poll intermediate/get final result - Azure-AsyncOperation Header" header. When exportArrayPollCount>0, response should have the location header In section of "// LRO POST poll intermediate/get final result - Location Header" Check the instruction, run the necessary pnpm command, include |
…polling state Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
All requested changes have been implemented in commit bbdddc2:
|
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
|
The model on the Response is wrong. It should not be a model ExportResultArray with value of string[]. It should be the array itself, e.g. Fix this, update mockapi, scenario doc, summary accordingly. |
commit: |
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Fixed in commit 02f1d75:
|
|
run pnpm format |
|
And |
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
|
run |
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Plan to Add exportArray LRO Test with Array Response
retry-after: 1header to all 202 responses (including Location polling)Implementation Complete
Successfully added
exportArrayoperation that returns an array of ExportResult objects directly, with proper LRO polling headers that conform to Azure LRO specifications.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.