Draft
[python] Add mock API tests for ARM service group extension resources#11401
Conversation
|
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. |
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
…rces - Update @azure-tools/azure-http-specs to 0.1.0-alpha.44-dev.5 (includes service-group spec and armIdWithGroupScope) - Update @azure-tools/typespec-azure-* packages to 0.71.0-dev.* versions to support Extension.ServiceGroup and ServiceGroup ARM identifier scope - Add sync and async tests for Azure_ResourceManager_ServiceGroupExtension CRUD operations - Update commonproperties tests to include arm_id_with_group_scope assertions - Add changelog entry Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for pull request 4891
[python] Add mock API tests for ARM service group extension resources
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Python SDK Spector mock API test coverage for the ARM service group extension resource scenarios introduced in Azure/typespec-azure#4891, covering the new
Extension.ServiceGroupscope andServiceGroupARM resource identifier scope.Dependency bumps (
packages/http-client-python/package.json)@azure-tools/azure-http-specs:0.1.0-alpha.43→0.1.0-alpha.44-dev.5— includes theazure/resource-manager/service-groupspec andarmIdWithGroupScopefield@azure-tools/typespec-azure-resource-manager:~0.70.0→0.71.0-dev.3— addsExtension.ServiceGrouptarget@azure-tools/typespec-azure-core:~0.70.0→0.71.0-dev.1— addsServiceGroupas anarmResourceIdentifierscope@azure-tools/typespec-autorest,typespec-azure-rulesets,typespec-client-generator-core: aligned to compatible0.71.0-dev.*versionsNew tests
test_azure_arm_servicegroup.py+ async counterpart: 5 tests covering the full CRUD lifecycle (get,begin_create_or_updateLRO,update,delete,list_by_service_group) against theServiceGroupExtensionClientat service group scope (/providers/Microsoft.Management/serviceGroups/{id}/...)Updated tests
test_azure_arm_commonproperties.py+ async counterpart: addsARM_ID_WITH_GROUP_SCOPEconstant and assertions for the newarm_id_with_group_scopeproperty in bothgetandcreate_or_replacetest cases