Skip to content

Conversation

@scbedd
Copy link
Contributor

@scbedd scbedd commented Dec 19, 2025

Resolves #1283

@qianwens , there doesn't seem to be functional query tests in the livetest set, so I don't know if I can trust my code changes. It compiles and logically it makes sense, but I need to exercise actual functionalities. Can you please help me verify? (or tell me how to verify)

…al livetests so I don't know if we can trust my code changes
@scbedd scbedd self-assigned this Dec 19, 2025
@scbedd scbedd requested a review from qianwens as a code owner December 19, 2025 00:45
Copilot AI review requested due to automatic review settings December 19, 2025 00:45
@scbedd scbedd requested a review from a team as a code owner December 19, 2025 00:45
Copy link
Contributor

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 makes the Deploy service recordable for testing by transitioning from live tests to recorded tests. The changes follow the established pattern for enabling test recording/playback functionality using the Azure SDK Test Proxy.

Key Changes:

  • Updated DeployCommandTests to inherit from RecordedCommandTestsBase with proper fixture injection
  • Refactored client instantiation to use dependency injection pattern, passing pre-configured ArmClient and LogsQueryClient instances
  • Added assets.json configuration file for test recording management

Reviewed changes

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

Show a summary per file
File Description
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.LiveTests/assets.json Added test recording asset configuration with proper TagPrefix matching the project name
tools/Azure.Mcp.Tools.Deploy/tests/Azure.Mcp.Tools.Deploy.LiveTests/DeployCommandTests.cs Re-parented test class from CommandTestsBase to RecordedCommandTestsBase with TestProxyFixture injection
tools/Azure.Mcp.Tools.Deploy/src/Services/DeployService.cs Added CreateLogsQueryClientAsync method to create properly configured client with recording transport
tools/Azure.Mcp.Tools.Deploy/src/Services/Util/AzdResourceLogService.cs Updated to accept pre-configured ArmClient and LogsQueryClient instead of creating them internally
tools/Azure.Mcp.Tools.Deploy/src/Services/Util/AzdAppLogRetriever.cs Refactored to use dependency injection for ArmClient and LogsQueryClient, eliminating internal client creation and nullable fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

Migrate Azure.Mcp.Tools.Deploy.LiveTests LiveTests to Recorded Tests

1 participant