Skip to content

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

Merged
Yuchao Yan (msyyc) merged 5 commits into
mainfrom
copilot/add-test-case-for-pull-4891
Aug 14, 2026
Merged

[python] Add mock API tests for ARM service group extension resources#11401
Yuchao Yan (msyyc) merged 5 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 AI requested a review from Yuchao Yan (msyyc) July 27, 2026 09:00
@microsoft-github-policy-service microsoft-github-policy-service Bot added the stale Mark a PR that hasn't been recently updated and will be closed. label Aug 11, 2026
@msyyc

Copy link
Copy Markdown
Contributor

Copilot resolve the merge conflicts in this pull request

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Copilot resolve the merge conflicts in this pull request

Resolved the merge conflicts with latest main in merge commit aacf7e88b. The focused service-group sync/async test suite passes (10 tests).

@azure-sdk-automation

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new

pkg-pr-new Bot commented Aug 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@11401

commit: 3c676b8

@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Add test coverage for Azure ARM service group extension resources and ARM resource identifier group scope

@github-actions

Copy link
Copy Markdown
Contributor

Python emitter diff

Baseline gh:e097c90c94f8fd565422b3fba645368acd712e14 vs this PR.

No changes to generated output.

Rendered diff: inline on the run summary, or the emitter-diff-html artifact.

Informational check (eng/emitter-diff); does not block the PR.

@msyyc
Yuchao Yan (msyyc) added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit db58bcd Aug 14, 2026
37 checks passed
@msyyc
Yuchao Yan (msyyc) deleted the copilot/add-test-case-for-pull-4891 branch August 14, 2026 06:50
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 stale Mark a PR that hasn't been recently updated and will be closed.

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

3 participants