Repository navigation
Refactor voice agent telephony API tests to remove beta references - #49898
Howie Leung (howieleung) wants to merge 5 commits into
Conversation
- Updated test files to use the stable `project_client.voice_agents.telephony.*` methods instead of the deprecated `project_client.beta.voice_agents.telephony.*`. - Adjusted assertions and method calls across various test cases for telephony bindings, transfer targets, and call jobs. - Removed unnecessary beta flags and ensured that the Foundry-Features header is correctly handled in both synchronous and asynchronous tests. - Updated sample tests to reflect the new API structure and ensure proper cleanup of resources. - Modified the tsp-location.yaml to point to the latest commit in the Azure REST API specs repository.
|
Add |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
- Updated the README and API documentation to reflect the change from `campaigns` to `telephony` in the voice agents operations. - Refactored the `BetaVoiceAgentsCampaignsOperations` class to `BetaVoiceAgentsTelephonyOperations` and adjusted all related methods and requests accordingly. - Modified the client initialization to replace references to campaigns with telephony. - Updated tests to ensure proper wiring and functionality of the new telephony operations. - Adjusted foundry features header tests to include the new telephony subclient.
[Pilot] PR Pipeline Failure AnalysisWhat failedBuild 7055062 ("python - pullrequest") failed across all 6 test matrix jobs (Ubuntu2404_313/314, macos311, ubuntu2404_311(+coverage), windows2022_312) plus the Build Analyze job, with three distinct, PR-introduced root causes: 1. This PR adds if self._config.allow_preview:
setattr(self, "telephony", _OperationMethodHeaderProxy(...))
2. The test calls 3.
4. Two same-named Relevant pipeline outputRecommended next steps
Automated fix: Requested
|
project_client.voice_agents.telephony.*methods instead of the deprecatedproject_client.beta.voice_agents.telephony.*.Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines