Add Python mock-api tests for postPagingLroWithBody ARM LRO paging scenario#11344
Conversation
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
@copilot Follow https://github.com/microsoft/typespec/blob/63abfc2113f2751cb482daa8aeb6f519ef07662d/.github/skills/python-sdk-spector-mock-api-tests/SKILL.md to add python test case for Azure/typespec-azure#4632 in this PR |
|
You can try these changes here
|
…e#4632 Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Added Python mock-api tests (sync + async) for the operation-templates scenarios introduced in Azure/typespec-azure#4632:
All 44 operation-templates tests pass locally against the Spector mock server. One note on |
Adds Python SDK coverage for the
postPagingLroWithBodyARM scenario updated in Azure/typespec-azure#4991, which declares the LRO final result (ArmLroLocationHeader<FinalResult = ProductListResult>) for a paged LRO POST that takes a request body.Changes
@azure-tools/azure-http-specsto0.1.0-alpha.44-dev.4, the first published version containing the fix.mock_api/azure/test_azure_arm_operationtemplates.py): exercisesbegin_post_paging_lro_with_bodywith aVnetProfilebody and asserts the two-page result.mock_api/azure/asynctests/test_azure_arm_operationtemplates_async.py): async counterpart.internalentry for@typespec/http-client-python.