Skip to content

Conversation

XiaofeiCao
Copy link
Contributor

Copilot AI and others added 4 commits October 21, 2025 11:46
Co-authored-by: XiaofeiCao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: XiaofeiCao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: XiaofeiCao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: XiaofeiCao <92354331+XiaofeiCao@users.noreply.github.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/Azure/typespec-azure/@azure-tools/azure-http-specs@3424

commit: 81c460b

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

  • @azure-tools/azure-http-specs
Show changes

@azure-tools/azure-http-specs - fix ✏️

Bug fix for Arm ExtensionResource test case

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue with ARM extension resource test cases by simplifying the mock API implementation. The change removes complex helper functions and duplicate test entries, replacing them with direct URI definitions for cleaner and more maintainable test scenarios.

Key Changes:

  • Removed helper functions (getServiceKey, requestHandler, getUri) and the withServiceKeys pattern
  • Eliminated duplicate test entries for various scope URIs (with and without leading slashes)
  • Simplified test definitions by using passOnSuccess directly with inline URIs

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/azure-http-specs/specs/azure/resource-manager/resources/mockapi.ts Refactored extension resource mock API by removing helper functions and duplicate entries, replacing with direct URI definitions for GET, PUT, PATCH, DELETE and list operations
.chronus/changes/fix-arm-extension-resource-2025-10-20-07-15-02.md Added changelog entry documenting the bug fix for ARM ExtensionResource test case

@XiaofeiCao XiaofeiCao added this pull request to the merge queue Oct 21, 2025
Merged via the queue into Azure:main with commit 0fbe005 Oct 21, 2025
26 checks passed
@XiaofeiCao XiaofeiCao deleted the azure-http-specs/fix-extension-resource-case branch October 21, 2025 07:00
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.

[azure-http-specs] ARM extension resource case, use passOnSuccess instead of withServiceKeys

3 participants