Skip to content

FixGetRecordingTest #50222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

amariwest-msft
Copy link
Contributor

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

@Copilot Copilot AI review requested due to automatic review settings May 22, 2025 19:04
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

Enables and augments the live GetRecordingTest by removing its skip, adding playback and delays to generate valid recordings, introduces corresponding recorded JSON fixtures, and updates the asset tag.

  • Un-commented the [Ignore] on GetRecordingTest, added audio playback via PlayToAllAsync and fixed delays before stopping and fetching recordings.
  • Added new recorded test fixtures (GetRecordingTest.json and GetRecordingTestAsync.json) capturing the full sequence of call events.
  • Bumped the Tag in assets.json to reference the updated recorded fixtures.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallRecordingAutomatedLiveTests/GetRecordingTestAsync.json New JSON fixture for asynchronous recording retrieval events.
sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallRecordingAutomatedLiveTests/GetRecordingTest.json New JSON fixture for synchronous recording retrieval events.
sdk/communication/Azure.Communication.CallAutomation/tests/CallRecordings/CallRecordingAutomatedLiveTests.cs Enabled GetRecordingTest, added playback, delays, and updated logic.
sdk/communication/Azure.Communication.CallAutomation/assets.json Updated Tag to match new recorded test assets.

@@ -0,0 +1,64 @@
{
"entries": [
Copy link
Preview

Copilot AI May 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The two JSON fixtures for sync and async tests share almost identical data; consider extracting common event sequences into a shared helper or fixture to reduce duplication.

Copilot uses AI. Check for mistakes.

@amariwest-msft amariwest-msft force-pushed the amariwest/FixGetRecordingTest branch from 219523c to 94f2fd1 Compare May 23, 2025 00:57
@amariwest-msft amariwest-msft force-pushed the amariwest/FixGetRecordingTest branch from bf2c5e7 to 94f2fd1 Compare May 23, 2025 11:02
@amariwest-msft amariwest-msft force-pushed the amariwest/FixGetRecordingTest branch from d8569ce to 94f2fd1 Compare May 23, 2025 14:18
@amariwest-msft amariwest-msft enabled auto-merge (squash) May 23, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant