Skip to content

Commit a7a6b0b

Browse files
Fix failing SIP Routing tests in Communication/PhoneNumbers (Azure#32891)
* use dynamic resources * use unique FQDNs with Guid * sanitize unique FQDNs in recordings * recordings * sanitize test data in playback * clear configuration after each test for stability * samples * sanitize recordings * Update sdk/communication/Azure.Communication.PhoneNumbers/tests/SipRouting/SipRoutingClientLiveTests.cs Co-authored-by: Christopher Scott <[email protected]> * fix tests * Guid.NewGuid -> Recording.Random.NewGuid * refactor ClearConfiguration tear down method Co-authored-by: Christopher Scott <[email protected]>
1 parent c50a02a commit a7a6b0b

27 files changed

+5171
-1723
lines changed

sdk/communication/Azure.Communication.PhoneNumbers/tests/Azure.Communication.PhoneNumbers.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<!-- Shared source from Azure.Core -->
2020
<ItemGroup>
2121
<Compile Include="$(AzureCoreSharedSources)ConnectionString.cs" LinkBase="Shared" />
22+
<Compile Include="$(AzureCoreSharedSources)TaskExtensions.cs" LinkBase="Shared" />
2223
</ItemGroup>
2324
<ItemGroup>
2425
<None Include="..\samples\Sample_SipRoutingClient.md" Link="samples\Sample_SipRoutingClient.md" />

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/Sample_SipRoutingClient/ManageSipConfiguration.json

Lines changed: 118 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/Sample_SipRoutingClient/ManageSipConfigurationAsyncAsync.json

Lines changed: 131 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/AddSipTrunkForResource.json

Lines changed: 304 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/AddSipTrunkForResourceAsync.json

Lines changed: 297 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/DeleteSipTrunkForResource.json

Lines changed: 279 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/DeleteSipTrunkForResourceAsync.json

Lines changed: 279 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/GetFunctionUsingTokenAuthentication.json

Lines changed: 73 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.PhoneNumbers/tests/SessionRecords/SipRoutingClientLiveTests/GetFunctionUsingTokenAuthenticationAsync.json

Lines changed: 73 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)