Skip to content

Add spector tests for Azure Resource Manager multi-service scenarios#824

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-spector-test-azure-multi-service
Draft

Add spector tests for Azure Resource Manager multi-service scenarios#824
Copilot wants to merge 4 commits intomainfrom
copilot/add-spector-test-azure-multi-service

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Adds test coverage for the three multi-service TypeSpec definitions in azure-http-specs/specs/azure/resource-manager/multi-service*.

Changes

  • Test configuration: Added spector_arm_multi_service, spector_arm_multi_service_older_versions, and spector_arm_multi_service_shared_models to tspcompile.js

  • Test coverage: Created integration tests for each scenario:

    • multi-service: Basic combined client with VirtualMachine (Compute) and Disk (ComputeDisk) services
    • multi-service-older-versions: Combined client using @useDependency to pin specific API versions
    • multi-service-shared-models: Combined client with VirtualMachine (Compute) and StorageAccount (Storage) sharing SharedMetadata model
  • Test structure: Each test suite validates:

    • Sub-client accessors (get_combined_virtual_machines_client(), etc.)
    • GET operations for resource retrieval
    • LRO CREATE_OR_UPDATE operations using Poller API
    • Correct use of ResourceProvisioningState enum
    • Shared model serialization (metadata, tags) in shared-models scenario

The tests verify that the emitter correctly generates combined clients exposing operations from multiple Azure service namespaces through a single entry point, following the @client decorator with multiple services pattern.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add spector test for azure-http-specs\specs\azure\resource-manager\multi-service</issue_title>
<issue_description>1. Do not modify the generated rust source code (in src/generated), only modify the emitter code (in /packages/typespec-rust/src/) if necessary
2. Create the test under packages/typespec-rust/test/spector/azure/multi-service/</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 3, 2026 11:09
Co-authored-by: antkmsft <41349689+antkmsft@users.noreply.github.com>
…oningState enum

Co-authored-by: antkmsft <41349689+antkmsft@users.noreply.github.com>
Copilot AI changed the title [WIP] Add spector test for Azure HTTP specs Add spector tests for Azure Resource Manager multi-service scenarios Feb 3, 2026
Copilot AI requested a review from antkmsft February 3, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add spector test for azure-http-specs\specs\azure\resource-manager\multi-service\

2 participants