Skip to content

[python] Add mock API tests for ARM service group extension resources#11401

Draft
msyyc with Copilot wants to merge 3 commits into
mainfrom
copilot/add-test-case-for-pull-4891
Draft

[python] Add mock API tests for ARM service group extension resources#11401
msyyc with Copilot wants to merge 3 commits into
mainfrom
copilot/add-test-case-for-pull-4891

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

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.ServiceGroup scope and ServiceGroup ARM resource identifier scope.

Dependency bumps (packages/http-client-python/package.json)

  • @azure-tools/azure-http-specs: 0.1.0-alpha.430.1.0-alpha.44-dev.5 — includes the azure/resource-manager/service-group spec and armIdWithGroupScope field
  • @azure-tools/typespec-azure-resource-manager: ~0.70.00.71.0-dev.3 — adds Extension.ServiceGroup target
  • @azure-tools/typespec-azure-core: ~0.70.00.71.0-dev.1 — adds ServiceGroup as an armResourceIdentifier scope
  • @azure-tools/typespec-autorest, typespec-azure-rulesets, typespec-client-generator-core: aligned to compatible 0.71.0-dev.* versions

New tests

  • test_azure_arm_servicegroup.py + async counterpart: 5 tests covering the full CRUD lifecycle (get, begin_create_or_update LRO, update, delete, list_by_service_group) against the ServiceGroupExtensionClient at service group scope (/providers/Microsoft.Management/serviceGroups/{id}/...)

Updated tests

  • test_azure_arm_commonproperties.py + async counterpart: adds ARM_ID_WITH_GROUP_SCOPE constant and assertions for the new arm_id_with_group_scope property in both get and create_or_replace test cases

@azure-pipelines

Copy link
Copy Markdown
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>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Jul 27, 2026
…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
Copilot finished work on behalf of msyyc July 27, 2026 09:00
Copilot AI requested a review from msyyc July 27, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] add test case for https://github.com/Azure/typespec-azure/pull/4891

2 participants