Skip to content

Conversation

@g2vinay
Copy link
Contributor

@g2vinay g2vinay commented Jan 6, 2026

Migrates EventHubs tests to recorded tests
Resolves #1285

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 migrates EventHubs live tests to use the recorded test infrastructure, enabling tests to run in Record/Playback modes in addition to Live mode.

Key Changes:

  • Migrated test class from CommandTestsBase to RecordedCommandTestsBase with required TestProxyFixture parameter
  • Added assets.json file to configure test proxy settings for recording/playback
  • Updated test assertions to work with sanitized values in playback mode by checking for presence rather than exact matches

Reviewed changes

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

File Description
assets.json New file configuring test proxy settings with assets repository and tag information
EventHubsCommandTests.cs Migrated to RecordedCommandTestsBase, added sanitizer configurations, updated resource naming for record/playback compatibility, modified assertions to handle sanitized values, and added unused SanitizeAndRecord helper method

@g2vinay g2vinay merged commit 5b3d8eb into microsoft:main Jan 7, 2026
52 checks passed
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure MCP Server Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

2 participants