From 941cf29cb69131443e40253a776655d10e26db45 Mon Sep 17 00:00:00 2001 From: AriZavala2 <77034370+AriZavala2@users.noreply.github.com> Date: Thu, 18 Nov 2021 09:57:27 -0800 Subject: [PATCH] TURN: Adding RouteType optional parameter to GetRelayConfiguration (#25032) * Add Anycast parameter to GetRelayConfiguration * Update PR, removing unused snippet. * Modified swagger, so adding new autogenerated code * Update PR * Update PR, add new recordings, reenable non-identity tests * Adding GetRelayOptions and updating Readme and changelog * Update PR * Update PR --- .../CHANGELOG.md | 8 +- .../README.md | 12 ++- ...ication.NetworkTraversal.netstandard2.0.cs | 40 +++++++- .../Sample1_CommunicationRelayClient.md | 3 +- .../Sample1_CommunicationRelayClientAsync.md | 3 +- ...zure.Communication.NetworkTraversal.csproj | 2 +- .../src/CommunicationRelayClient.cs | 66 ++++++++++--- .../src/CommunicationRelayClientOptions.cs | 10 +- ...CommunicationNetworkTraversalRestClient.cs | 17 ++-- .../CommunicationIceServer.Serialization.cs | 8 +- .../Models/CommunicationIceServer.cs | 10 +- ...RelayConfigurationRequest.Serialization.cs | 5 + .../CommunicationRelayConfigurationRequest.cs | 2 + .../src/Generated/Models/RouteType.cs | 51 ++++++++++ .../Generated/NetworkTraversalModelFactory.cs | 5 +- .../Models/GetRelayConfigurationOptions.cs | 15 +++ .../src/autorest.md | 4 +- .../CommunicationRelayClientLiveTests.cs | 49 +++++++++- ...ngTurnCredentialsWithConnectionString.json | 74 ++++++++------ ...nCredentialsWithConnectionStringAsync.json | 74 ++++++++------ ...tialsWithConnectionStringRouteTypeAny.json | 98 +++++++++++++++++++ ...WithConnectionStringRouteTypeAnyAsync.json | 98 +++++++++++++++++++ ...sWithConnectionStringRouteTypeNearest.json | 98 +++++++++++++++++++ ...ConnectionStringRouteTypeNearestAsync.json | 98 +++++++++++++++++++ ...lsWithConnectionStringWithoutIdentity.json | 45 ++++++--- ...hConnectionStringWithoutIdentityAsync.json | 45 ++++++--- ...ttingTurnCredentialsWithKeyCredential.json | 74 ++++++++------ ...TurnCredentialsWithKeyCredentialAsync.json | 74 ++++++++------ ...entialsWithKeyCredentialRouteTypeAny.json} | 68 +++++++------ ...alsWithKeyCredentialRouteTypeAnyAsync.json | 98 +++++++++++++++++++ ...ialsWithKeyCredentialRouteTypeNearest.json | 98 +++++++++++++++++++ ...ithKeyCredentialRouteTypeNearestAsync.json | 98 +++++++++++++++++++ ...tialsWithKeyCredentialWithoutIdentity.json | 45 ++++++--- ...WithKeyCredentialWithoutIdentityAsync.json | 45 ++++++--- ...ingTurnCredentialsWithTokenCredential.json | 72 ++++++++------ ...rnCredentialsWithTokenCredentialAsync.json | 72 ++++++++------ ...ntialsWithTokenCredentialRouteTypeAny.json | 96 ++++++++++++++++++ ...sWithTokenCredentialRouteTypeAnyAsync.json | 96 ++++++++++++++++++ ...lsWithTokenCredentialRouteTypeNearest.json | 96 ++++++++++++++++++ ...hTokenCredentialRouteTypeNearestAsync.json | 96 ++++++++++++++++++ ...alsWithTokenCredentialWithoutIdentity.json | 43 +++++--- ...thTokenCredentialWithoutIdentityAsync.json | 43 +++++--- ...CreateCommunicationRelayWithAccessKey.json | 74 ++++++++------ ...eCommunicationRelayWithAccessKeyAsync.json | 74 ++++++++------ ...tionRelayWithAccessKeyWithoutIdentity.json | 45 ++++++--- ...elayWithAccessKeyWithoutIdentityAsync.json | 45 ++++++--- .../CreateCommunicationRelayWithToken.json | 72 ++++++++------ ...reateCommunicationRelayWithTokenAsync.json | 72 ++++++++------ ...nicationRelayWithTokenWithoutIdentity.json | 50 ---------- ...ionRelayWithTokenWithoutIdentityAsync.json | 50 ---------- .../GetRelayConfiguration.json | 70 ++++++++----- .../GetRelayConfigurationAsyncAsync.json | 74 ++++++++------ ...urationAsyncWithNearestRouteTypeAsync.json | 98 +++++++++++++++++++ ...elayConfigurationAsyncWithoutIdentity.json | 52 ---------- ...onfigurationAsyncWithoutIdentityAsync.json | 45 ++++++--- ...elayConfigurationWithNearestRouteType.json | 96 ++++++++++++++++++ .../GetRelayConfigurationWithoutIdentity.json | 43 +++++--- .../Sample1_CommunicationRelayClient.cs | 86 +++++++++++++--- 58 files changed, 2458 insertions(+), 742 deletions(-) create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/RouteType.cs create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/src/Models/GetRelayConfigurationOptions.cs create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAny.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAnyAsync.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearest.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearestAsync.json rename sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/{Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json => CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAny.json} (53%) create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAnyAsync.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearest.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearestAsync.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAny.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAnyAsync.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearest.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearestAsync.json delete mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentity.json delete mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentityAsync.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithNearestRouteTypeAsync.json delete mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentity.json create mode 100644 sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithNearestRouteType.json diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md index 5608fb7087e8f..3d3ab288603da 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md @@ -1,9 +1,13 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2021-11-18) ### Features Added -- Making user identity an optional argument when calling GetRelayConfiguration and GetRelayConfigurationAsync + +- RouteType is a new added parameter that allows the user to specify the desired routing protocol for the + requested RelayConfiguration +- Introducing GetRelayConfigurationOptions which contains the optional parameters UserIdentity and RouteType + when calling the methods GetRelayConfiguration and GetRelayConfigurationAsync. ### Breaking Changes diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/README.md b/sdk/communication/Azure.Communication.NetworkTraversal/README.md index 07c2bba15d352..3758b8ecde1ee 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/README.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/README.md @@ -10,7 +10,7 @@ Azure Communication Network Traversal enables high bandwidth, low latency connec Install the Azure Communication Network Traversal client library for .NET with [NuGet][nuget]: ```dotnetcli -dotnet add package Azure.Communication.NetworkTraversal --version 1.0.0-beta.2 +dotnet add package Azure.Communication.NetworkTraversal --version 1.0.0-beta.3 ``` ### Prerequisites @@ -68,7 +68,7 @@ We guarantee that all client instance methods are thread-safe and independent of ## Getting a Relay Configuration for a user ```C# Snippet:GetRelayConfigurationAsync -Response relayConfiguration = await client.GetRelayConfigurationAsync(user); +Response relayConfiguration = await client.GetRelayConfigurationAsync(); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -80,13 +80,14 @@ foreach (CommunicationIceServer iceServer in iceServers) } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); } ``` -## Getting a Relay Configuration for a user without identity async +## Getting a Relay Configuration for a user with a specified routeType -```C# Snippet:GetRelayConfigurationAsyncWithoutIdentity -Response relayConfiguration = await client.GetRelayConfigurationAsync(); +```C# Snippet:GetRelayConfigurationAsyncWithNearestRouteType +Response relayConfiguration = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions { CommunicationUser = user, RouteType = RouteType.Nearest }); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -98,6 +99,7 @@ foreach (CommunicationIceServer iceServer in iceServers) } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server Route Type: {iceServer.RouteType}"); } ``` diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/api/Azure.Communication.NetworkTraversal.netstandard2.0.cs b/sdk/communication/Azure.Communication.NetworkTraversal/api/Azure.Communication.NetworkTraversal.netstandard2.0.cs index ecbaa90ab4f91..9ffd494e1fcf1 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/api/Azure.Communication.NetworkTraversal.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/api/Azure.Communication.NetworkTraversal.netstandard2.0.cs @@ -4,6 +4,7 @@ public partial class CommunicationIceServer { internal CommunicationIceServer() { } public string Credential { get { throw null; } } + public Azure.Communication.NetworkTraversal.RouteType RouteType { get { throw null; } } public System.Collections.Generic.IReadOnlyList Urls { get { throw null; } } public string Username { get { throw null; } } } @@ -14,15 +15,17 @@ public CommunicationRelayClient(string connectionString) { } public CommunicationRelayClient(string connectionString, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options) { } public CommunicationRelayClient(System.Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options = null) { } public CommunicationRelayClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options = null) { } - public virtual Azure.Response GetRelayConfiguration(Azure.Communication.CommunicationUserIdentifier communicationUser = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRelayConfigurationAsync(Azure.Communication.CommunicationUserIdentifier communicationUser = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRelayConfiguration(Azure.Communication.NetworkTraversal.Models.GetRelayConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRelayConfiguration(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRelayConfigurationAsync(Azure.Communication.NetworkTraversal.Models.GetRelayConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRelayConfigurationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class CommunicationRelayClientOptions : Azure.Core.ClientOptions { - public CommunicationRelayClientOptions(Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions.ServiceVersion version = Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions.ServiceVersion.V2021_06_21_preview) { } + public CommunicationRelayClientOptions(Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions.ServiceVersion version = Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions.ServiceVersion.V2021_10_08_preview) { } public enum ServiceVersion { - V2021_06_21_preview = 1, + V2021_10_08_preview = 1, } } public partial class CommunicationRelayConfiguration @@ -33,7 +36,34 @@ internal CommunicationRelayConfiguration() { } } public static partial class NetworkTraversalModelFactory { - public static Azure.Communication.NetworkTraversal.CommunicationIceServer CommunicationIceServer(System.Collections.Generic.IEnumerable urls = null, string username = null, string credential = null) { throw null; } + public static Azure.Communication.NetworkTraversal.CommunicationIceServer CommunicationIceServer(System.Collections.Generic.IEnumerable urls = null, string username = null, string credential = null, Azure.Communication.NetworkTraversal.RouteType routeType = default(Azure.Communication.NetworkTraversal.RouteType)) { throw null; } public static Azure.Communication.NetworkTraversal.CommunicationRelayConfiguration CommunicationRelayConfiguration(System.DateTimeOffset expiresOn = default(System.DateTimeOffset), System.Collections.Generic.IEnumerable iceServers = null) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RouteType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RouteType(string value) { throw null; } + public static Azure.Communication.NetworkTraversal.RouteType Any { get { throw null; } } + public static Azure.Communication.NetworkTraversal.RouteType Nearest { get { throw null; } } + public bool Equals(Azure.Communication.NetworkTraversal.RouteType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.NetworkTraversal.RouteType left, Azure.Communication.NetworkTraversal.RouteType right) { throw null; } + public static implicit operator Azure.Communication.NetworkTraversal.RouteType (string value) { throw null; } + public static bool operator !=(Azure.Communication.NetworkTraversal.RouteType left, Azure.Communication.NetworkTraversal.RouteType right) { throw null; } + public override string ToString() { throw null; } + } +} +namespace Azure.Communication.NetworkTraversal.Models +{ + public partial class GetRelayConfigurationOptions + { + public GetRelayConfigurationOptions() { } + public Azure.Communication.CommunicationUserIdentifier CommunicationUser { get { throw null; } set { } } + public Azure.Communication.NetworkTraversal.RouteType? RouteType { get { throw null; } set { } } + } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClient.md b/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClient.md index 2c00a584179a6..1614fba8d3df2 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClient.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClient.md @@ -40,7 +40,7 @@ A configuration is returned for the user. Each configuration consists of a URL f Every relay configuration has an expiry date and time stamped on it, indicating when the set of TURN credentials will no longer be accepted. Once the credentials have expired, you can renew the token by calling the same method. ```C# Snippet:GetRelayConfiguration -Response relayConfiguration = client.GetRelayConfiguration(user); +Response relayConfiguration = client.GetRelayConfiguration(); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -52,6 +52,7 @@ foreach (CommunicationIceServer iceServer in iceServers) } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); } ``` diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClientAsync.md b/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClientAsync.md index 783ed8e938b83..3d8b4374cb33a 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClientAsync.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/samples/Sample1_CommunicationRelayClientAsync.md @@ -40,7 +40,7 @@ A configuration is returned for the user. Each configuration consists of a URL f Every relay configuration has an expiry date and time stamped on it, indicating when the set of TURN credentials will no longer be accepted. Once the credentials have expired, you can renew the token by calling the same method. ```C# Snippet:GetRelayConfigurationAsync -Response relayConfiguration = await client.GetRelayConfigurationAsync(user); +Response relayConfiguration = await client.GetRelayConfigurationAsync(); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -52,6 +52,7 @@ foreach (CommunicationIceServer iceServer in iceServers) } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); } ``` diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Azure.Communication.NetworkTraversal.csproj b/sdk/communication/Azure.Communication.NetworkTraversal/src/Azure.Communication.NetworkTraversal.csproj index 13b2b746092ee..7d290f13cf52a 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Azure.Communication.NetworkTraversal.csproj +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Azure.Communication.NetworkTraversal.csproj @@ -1,4 +1,4 @@ - + This client library enables working with the Microsoft Azure Communication Network Traversal service. diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs index 4af293d43dcde..c4835f8c6467f 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs @@ -4,6 +4,7 @@ using System; using System.Threading; using System.Threading.Tasks; +using Azure.Communication.NetworkTraversal.Models; using Azure.Communication.Pipeline; using Azure.Core; using Azure.Core.Pipeline; @@ -21,7 +22,7 @@ public class CommunicationRelayClient #region public constructors - all argument need null check /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. + /// Connection string acquired from the Azure Communication Services resource. public CommunicationRelayClient(string connectionString) : this( ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), @@ -29,8 +30,8 @@ public CommunicationRelayClient(string connectionString) { } /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. - /// Client option exposing , , , etc. + /// Connection string acquired from the Azure Communication Services resource. + /// Client option exposing , , , etc. public CommunicationRelayClient(string connectionString, CommunicationRelayClientOptions options) : this( ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), @@ -38,9 +39,9 @@ public CommunicationRelayClient(string connectionString, CommunicationRelayClien { } /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The used to authenticate requests. - /// Client option exposing , , , etc. + /// The URI of the Azure Communication Services resource. + /// The used to authenticate requests. + /// Client option exposing , , , etc. public CommunicationRelayClient(Uri endpoint, AzureKeyCredential keyCredential, CommunicationRelayClientOptions options = default) : this( Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, @@ -49,8 +50,8 @@ public CommunicationRelayClient(Uri endpoint, AzureKeyCredential keyCredential, { } /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The used to authenticate requests, such as DefaultAzureCredential. + /// The URI of the Azure Communication Services resource. + /// The used to authenticate requests, such as DefaultAzureCredential. /// Client option exposing , , , etc. public CommunicationRelayClient(Uri endpoint, TokenCredential tokenCredential, CommunicationRelayClientOptions options = default) : this( @@ -91,16 +92,16 @@ protected CommunicationRelayClient() } /// Gets a Relay Configuration for a . - /// The for whom to issue a token. + /// The for the request. /// The cancellation token to use. /// The server returned an error. - public virtual Response GetRelayConfiguration(CommunicationUserIdentifier communicationUser = null, CancellationToken cancellationToken = default) + public virtual Response GetRelayConfiguration(GetRelayConfigurationOptions options, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}"); scope.Start(); try { - return RestClient.IssueRelayConfiguration(communicationUser?.Id, cancellationToken); + return RestClient.IssueRelayConfiguration(options.CommunicationUser?.Id, options?.RouteType, cancellationToken); } catch (Exception ex) { @@ -109,16 +110,51 @@ public virtual Response GetRelayConfiguration(C } } - /// Asynchronously gets a Relay Configuration for a . - /// The for whom to issue a token. + /// Gets a Relay Configuration for a . /// The cancellation token to use. - public virtual async Task> GetRelayConfigurationAsync(CommunicationUserIdentifier communicationUser = null, CancellationToken cancellationToken = default) + /// The server returned an error. + public virtual Response GetRelayConfiguration(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}"); + scope.Start(); + try + { + return RestClient.IssueRelayConfiguration(cancellationToken: cancellationToken); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Asynchronously gets a Relay Configuration for a . + /// The for the request. + /// The cancellation token to use. + public virtual async Task> GetRelayConfigurationAsync(GetRelayConfigurationOptions options, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}"); + scope.Start(); + try + { + return await RestClient.IssueRelayConfigurationAsync(options?.CommunicationUser?.Id, options?.RouteType, cancellationToken).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Asynchronously gets a Relay Configuration for a . + /// The cancellation token to use. + public virtual async Task> GetRelayConfigurationAsync(CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}"); scope.Start(); try { - return await RestClient.IssueRelayConfigurationAsync(communicationUser?.Id, cancellationToken).ConfigureAwait(false); + return await RestClient.IssueRelayConfigurationAsync(cancellationToken: cancellationToken).ConfigureAwait(false); } catch (Exception ex) { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClientOptions.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClientOptions.cs index 119077b63539a..3244fe4221d04 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClientOptions.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClientOptions.cs @@ -14,7 +14,7 @@ public class CommunicationRelayClientOptions : ClientOptions /// /// The latest version of the networking service. /// - internal const ServiceVersion LatestVersion = ServiceVersion.V2021_06_21_preview; + internal const ServiceVersion LatestVersion = ServiceVersion.V2021_10_08_preview; internal string ApiVersion { get; } @@ -25,7 +25,7 @@ public CommunicationRelayClientOptions(ServiceVersion version = LatestVersion) { ApiVersion = version switch { - ServiceVersion.V2021_06_21_preview => "2021-06-21-preview", + ServiceVersion.V2021_10_08_preview => "2021-10-08-preview", _ => throw new ArgumentOutOfRangeException(nameof(version)), }; } @@ -36,11 +36,11 @@ public CommunicationRelayClientOptions(ServiceVersion version = LatestVersion) public enum ServiceVersion { #pragma warning disable CA1707 // Identifiers should not contain underscores +#pragma warning disable AZC0016 // Invalid ServiceVersion member name. /// - /// The V2021_06_21_preview of the networking service. + /// The V2021_10_08_preview of the networking service. /// -#pragma warning disable AZC0016 // Invalid ServiceVersion member name. - V2021_06_21_preview = 1, + V2021_10_08_preview = 1, #pragma warning restore AZC0016 // Invalid ServiceVersion member name. #pragma warning restore CA1707 // Identifiers should not contain underscores } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs index 88fe37f2a872c..faef75bef1aae 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs @@ -28,7 +28,7 @@ internal partial class CommunicationNetworkTraversalRestClient /// The communication resource, for example https://my-resource.communication.azure.com. /// Api Version. /// or is null. - public CommunicationNetworkTraversalRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-06-21-preview") + public CommunicationNetworkTraversalRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-10-08-preview") { this.endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); this.apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); @@ -36,7 +36,7 @@ public CommunicationNetworkTraversalRestClient(ClientDiagnostics clientDiagnosti _pipeline = pipeline; } - internal HttpMessage CreateIssueRelayConfigurationRequest(string id) + internal HttpMessage CreateIssueRelayConfigurationRequest(string id, RouteType? routeType) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -50,7 +50,8 @@ internal HttpMessage CreateIssueRelayConfigurationRequest(string id) request.Headers.Add("Content-Type", "application/json"); var model = new CommunicationRelayConfigurationRequest() { - Id = id + Id = id, + RouteType = routeType }; var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); @@ -60,10 +61,11 @@ internal HttpMessage CreateIssueRelayConfigurationRequest(string id) /// Issue a configuration for an STUN/TURN server for an existing identity. /// An existing ACS identity. + /// The routing methodology to where the ICE server will be located from the client. /// The cancellation token to use. - public async Task> IssueRelayConfigurationAsync(string id = null, CancellationToken cancellationToken = default) + public async Task> IssueRelayConfigurationAsync(string id = null, RouteType? routeType = null, CancellationToken cancellationToken = default) { - using var message = CreateIssueRelayConfigurationRequest(id); + using var message = CreateIssueRelayConfigurationRequest(id, routeType); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -81,10 +83,11 @@ public async Task> IssueRelayConfigura /// Issue a configuration for an STUN/TURN server for an existing identity. /// An existing ACS identity. + /// The routing methodology to where the ICE server will be located from the client. /// The cancellation token to use. - public Response IssueRelayConfiguration(string id = null, CancellationToken cancellationToken = default) + public Response IssueRelayConfiguration(string id = null, RouteType? routeType = null, CancellationToken cancellationToken = default) { - using var message = CreateIssueRelayConfigurationRequest(id); + using var message = CreateIssueRelayConfigurationRequest(id, routeType); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs index bc3bb85bd5f07..9063fe01c7d00 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs @@ -18,6 +18,7 @@ internal static CommunicationIceServer DeserializeCommunicationIceServer(JsonEle IReadOnlyList urls = default; string username = default; string credential = default; + RouteType routeType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("urls")) @@ -40,8 +41,13 @@ internal static CommunicationIceServer DeserializeCommunicationIceServer(JsonEle credential = property.Value.GetString(); continue; } + if (property.NameEquals("routeType")) + { + routeType = new RouteType(property.Value.GetString()); + continue; + } } - return new CommunicationIceServer(urls, username, credential); + return new CommunicationIceServer(urls, username, credential, routeType); } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.cs index 2605d446457e4..1d0f425895294 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.cs @@ -18,8 +18,9 @@ public partial class CommunicationIceServer /// List of STUN/TURN server URLs. /// User account name which uniquely identifies the credentials. /// Credential for the server. + /// The routing methodology to where the ICE server will be located from the client. /// , , or is null. - internal CommunicationIceServer(IEnumerable urls, string username, string credential) + internal CommunicationIceServer(IEnumerable urls, string username, string credential, RouteType routeType) { if (urls == null) { @@ -37,17 +38,20 @@ internal CommunicationIceServer(IEnumerable urls, string username, strin Urls = urls.ToList(); Username = username; Credential = credential; + RouteType = routeType; } /// Initializes a new instance of CommunicationIceServer. /// List of STUN/TURN server URLs. /// User account name which uniquely identifies the credentials. /// Credential for the server. - internal CommunicationIceServer(IReadOnlyList urls, string username, string credential) + /// The routing methodology to where the ICE server will be located from the client. + internal CommunicationIceServer(IReadOnlyList urls, string username, string credential, RouteType routeType) { Urls = urls; Username = username; Credential = credential; + RouteType = routeType; } /// List of STUN/TURN server URLs. @@ -56,5 +60,7 @@ internal CommunicationIceServer(IReadOnlyList urls, string username, str public string Username { get; } /// Credential for the server. public string Credential { get; } + /// The routing methodology to where the ICE server will be located from the client. + public RouteType RouteType { get; } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs index e6c04349ca5dd..fc80afd365117 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs @@ -20,6 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("id"); writer.WriteStringValue(Id); } + if (Optional.IsDefined(RouteType)) + { + writer.WritePropertyName("routeType"); + writer.WriteStringValue(RouteType.Value.ToString()); + } writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs index 37d0274482ca5..95cd00c996304 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs @@ -17,5 +17,7 @@ public CommunicationRelayConfigurationRequest() /// An existing ACS identity. public string Id { get; set; } + /// The routing methodology to where the ICE server will be located from the client. + public RouteType? RouteType { get; set; } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/RouteType.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/RouteType.cs new file mode 100644 index 0000000000000..7f158c2132b71 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/RouteType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.NetworkTraversal +{ + /// The routing methodology to where the ICE server will be located from the client. + public readonly partial struct RouteType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RouteType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AnyValue = "any"; + private const string NearestValue = "nearest"; + + /// any. + public static RouteType Any { get; } = new RouteType(AnyValue); + /// nearest. + public static RouteType Nearest { get; } = new RouteType(NearestValue); + /// Determines if two values are the same. + public static bool operator ==(RouteType left, RouteType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RouteType left, RouteType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RouteType(string value) => new RouteType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RouteType other && Equals(other); + /// + public bool Equals(RouteType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/NetworkTraversalModelFactory.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/NetworkTraversalModelFactory.cs index 029f8d7690907..ccb02c5e0aa10 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/NetworkTraversalModelFactory.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/NetworkTraversalModelFactory.cs @@ -29,12 +29,13 @@ public static CommunicationRelayConfiguration CommunicationRelayConfiguration(Da /// List of STUN/TURN server URLs. /// User account name which uniquely identifies the credentials. /// Credential for the server. + /// The routing methodology to where the ICE server will be located from the client. /// A new instance for mocking. - public static CommunicationIceServer CommunicationIceServer(IEnumerable urls = null, string username = null, string credential = null) + public static CommunicationIceServer CommunicationIceServer(IEnumerable urls = null, string username = null, string credential = null, RouteType routeType = default) { urls ??= new List(); - return new CommunicationIceServer(urls?.ToList(), username, credential); + return new CommunicationIceServer(urls?.ToList(), username, credential, routeType); } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Models/GetRelayConfigurationOptions.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Models/GetRelayConfigurationOptions.cs new file mode 100644 index 0000000000000..9c83262936fd8 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Models/GetRelayConfigurationOptions.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.NetworkTraversal.Models +{ + /// Additional options for getting a relay configuration. + public class GetRelayConfigurationOptions + { + /// The for whom to issue a token. + public CommunicationUserIdentifier CommunicationUser { get; set; } + + /// The specified for the relay request. + public RouteType? RouteType { get; set; } + } +} diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md b/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md index 16402b73c58b4..9d9ff27e89bbf 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md @@ -7,9 +7,9 @@ Run `dotnet msbuild /t:GenerateCode` to generate code. ``` yaml title: Network traversal -tag: package-2021-06-21-preview +tag: package-2021-10-08-preview model-namespace: false require: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/4c8162b0a1f7bbd46e9aedc0e19bbe181e549c4c/specification/communication/data-plane/NetworkTraversal/readme.md + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/f2e08ab373eb0e96b54920e89f9fc96d683355ca/specification/communication/data-plane/NetworkTraversal/readme.md payload-flattening-threshold: 3 ``` diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs b/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs index 75646a6434407..fd05d0430d07c 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs @@ -6,6 +6,7 @@ using Azure.Communication.Tests; using Azure.Communication.Identity; using NUnit.Framework; +using Azure.Communication.NetworkTraversal.Models; namespace Azure.Communication.NetworkTraversal.Tests { @@ -43,7 +44,7 @@ public async Task GettingTurnCredentialsGeneratesTurnCredentials(AuthMethod auth CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); Response userResponse = await communicationIdentityClient.CreateUserAsync(); - Response turnCredentialsResponse = await client.GetRelayConfigurationAsync(userResponse.Value); + Response turnCredentialsResponse = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions { CommunicationUser = userResponse.Value } ); Assert.IsNotNull(turnCredentialsResponse.Value); Assert.IsNotNull(turnCredentialsResponse.Value.ExpiresOn); @@ -56,6 +57,51 @@ public async Task GettingTurnCredentialsGeneratesTurnCredentials(AuthMethod auth } Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Username)); Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Credential)); + Assert.IsNotNull((serverCredential.RouteType)); + } + } + + [Test] + [TestCase(AuthMethod.ConnectionString, TestName = "GettingTurnCredentialsWithConnectionStringRouteTypeNearest")] + [TestCase(AuthMethod.KeyCredential, TestName = "GettingTurnCredentialsWithKeyCredentialRouteTypeNearest")] + [TestCase(AuthMethod.TokenCredential, TestName = "GettingTurnCredentialsWithTokenCredentialRouteTypeNearest")] + public async Task GettingTurnCredentialsGeneratesTurnCredentialsWithNearestRouteType(AuthMethod authMethod, params string[] scopes) + => await GettingTurnCredentialsWithRequestedRouteType(authMethod, RouteType.Nearest); + + [Test] + [TestCase(AuthMethod.ConnectionString, TestName = "GettingTurnCredentialsWithConnectionStringRouteTypeAny")] + [TestCase(AuthMethod.KeyCredential, TestName = "GettingTurnCredentialsWithKeyCredentialRouteTypeAny")] + [TestCase(AuthMethod.TokenCredential, TestName = "GettingTurnCredentialsWithTokenCredentialRouteTypeAny")] + public async Task GettingTurnCredentialsGeneratesTurnCredentialsWithAnyRouteType(AuthMethod authMethod, params string[] scopes) + => await GettingTurnCredentialsWithRequestedRouteType(authMethod, RouteType.Any); + + public async Task GettingTurnCredentialsWithRequestedRouteType(AuthMethod authMethod, RouteType routeType) + { + CommunicationRelayClient client = authMethod switch + { + AuthMethod.ConnectionString => CreateClientWithConnectionString(), + AuthMethod.KeyCredential => CreateClientWithAzureKeyCredential(), + AuthMethod.TokenCredential => CreateClientWithTokenCredential(), + _ => throw new ArgumentOutOfRangeException(nameof(authMethod)), + }; + + CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); + + Response userResponse = await communicationIdentityClient.CreateUserAsync(); + Response turnCredentialsResponse = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions { CommunicationUser = userResponse.Value, RouteType = routeType }) ; + + Assert.IsNotNull(turnCredentialsResponse.Value); + Assert.IsNotNull(turnCredentialsResponse.Value.ExpiresOn); + Assert.IsNotNull(turnCredentialsResponse.Value.IceServers); + foreach (CommunicationIceServer serverCredential in turnCredentialsResponse.Value.IceServers) + { + foreach (string url in serverCredential.Urls) + { + Assert.IsFalse(string.IsNullOrWhiteSpace(url)); + } + Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Username)); + Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Credential)); + Assert.AreEqual(routeType, serverCredential.RouteType); } } @@ -86,6 +132,7 @@ public async Task GettingTurnCredentialsGeneratesTurnCredentialsWithoutIdentity( } Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Username)); Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Credential)); + Assert.IsNotNull((serverCredential.RouteType)); } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json index 0396906ba4a5b..54f742fc63b8a 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-3ecce5959889a644aaf39523fda9c667-d00e78c61f718145-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "c7facbf579002f21968825843344ef9d", + "traceparent": "00-e3eaf209dbb65140bfca183e8e7bfdf9-9da57056c99fdf40-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c8022b457dfd0fa5f73e26beba05cb2f", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "OW/jbH4qh0anmOuln6auxw.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "Im5lQqatcEeLt\u002BHhcVl28w.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAABJJsXn60\u002BhQ7baeSwK0LxyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAAA76oCdWrNbTovVRbNMmJ1FV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "c7facbf579002f21968825843344ef9d", - "X-Processing-Time": "93ms" + "x-ms-client-request-id": "c8022b457dfd0fa5f73e26beba05cb2f", + "X-Processing-Time": "21ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d969-5470-2248220030f6" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7121-d68a-084822005a6d" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-26aae15ff40ab14299f068736ff36f9f-634c77a4878a934a-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "8740f109e869b707e645092dab506c2e", + "traceparent": "00-d3ebbb99f5ceee4cad437216d9bf4cba-27f69c0830eb8748-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "7ccb011b80e545fafd699d5c0e66d6d1", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d969-5470-2248220030f6" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7121-d68a-084822005a6d" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "b0zth0x6OUujIh\u002Btkk1YEg.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "\u002BjWlSkHnI0GCLOmAlPkRRA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAACYmBr508zMQadJpAWs0vV9V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAADQ0qDYniwrTbIA3SgJmxj9V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "8740f109e869b707e645092dab506c2e", - "X-Processing-Time": "102ms" + "x-ms-client-request-id": "7ccb011b80e545fafd699d5c0e66d6d1", + "X-Processing-Time": "20ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:19.0510608\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANop/BMsB18RYDFtoEmldVGAPuzvhw9GwdkvUHgsAAAAMARCsgNlqhd5IsZldo6P6NifI8Hife0LKNgpAEiYD2cQmmqquwM8=", + "username": "BQAANjP5vkwB19ztk8ORx\u002BSs68AkfjZuVa9V9Ae3xk0AAAAMARCsgNlqhd5IsZldo6P6NifIBr278rkTssNDMExchf\u002BLVCZCX3A=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjP5vkwB19ztk8ORx\u002BSs68AkfjZuVa9V9Ae3xk0AAAAMARCsgNlqhd5IsZldo6P6NifIBr278rkTssNDMExchf\u002BLVCZCX3A=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.8187486\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "109664023" + "RandomSeed": "828122739" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json index 8c2f7d36dc046..ba005cd35d1e7 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-d1273bd4cabfaa468dac8592c7ba65d7-820c25f14492a243-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "6464e3973bc9847277f982281df83cde", + "traceparent": "00-37f1c516f6193f428b3257f7331e3dc8-c9187fd738501e4a-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "bb4e839aa601bee5d209092d47721860", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "/zMX8y4csEezXMVn5vqXTA.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "D8BV\u002B2v6vkacUVGGtOoeIw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAABCxzljUKHdQ4wsZxuEO\u002BwcV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAABDVlpEhONEQrbw6CuHON6YV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "6464e3973bc9847277f982281df83cde", - "X-Processing-Time": "94ms" + "x-ms-client-request-id": "bb4e839aa601bee5d209092d47721860", + "X-Processing-Time": "24ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-df79-5470-2248220030f9" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-75ab-d68a-084822005a79" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-a4b2c54313c6f84396ca2dfe8481ca38-407def4a7154f34d-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "0aee132ebd7907813a06e04c42286fec", + "traceparent": "00-8c9c09c277e01d4aab39ab54617296b3-6e17b2fc119a7042-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "89105d52ed30749e92e52412572c5541", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-df79-5470-2248220030f9" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-75ab-d68a-084822005a79" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "9T9CgtNw40ixOS2S76d7Cg.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "ZSKA7nSzCEWfvSjtn65V7w.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAAA3PbqrQS\u002BWR4H/MtfXiScFV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAACjVKn3SiZiQJTnMUM4OlJSV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "0aee132ebd7907813a06e04c42286fec", - "X-Processing-Time": "92ms" + "x-ms-client-request-id": "89105d52ed30749e92e52412572c5541", + "X-Processing-Time": "20ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:20.5868626\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANotnTlYB18RYVe9LlP3TPacQ9w1T2jclMg9UDM0AAAAMARCsgNlqhd5IsZldo6P6NifIjdJKiKHs4RQd1SEGP0E/UojhGk8=", + "username": "BQAANjSo7goB19zt/neTrlMmr3oG0svIoFu7iwSEpIYAAAAMARCsgNlqhd5IsZldo6P6NifIwyOzabdelL1yqXnw0Jq8vskovIY=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjSo7goB19zt/neTrlMmr3oG0svIoFu7iwSEpIYAAAAMARCsgNlqhd5IsZldo6P6NifIwyOzabdelL1yqXnw0Jq8vskovIY=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.9570842\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "20607078" + "RandomSeed": "1277709439" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAny.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAny.json new file mode 100644 index 0000000000000..5b8497972d5c5 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAny.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-90ef30197f6cbb4b804dcb55f15d5729-b5f7d99aa2285c4b-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "54e2a41ac774012461474c6af526fb18", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "eUubid23U0WKboaisuU8hQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAAAj5okkJj8aQITiMGZAAqDqV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "54e2a41ac774012461474c6af526fb18", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7273-d68a-084822005a73" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-ba4f0504df82e34b8fc73191a629d41d-0966079a2ecfc34f-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "035e9e6921f2d2b5eb970c103010db47", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7273-d68a-084822005a73", + "routeType": "any" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "SFoMTlWO3EaXfYi9gNpi8Q.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAABOQ4fRhKE6R5VWJ19aYTkbV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "035e9e6921f2d2b5eb970c103010db47", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "any", + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANjQpbQoB19ztj6eAsupIhFvwLo6/8YrkXUTgpGIAAAAMARCsgNlqhd5IsZldo6P6NifIcvD5zGw3SGN1pu3SXCbNIWAjsdo=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:57.1352942\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1767732063" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAnyAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAnyAsync.json new file mode 100644 index 0000000000000..19678ca3f3d7d --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeAnyAsync.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-d465486786dbec46ac41cc27b46a9769-1b93dd459a8a6c4c-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "b44bbb17f42d475f5ace50917bc79f1e", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "cHxrqzUBSESTkkMz9tfEtQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAC5A16fcYefT5XKnwAnwtBrV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "b44bbb17f42d475f5ace50917bc79f1e", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-76e1-d68a-084822005a7c" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-088110fcda4d8e4b8971dc3e6f217751-47dfae7ce1548742-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c8e3f871ec2cb68dbc36972dccbd1e5d", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-76e1-d68a-084822005a7c", + "routeType": "any" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "jQwZiMQo1UaBzez39sRLpQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAAwM71lV/C\u002BS6putYRK8rKZV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "c8e3f871ec2cb68dbc36972dccbd1e5d", + "X-Processing-Time": "20ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "any", + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANjTWu5IB19zt\u002BV1979uL9S4NfRzkBQO9wV1R9AQAAAAMARCsgNlqhd5IsZldo6P6NifI1nUfhc2roTmkRaPN9xRm4aYxiTM=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.2661044\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "803009561" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearest.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearest.json new file mode 100644 index 0000000000000..5c274add895ba --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearest.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-dc804f1394dad2438e789a1443202a0a-0e28c9d46188bb4b-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "ba9407c91e66dc84ab692deb6fcc19ff", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "QsN8Jd3q4EqJLwOKJBIbWg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAAC3iX85DeW/S6QJRITQuImRV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "ba9407c91e66dc84ab692deb6fcc19ff", + "X-Processing-Time": "22ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-73b5-d68a-084822005a76" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-2103023d605a7c48976fce96f09b30f6-3f601b86a9cbad46-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "5c9eb51f7792c19f1d417a9b89b5396c", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-73b5-d68a-084822005a76", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "2D8ak1H8iUy7kKqhw1CSXw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAADkshZmoW0LR4D59c1J0QF8V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "5c9eb51f7792c19f1d417a9b89b5396c", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjRbjlEB19zt0Onj28ZzjJA6IUUhfPV\u002BFKNFTeMAAAAMARCsgNlqhd5IsZldo6P6NifILfkTDdS9SXlL2jAOnTnnbxwzwc0=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:57.4575877\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "214604015" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearestAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearestAsync.json new file mode 100644 index 0000000000000..fbf1a32d63b1e --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringRouteTypeNearestAsync.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-4251e8e9f91d5740a61ebcff195fc679-bb546a3a1e470342-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "8a50ef77a5be70f5b9d9812fc4e33f68", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "9z\u002Bij5tD0E2dND\u002B2hWtQVQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAABz5azhjMmMQI\u002B4ncdHQnuOV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "8a50ef77a5be70f5b9d9812fc4e33f68", + "X-Processing-Time": "20ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7818-d68a-084822005a7f" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-f676a09de68b014da9d32d2089d743f8-fd07fc18e937284f-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "424b441aba11739c9fdc2c84affb90ab", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7818-d68a-084822005a7f", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "325CcwNq/02Lgxlaen\u002BByg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAADKZ1kwZ5P2RIFff/MXT6SaV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "424b441aba11739c9fdc2c84affb90ab", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjUGZ/4B19ztBNvwM\u002B1nKH12O2eWPolQm5QpXMIAAAAMARCsgNlqhd5IsZldo6P6NifIDz8I/KvbZ3bCAipAIvdrzq8Im80=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.577762\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "2041146434" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentity.json index 8782f4e377b8e..6ef6e36c2f652 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentity.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentity.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-d4fc0570c32d8e4185d06db546b3bf86-8276ace94cc55b4b-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "f317da81b60396a9f4f3db9f1b99573b", + "traceparent": "00-66851530bde92b4ca302d3c7a8d2c6ac-1799347d26caf44a-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "e2301b6fa10a42f1cf40d3fbb9fb97c9", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:19 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "k9GJ7MTwtkSFbEP4gBnNXA.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "iZ4d/Xm9vEiRKImWIU54EQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kytrYQAAAAD1g2rn9SrdSJ0uATws59YXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAAAvrj38Kgi\u002BQITHF/dQCcGbV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "f317da81b60396a9f4f3db9f1b99573b", - "X-Processing-Time": "67ms" + "x-ms-client-request-id": "e2301b6fa10a42f1cf40d3fbb9fb97c9", + "X-Processing-Time": "47ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:19.9844721\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANosLnrcB18RYRbkrCBZFVgy/PL8REVAJ6ZsJrsQAAAAMARCsgNlqhd5IsZldo6P6NifIRlSde1dnok\u002B57GXhWKXpZ5dYQM0=", + "username": "BQAANjSI2IQB19zt5Mq0u\u002BIVxagURaugj0FZmG37sKYAAAAMARCsgNlqhd5IsZldo6P6NifIH5wmF6\u002BIMTl7AoN2p\u002BhTnt85Nvo=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjSI2IQB19zt5Mq0u\u002BIVxagURaugj0FZmG37sKYAAAAMARCsgNlqhd5IsZldo6P6NifIH5wmF6\u002BIMTl7AoN2p\u002BhTnt85Nvo=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.7570997\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1620095093" + "RandomSeed": "2050970" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentityAsync.json index ea7b08a0ac46a..f794140d32863 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentityAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentityAsync.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-fbb0e687b8a55945ad03642cd6d73118-d8573fd0d6cb2a41-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "56d331261223f16d6c253b801bbb7912", + "traceparent": "00-16016559c9643546890b71e86056c426-0a12b858886fc842-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "cd34b5df144265cda6b6c7c089e8f564", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:21 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:21 GMT", - "MS-CV": "Xo2LvOEJ/kioBdhXsZth2g.0", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "DdIPcsQA/0C03Ssq0u5Y5A.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lStrYQAAAABz3hkbUMuYQZlxLg3VEGLTV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAADtsNwLGsY0QKEyz7i/3oibV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "56d331261223f16d6c253b801bbb7912", - "X-Processing-Time": "25ms" + "x-ms-client-request-id": "cd34b5df144265cda6b6c7c089e8f564", + "X-Processing-Time": "18ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:21.3481117\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANovbyUMB18RYCxcYsvJyKEaShPwFwSRW2oj3QJoAAAAMARCsgNlqhd5IsZldo6P6NifIswZYrzyCxbY0inwHEDlvFdVfAJ0=", + "username": "BQAANjUxVIkB19zt6f6fmoM4\u002BawRePVCOHRwju/euW8AAAAMARCsgNlqhd5IsZldo6P6NifI30GIQMyqdDRLgjkosEaxBlNwTbs=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjUxVIkB19zt6f6fmoM4\u002BawRePVCOHRwju/euW8AAAAMARCsgNlqhd5IsZldo6P6NifI30GIQMyqdDRLgjkosEaxBlNwTbs=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:58.8566967\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1088513180" + "RandomSeed": "2060645785" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json index fff602faf78ba..ee19dae4803ec 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-6cdfbb3a34489e4fafa6e3290771872e-a3503348022f4640-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "eaea7984e1f93b2176b723505c6e1696", + "traceparent": "00-c53104f91c0c1b469362d404636d5e88-0ba464023ef37949-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "fba83a3a09da3ff7381e8bfd263ba387", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:19 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "qN0PlKpIlU6\u002BlZOPatnjUQ.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "/477JwJQ\u002BU2kcsWySrqs9Q.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kytrYQAAAAC3AgaY1IDBTIrkUzxqdgu4V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAADRjHMuSRueTbTmCZp4b8SYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "eaea7984e1f93b2176b723505c6e1696", - "X-Processing-Time": "93ms" + "x-ms-client-request-id": "fba83a3a09da3ff7381e8bfd263ba387", + "X-Processing-Time": "20ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dae8-5470-2248220030f7" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-71a4-d68a-084822005a6e" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-d60007e87e919a4e9e0b394ae58cded0-3c68a47f23a2aa4b-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "ca1212e04c858b2f34f7af35b60c2249", + "traceparent": "00-0dd2cf79fb3a1f4bb2c2b8e8b482611c-2ee8398a9fb4b14d-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "2103c2aa29a30dfc66156961840cb73d", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:19 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dae8-5470-2248220030f7" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-71a4-d68a-084822005a6e" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "99YEfDKoY0msyYy3cPgOMA.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "v8znmND0h0\u002B9d7GV/u4eKw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kytrYQAAAADtcTsisckJTrxNcuY77EgRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAAAaYEO/UNbuRZWMH57WC8IkV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "ca1212e04c858b2f34f7af35b60c2249", - "X-Processing-Time": "94ms" + "x-ms-client-request-id": "2103c2aa29a30dfc66156961840cb73d", + "X-Processing-Time": "21ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:19.422154\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANoq17BQB18RY0MRAxa2g\u002B13gP0QwZj/qjbrIOiIAAAAMARCsgNlqhd5IsZldo6P6NifI/k0Dr12yywg2OaWeRJNJMcFNfnI=", + "username": "BQAANjQKcP4B19ztHOG4XFCDSW3/\u002Bm9gS\u002BB3veQoL0kAAAAMARCsgNlqhd5IsZldo6P6NifIYdpSrtW73rUGZTDepHxePxvd6OM=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjQKcP4B19ztHOG4XFCDSW3/\u002Bm9gS\u002BB3veQoL0kAAAAMARCsgNlqhd5IsZldo6P6NifIYdpSrtW73rUGZTDepHxePxvd6OM=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.9271741\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1411744663" + "RandomSeed": "1127791168" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json index 8a98aa2e2480b..ecc248fd11a9a 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-a2360ed62b9ad04c8411fbe353dd30cc-fa1bb06047936a40-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "996fa9868f7125c034e110badce4f723", + "traceparent": "00-a77d3186d6b2cf44933509768fbce89c-c18d0abd1a7b9d4d-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "ac862136841d9a937368a2ba16666700", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "W25G60dq9k6MyzZe3xNETA.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "vzpYJ66I5Equq2F4QXVtOQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAABH0p\u002B68CTITJZ/Lq50ju/NV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAACl\u002BjPAuEHPTpCYkSE4D4SeV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "996fa9868f7125c034e110badce4f723", - "X-Processing-Time": "88ms" + "x-ms-client-request-id": "ac862136841d9a937368a2ba16666700", + "X-Processing-Time": "21ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e0cd-5470-2248220030fa" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7613-d68a-084822005a7a" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-7e8f735a291e8a43a68f713abc7feba8-dda109564392464b-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "3aef70c498d3e93df4c07b9deb89f3ab", + "traceparent": "00-e3d2b5ec97846f4fa24c0009fa189371-0cd876b68d5b6844-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "58aabdbea88e94c577eb2816eb3f2af1", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e0cd-5470-2248220030fa" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7613-d68a-084822005a7a" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "TJKr6Xa/lEGRpA3W3qkoGQ.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "Esz5nrYUh0WHeZ/5sMn63w.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAACT9PE39LXBQIG2YDdxb5FoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAABIUXVNYXC8Rq4TOmAFMopLV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "3aef70c498d3e93df4c07b9deb89f3ab", - "X-Processing-Time": "88ms" + "x-ms-client-request-id": "58aabdbea88e94c577eb2816eb3f2af1", + "X-Processing-Time": "22ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:20.9175545\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANouaA/YB18RYymidWQFtjp4IpjYRIR1ckqaLYFwAAAAMARCsgNlqhd5IsZldo6P6NifIRcdPcH4YxzNpyApZl/iN/I1HN5E=", + "username": "BQAANjS3Ol0B19ztOBoDR1DOoSe3YJeqpWrO7\u002BRVoXkAAAAMARCsgNlqhd5IsZldo6P6NifIm9ybCZ8YrXgz2Sj5k\u002Blxv79TkLE=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjS3Ol0B19ztOBoDR1DOoSe3YJeqpWrO7\u002BRVoXkAAAAMARCsgNlqhd5IsZldo6P6NifIm9ybCZ8YrXgz2Sj5k\u002Blxv79TkLE=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:58.0612792\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1442175326" + "RandomSeed": "132638003" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAny.json similarity index 53% rename from sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json rename to sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAny.json index 0b248b271c219..26af2cb4a31b5 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAny.json @@ -8,83 +8,91 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-942601d61385f54b97c0be8315428e2d-2cb73e5da7f2bd43-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "b44bd18a00cda107d35024bf4e336bc5", + "traceparent": "00-520fd724464ae944b3b96c88415d75a4-79b94449f04c484d-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "89e76a081d1ca3721e3bdafcc212b65c", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 15 Oct 2021 22:49:54 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 15 Oct 2021 22:49:54 GMT", - "MS-CV": "oFREfUqg1kSiPvqkj5Ypkg.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "0XsBXb0EKEeLa0omf8OmqA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kwVqYQAAAACeMY6gXcJITYDwL6TTPa6SV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAAD7OuKOxJYXTKWD2sEEh1GKV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b44bd18a00cda107d35024bf4e336bc5", - "X-Processing-Time": "67ms" + "x-ms-client-request-id": "89e76a081d1ca3721e3bdafcc212b65c", + "X-Processing-Time": "24ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2607-6ac5-f14e-09482200248c" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-72e5-d68a-084822005a74" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "88", + "Content-Length": "106", "Content-Type": "application/json", - "traceparent": "00-cd5cd1fbff84e247ae298404b1109979-e855fb78f9033143-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "34802eb30898a4d76bd71b8c5673a763", + "traceparent": "00-5ca901f6f412c542ab3ed20afa85f99f-c88ae7f4fa38614d-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "5260fb14fc4cbc72a650b962d96f5e06", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 15 Oct 2021 22:49:55 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2607-6ac5-f14e-09482200248c" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-72e5-d68a-084822005a74", + "routeType": "any" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 15 Oct 2021 22:49:55 GMT", - "MS-CV": "73Z7q\u002BpFd0C2S9H3DqUgRw.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "F1d9rkuFrk2ofE2TvvTQHA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kwVqYQAAAABeWmMa4zzbTJrYHVSSQIMCV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAABL3rvjkm8DS6v\u002Bi8fATXmSV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "34802eb30898a4d76bd71b8c5673a763", - "X-Processing-Time": "24ms" + "x-ms-client-request-id": "5260fb14fc4cbc72a650b962d96f5e06", + "X-Processing-Time": "20ms" }, "ResponseBody": { - "expiresOn": "2021-10-15T22:49:55.2646924\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANk3HZGAB18OpkmNA8R8vDeCeA3nolP/drjRVKSwAAAAMARCsgNlqhd5IsZldo6P6NifI/6cVYPNwmNUUsJwj/pQEByhqD6I=", + "username": "BQAANjQ8gNsB19ztJue4HLXYFs6bjBmNLwAM6mcI7wQAAAAMARCsgNlqhd5IsZldo6P6NifIamA5WH0wBTjrOqzxc8xSByoIXSk=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.2475615\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1604212943" + "RandomSeed": "1041816664" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAnyAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAnyAsync.json new file mode 100644 index 0000000000000..7e32e8a155657 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeAnyAsync.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-60d1eb85d2326a44aabf7aa11b88df98-a0d1128cee803f4b-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c61a4f486b77be105e32bc98f73032cb", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "ukk6wjCOBkezRSk/Qu3iGg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAA8f8nacL/wQqN43QSQNsqCV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "c61a4f486b77be105e32bc98f73032cb", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7748-d68a-084822005a7d" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-34ba80369ccfcd4cb7608fb0c595620f-63b634504aa06843-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "0086dc78d9097e209ee048ed38d707d5", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7748-d68a-084822005a7d", + "routeType": "any" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "P4nX/1DGA0mUlBAb4IUR7A.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAAD7eI8/m4VQZLWUdejkhbTV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "0086dc78d9097e209ee048ed38d707d5", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "any", + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANjTnaPEB19ztndV8dmT\u002BZIVBwJp88ke751\u002BZYqsAAAAMARCsgNlqhd5IsZldo6P6NifIE3B8IHEWHnRpSFUHGa6Uo\u002BdTvLw=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.3710296\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1985602593" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearest.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearest.json new file mode 100644 index 0000000000000..b89d8ffbc8efc --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearest.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-1a997b745d1b3346ad34ab23143f6ca6-50f7029312394445-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "cc0f5d11d06362039bf52c52f761ad7b", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "IRluYE7/FUC\u002B91wkddErHw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAACNt6apNfwsRLk0V76tTBzRV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "cc0f5d11d06362039bf52c52f761ad7b", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-741f-d68a-084822005a77" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-2b4b6474974e294cbb8d768d9ca3242e-e6fa7b0345c98545-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "6507467a292026b3c41a411f0e9594f9", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-741f-d68a-084822005a77", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "an10JsL1dEu8VV0uexuEnw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAADS/trj\u002B5QITaOB2eo3bJahV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "6507467a292026b3c41a411f0e9594f9", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjRsPHgB19ztzitHyXlvbet\u002BIkSWMgewAgpxySMAAAAMARCsgNlqhd5IsZldo6P6NifImnPsG1/iQYAf4YXHjWkqVzIvA6E=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:57.5643104\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "865644335" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearestAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearestAsync.json new file mode 100644 index 0000000000000..a00d863cfdc08 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialRouteTypeNearestAsync.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-e0156113a602f742ad451c601678c442-985f801b95acf54a-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "58fe1e6ce02e31d48ddb8a9059806640", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "H6ufU8Wy/ki4V9RZONduxg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAC774hB91SOQZzlJQ3SIpJiV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "58fe1e6ce02e31d48ddb8a9059806640", + "X-Processing-Time": "31ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-787f-d68a-084822005a80" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-800415e19c8a6d4a99e176c0994b0e36-39812ec51f400a4d-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "df4cd7434ca21119700251ba1f8d3c2a", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-787f-d68a-084822005a80", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "6gvIOMq7BkWHdZxwkK22rg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAABaBxv/ZnvKQ6ocQXRT2kxfV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "df4cd7434ca21119700251ba1f8d3c2a", + "X-Processing-Time": "24ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjUXGf0B19ztmQYTwDk1WwZwKa9zACBL77ZIWMUAAAAMARCsgNlqhd5IsZldo6P6NifIXyn\u002BOW2T/T1lxMjf035yRhUMTSw=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.6927042\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "125547070" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentity.json index cfbabb2dc1c16..883a4033e2435 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentity.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentity.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-93990fdb76ab1841a90566c0249accb6-f2e24023954cab44-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "a188149e4279c39d40d3c89f538e4986", + "traceparent": "00-80214427b0d5fe40a8b845c15e377035-fc3232baab9d2641-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "6abe6b169623cc330882be05d2eb6f11", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "n3wpTztfwk2itYl3e9BeYw.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "fjrMLvc\u002BEkKmOTi1e8pgEw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAAB1cCWl4RF6Q4biEaMte\u002BvuV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAAAaSXO0o1YvQZx72RMVLR/IV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "a188149e4279c39d40d3c89f538e4986", - "X-Processing-Time": "31ms" + "x-ms-client-request-id": "6abe6b169623cc330882be05d2eb6f11", + "X-Processing-Time": "18ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:20.0943972\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANosdZIMB18RYn7AL3e2KqLoo90Egx0Z3nxpt0a8AAAAMARCsgNlqhd5IsZldo6P6NifIpobJUuDb6F2sUYAtVYmReYqGErw=", + "username": "BQAANjSQBDkB19zt5G\u002BlM27tHGABalkSjtG/3tJgtbEAAAAMARCsgNlqhd5IsZldo6P6NifI9KUbykOC9T/hoF3STPFyp/TpzVA=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjSQBDkB19zt5G\u002BlM27tHGABalkSjtG/3tJgtbEAAAAMARCsgNlqhd5IsZldo6P6NifI9KUbykOC9T/hoF3STPFyp/TpzVA=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.8048896\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "263654804" + "RandomSeed": "840363044" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentityAsync.json index e0a338796f8af..a8598914b061c 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentityAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentityAsync.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-172af9101d21ed48bf30c3fdb41d3bae-dce1385b722d834e-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "4a4dbf01c51b38ea73f21d10e4a49848", + "traceparent": "00-0d095cb18c3ace48a85e82be5d183717-c6e99ad23676384d-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "55c20586095bef0edff7b2c9a2d7ceac", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:21 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:21 GMT", - "MS-CV": "8m\u002BKMfKxJ0OFkw9l/7KZUg.0", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "WePJ8EaaIU2LQ0W5byRIGQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lStrYQAAAADZjylvXkXaR4NXiMTVOJ2HV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAADo75hXk74BSrPBIjcA\u002BPwkV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "4a4dbf01c51b38ea73f21d10e4a49848", - "X-Processing-Time": "36ms" + "x-ms-client-request-id": "55c20586095bef0edff7b2c9a2d7ceac", + "X-Processing-Time": "19ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:21.7283991\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANowXgQAB18RYukvQZnjsFZ0yTLPZlWt1cW\u002B9g7IAAAAMARCsgNlqhd5IsZldo6P6NifIx\u002BOWcBQ1K6bf3x3YJ9DoG018vdg=", + "username": "BQAANjU4e30B19ztjHnJyFjpslyQJB1PJdONC3OIfVcAAAAMARCsgNlqhd5IsZldo6P6NifIMWihqIHWr8tDgOB\u002BgyYNOKrRzKk=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjU4e30B19ztjHnJyFjpslyQJB1PJdONC3OIfVcAAAAMARCsgNlqhd5IsZldo6P6NifIMWihqIHWr8tDgOB\u002BgyYNOKrRzKk=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:58.9071054\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "86724" + "RandomSeed": "751474212" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json index f381748845927..47b669f42c842 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json @@ -8,81 +8,97 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-442f514d9c03c745b048b585fe1fb7ca-a70b6de4f3e51c40-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "73cc07149b60b693c3d07cfb6931ee0e", + "traceparent": "00-1e3876b4830c2d40b5bbb5a0145b1d91-308b757114a78140-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c95c692e404b00d60b0a955ea1d8cb5f", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:19 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "\u002BugRYFeGS0yBIeOPRwq9Cg.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "4GzstaJu2UiMo/oTq7JHKA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kytrYQAAAABihAIQOaSkQouOSOY07qavV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAABF8ztQ7Q9HRquOUIicusUcV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "73cc07149b60b693c3d07cfb6931ee0e", - "X-Processing-Time": "95ms" + "x-ms-client-request-id": "c95c692e404b00d60b0a955ea1d8cb5f", + "X-Processing-Time": "21ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dc42-5470-2248220030f8" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-720c-d68a-084822005a70" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-5f9334468309ce4b90cdd8da2ffe920e-a9f976d75218834a-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "331b5f32c6cc91db1a2e100dc7d90c51", + "traceparent": "00-984cfb55c503c3408d0313a7be5ef856-384e00ab60385a40-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "8d0455b3bb34a179383b7597f5a264bc", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dc42-5470-2248220030f8" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-720c-d68a-084822005a70" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:19 GMT", - "MS-CV": "CyA0GFBYsE26NwAneOXcig.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "PE84dv3jo02gDX6p7tEV7Q.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kytrYQAAAABv2fZsyjHPSbkCHWdX9qQMV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAAAHxClFa1TgSKbROBU2APjNV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "331b5f32c6cc91db1a2e100dc7d90c51", - "X-Processing-Time": "89ms" + "x-ms-client-request-id": "8d0455b3bb34a179383b7597f5a264bc", + "X-Processing-Time": "19ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:19.7608797\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANorqRbwB18RYlGXVB6Ls00euJz2PlXJ0ZsqbkBUAAAAMARCsgNlqhd5IsZldo6P6NifI/cRvrG5xiy28KijOwCRWGZmkE1Y=", + "username": "BQAANjQbH7wB19zt0sQojdBxjRvkYf80Nl0g1Whlu9wAAAAMARCsgNlqhd5IsZldo6P6NifIP0rszKixrtqbFSKjI84s/go2Pwc=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjQbH7wB19zt0sQojdBxjRvkYf80Nl0g1Whlu9wAAAAMARCsgNlqhd5IsZldo6P6NifIP0rszKixrtqbFSKjI84s/go2Pwc=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.0300362\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "634125802" + "RandomSeed": "1359675451" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json index fe2ab1bcdcbbe..9eaa394e3473f 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json @@ -8,81 +8,97 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-b17a507a13e203479fb7e5febf387512-31c7a2a131a75042-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "abe4ffce436dab40247a0f2171788b9f", + "traceparent": "00-bc74c6914494bc4ca2ae48244abe3a28-298c42a1a8cc4f49-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "9b6b08d6956e054496a511f473a4d3b4", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "IuOZ9rJRlk6MrmQ3VOhppQ.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "pr3ZDDbTnEeyFZhdhs6gqg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAABe1il4b/L8SrNkMgofFGArV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAACqx/ZGMUl5T7JtuynHrHLhV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "abe4ffce436dab40247a0f2171788b9f", - "X-Processing-Time": "90ms" + "x-ms-client-request-id": "9b6b08d6956e054496a511f473a4d3b4", + "X-Processing-Time": "23ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e215-5470-2248220030fb" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-767c-d68a-084822005a7b" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-06eba75341251b4cb36be2c59de2751f-df2a0d08f220354c-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "615800344a6156519b99552270674e38", + "traceparent": "00-154297a929a50441b86dad164a0ed6d3-d354ba097264304b-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "577a81f2314f85300be42dcd4d9c5d4e", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e215-5470-2248220030fb" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-767c-d68a-084822005a7b" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:21 GMT", - "MS-CV": "rJaLabbkQkKx\u002Bzfow5GHAQ.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "DPi5cxkDXEK0aB1PWlSH8Q.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lStrYQAAAADpqHXWWa6jQ4Iirh1vUmVgV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAAAyGs33\u002BtgWQ7pfrQBAQB0UV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "615800344a6156519b99552270674e38", - "X-Processing-Time": "83ms" + "x-ms-client-request-id": "577a81f2314f85300be42dcd4d9c5d4e", + "X-Processing-Time": "18ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:21.245029\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANovMFpwB18RYN30D\u002Bg5vCXJASvnw2IatH2YF8jwAAAAMARCsgNlqhd5IsZldo6P6NifIGv\u002Bg1tW54kERX5QVn9WiEZfBRIc=", + "username": "BQAANjTGB\u002BMB19ztbnoGXLkR2aV/4Xpir2DsxM2BI58AAAAMARCsgNlqhd5IsZldo6P6NifIuThiONJ1JXAP9Q3iCNx\u002BnOaeGO4=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjTGB\u002BMB19ztbnoGXLkR2aV/4Xpir2DsxM2BI58AAAAMARCsgNlqhd5IsZldo6P6NifIuThiONJ1JXAP9Q3iCNx\u002BnOaeGO4=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:58.1635195\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "2093215646" + "RandomSeed": "13150395" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAny.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAny.json new file mode 100644 index 0000000000000..20f08a383361d --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAny.json @@ -0,0 +1,96 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-60288194b55c7f4da3833b2b281ecd5e-d725328284378b42-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "9b62c050d01829f20ed2d86255a749d8", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "JlQCQwrlS0yC\u002Bj/7iZc\u002Buw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAAAZewygrOdXSrYWE7xZAr\u002BYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "9b62c050d01829f20ed2d86255a749d8", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-734e-d68a-084822005a75" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-c17b18c52591514caead61a10e801daa-7e3e9662bf4e8f49-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "6ec98b7baeda23864d2986e65e4cb993", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-734e-d68a-084822005a75", + "routeType": "any" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "X8Lc/AVLskqp4\u002BsnJ8hhNQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAACwI06skgVtQZ157rEM9qe7V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "6ec98b7baeda23864d2986e65e4cb993", + "X-Processing-Time": "16ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "any", + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANjRKztQB19ztP0o\u002BpxuMMUDyLCEDWt\u002BGjbqMI/4AAAAMARCsgNlqhd5IsZldo6P6NifI1ykkKRceYH0ch4BtCn/uouqI0jc=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:57.3489583\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1692856984" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAnyAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAnyAsync.json new file mode 100644 index 0000000000000..b4dd13d2bae8a --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeAnyAsync.json @@ -0,0 +1,96 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-b0171ee3bbe89048a7d15e134f74b977-bf44b4c03d121c47-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "b758ede349939abefe905525c423816b", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "VL/jD4K9ak6vb0465TY7RA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAACAH\u002BjJbcyGSqQxGg0ifglRV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "b758ede349939abefe905525c423816b", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-77b2-d68a-084822005a7e" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-965fa8d3a5ddde4fb510cde378a18346-d3c73d96e9e37140-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c61f3cdc9567994683e740f0cceadc85", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-77b2-d68a-084822005a7e", + "routeType": "any" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "iRnZA0I9bEuOkyZUMXnYLQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAACMvr7lmO\u002BpQrMNPWrb7ElPV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "c61f3cdc9567994683e740f0cceadc85", + "X-Processing-Time": "18ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "any", + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANjT4GTYB19ztPWjmAF/PrHbMa0BFjF4uRBXAP1wAAAAMARCsgNlqhd5IsZldo6P6NifIbarLaEI2ZT2IV2VDX1fN5Fg8kM0=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.4754317\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "840531157" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearest.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearest.json new file mode 100644 index 0000000000000..ee87b2542dea3 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearest.json @@ -0,0 +1,96 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-48107380ec71f149ae1bfe68cdc74900-f388f79270856e44-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "9764d50b3f08b2e6f2d80c601c48f167", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "TKQHvqfJ20GZ5w\u002B01cdCSA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAADlthDftAV3RK3p1AkGrfkzV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "9764d50b3f08b2e6f2d80c601c48f167", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7494-d68a-084822005a78" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-9b97c141fdbb654192a6bf50fece795c-25a07cdcbe945b46-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "3c3e3c7388159a76443372094d719f25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7494-d68a-084822005a78", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "SqeSBwfS50CT\u002B3gWuawnPQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06WiUYQAAAAA4IuxQFDF5SagsfYAv7HkBV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "3c3e3c7388159a76443372094d719f25", + "X-Processing-Time": "19ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjR87sMB19ztk1p/2ThlQ8WCxUsnEVMWAHz0520AAAAMARCsgNlqhd5IsZldo6P6NifIn/TEUyiJ5S7nxpNz91iJIAientw=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:57.6774017\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "2123112446" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearestAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearestAsync.json new file mode 100644 index 0000000000000..cc667c5b3cee2 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialRouteTypeNearestAsync.json @@ -0,0 +1,96 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-f3aecd9f504c524a8e75b7e853559606-de069e42c73a8944-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "4942bc07bc4a0d822d2c221d1873b5e1", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:58 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "GAz2rDcDO0m5LCRMROT52g.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAADMhVLr3/uhS4GOqvDsMJUbV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "4942bc07bc4a0d822d2c221d1873b5e1", + "X-Processing-Time": "22ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-78f9-d68a-084822005a81" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-3b372eabf150b94d99022e84096166aa-59c3e01f75691141-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "87e638930700233f550937beb3a212da", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-78f9-d68a-084822005a81", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "w291jJvJc0CkUhuH21vIIw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06miUYQAAAAAEX683IHG5SrbmL1LFiO0IV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "87e638930700233f550937beb3a212da", + "X-Processing-Time": "16ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjUnywYB19ztjKHC3lgT2298VKDIdpOzEdE6i6IAAAAMARCsgNlqhd5IsZldo6P6NifIg1u3BEVy/QjaSYldDq1vUlJ0nOE=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:58.8017318\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1127959281" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentity.json index 79cb266cba105..66de39d16d844 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentity.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentity.json @@ -1,50 +1,63 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-510750da822f634189d7286ac8bf4c3e-da9f72ff64bcfc46-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "e6f980b4ce4ef14820a915e55eee40a1", + "traceparent": "00-3bd926f1bc897949b6ffbe844b11ff37-6be08b66aef51148-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "f4a572b75307c871bfcfd26142902a45", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:20 GMT", - "MS-CV": "hwnljG/sW02Z6RZO\u002Bz4kdg.0", + "Date": "Wed, 17 Nov 2021 02:28:57 GMT", + "MS-CV": "EN1KFpLj/0i9fv6DV2jPFQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lCtrYQAAAACx1ntcdjENT5oXN14GfNqLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06WiUYQAAAAD8D7E6F71fQZYYLI5e63fuV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "e6f980b4ce4ef14820a915e55eee40a1", - "X-Processing-Time": "75ms" + "x-ms-client-request-id": "f4a572b75307c871bfcfd26142902a45", + "X-Processing-Time": "15ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:20.2485113\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANos1QFUB18RYOqIOKF15T\u002BfTuowsrP9HMNzptcoAAAAMARCsgNlqhd5IsZldo6P6NifI6Gw2Nj6bfpRUM59PqsJ/bVihkiY=", + "username": "BQAANjSXKRIB19ztiGfQeMbE9a9M9HEyXmY4rNhPucgAAAAMARCsgNlqhd5IsZldo6P6NifIZCuMU3RgZOjD8YafzfwQs0lzZC0=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjSXKRIB19ztiGfQeMbE9a9M9HEyXmY4rNhPucgAAAAMARCsgNlqhd5IsZldo6P6NifIZCuMU3RgZOjD8YafzfwQs0lzZC0=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:57.8503246\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "94761552" + "RandomSeed": "653091290" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentityAsync.json index 6154af7c83139..a512c633f22b4 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentityAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentityAsync.json @@ -1,50 +1,63 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-3776c991a441254895d2997b63dd4c0e-48e97fc3ea6dba48-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "1328bf09870f4ea0e1112656d53a1e08", + "traceparent": "00-814ed4a6e4c24f4c9e555096d382fcdc-2bf617bb944a2a4f-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "dfa90c27c83feb4d964ec6261e7d89e0", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:21 GMT", - "MS-CV": "/BFId5Wyjkeb\u002B5JA8IQqfA.0", + "Date": "Wed, 17 Nov 2021 02:28:58 GMT", + "MS-CV": "KeHP6pGMNECNRkzG91Anfw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0lStrYQAAAAAzKS6v0yhKSbSb\u002BjPjGts3V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06miUYQAAAACsqwhQSLBaQrmv80/kEc\u002B\u002BV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "1328bf09870f4ea0e1112656d53a1e08", - "X-Processing-Time": "18ms" + "x-ms-client-request-id": "dfa90c27c83feb4d964ec6261e7d89e0", + "X-Processing-Time": "15ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:21.8239999\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANowlU/EB18RYx\u002BT4\u002B4HvYrLrhE5NjZYfnmnbh7sAAAAMARCsgNlqhd5IsZldo6P6NifIb2DHe\u002BVHZ/HkKSKdvd0cbzsvY/M=", + "username": "BQAANjU/ouwB19zt1kBNqzDrCB2lKKmZE1pdBGFnWiwAAAAMARCsgNlqhd5IsZldo6P6NifIwT3/mDDvujo8ub2Z2HiMDIlLuqI=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjU/ouwB19zt1kBNqzDrCB2lKKmZE1pdBGFnWiwAAAAMARCsgNlqhd5IsZldo6P6NifIwT3/mDDvujo8ub2Z2HiMDIlLuqI=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:58.9542703\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "522985319" + "RandomSeed": "564202458" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKey.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKey.json index 846ff25545371..b1d56b7a6e7b0 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKey.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKey.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-ee36d30042618940b4ec5787d178245f-1243e9ac84cb9a44-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "894dc232ae0b17caeab24b293f489fcb", + "traceparent": "00-cc201a9d5f5bce419403956da2cd830a-4eef818787f88d4b-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "c3bc59252063dc2cc1ec4d29c524171e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:14 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:14 GMT", - "MS-CV": "ouFEfaKR3EyxLz/QbmwCZQ.0", + "Date": "Wed, 17 Nov 2021 02:28:54 GMT", + "MS-CV": "UCpisCQIs0OY3bvzfsdLYg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0jitrYQAAAADeA3z\u002BBajyRq32KgwYEnGKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "05miUYQAAAAAoq2QEP1PDS5eLWBFJ5eHlV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "894dc232ae0b17caeab24b293f489fcb", - "X-Processing-Time": "192ms" + "x-ms-client-request-id": "c3bc59252063dc2cc1ec4d29c524171e", + "X-Processing-Time": "52ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-c981-dc46-a63a0d006676" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6980-d68a-084822005a65" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-3c98584a65f1d848800e9569c709a0c7-d65f4df23dfab44f-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "b8e4a4adfd7732cc3d763bde016e4c4d", + "traceparent": "00-e30694d8cc5cb04fa8a054b778555fb4-ae105c8b96f2754d-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "14e6a97454d7eeb510d60a5ef44c86c2", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:14 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-c981-dc46-a63a0d006676" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6980-d68a-084822005a65" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:14 GMT", - "MS-CV": "1WN9rdTNCU\u002BzNuyjQFvtbw.0", + "Date": "Wed, 17 Nov 2021 02:28:54 GMT", + "MS-CV": "D5MaMFP25UaG/zJRpleUjw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0jitrYQAAAACTSzPdrjvLRpQU\u002BjNmsIZ7V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "05miUYQAAAADcwoF52YmvQ49S8pFcKaODV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b8e4a4adfd7732cc3d763bde016e4c4d", - "X-Processing-Time": "88ms" + "x-ms-client-request-id": "14e6a97454d7eeb510d60a5ef44c86c2", + "X-Processing-Time": "23ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:14.9837869\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANogQK6UB18RYe/2HXUfN4Xa5V\u002BDoBhVORHJ\u002B/GMAAAAMARCsgNlqhd5IsZldo6P6NifIKDeeztFHF4FVbmGRO4T1ykJdknI=", + "username": "BQAANjLTzXUB19ztRwG0NEbuhSNaxmr6Hp0HasxpN8cAAAAMARCsgNlqhd5IsZldo6P6NifI7gYzZ/9djPhwZ\u002B8nuWpijGUqS60=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjLTzXUB19ztRwG0NEbuhSNaxmr6Hp0HasxpN8cAAAAMARCsgNlqhd5IsZldo6P6NifI7gYzZ/9djPhwZ\u002B8nuWpijGUqS60=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:54.8858673\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "713688657" + "RandomSeed": "1275306282" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyAsync.json index 1abd8555e6af3..b1cb2454f1ec4 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyAsync.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-060f3af22ab98c48aae1dc5b3371ffd8-76fbb8c2d5e3bc41-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "e370d50573e1a3331a5faa88d9e254cc", + "traceparent": "00-a5ba3ee9d6c57a499e6ee2ca1892558c-34d64a4b885b7940-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "90f0328bd3f01af896889398a4bd2f9e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:17 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "AVKgb5neFk6VTNBSrIR/UQ.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "MAx7nhWi\u002BkeCHaqSrAbExA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kStrYQAAAAA6kjgMgo40RLdShzTNqfDdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAABiQ53DxkdlQIutdy8wRpdXV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "e370d50573e1a3331a5faa88d9e254cc", - "X-Processing-Time": "64ms" + "x-ms-client-request-id": "90f0328bd3f01af896889398a4bd2f9e", + "X-Processing-Time": "24ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d2f1-dc46-a63a0d006679" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6e31-d68a-084822005a69" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-766ae39cb71fc74f89e1443b94f2fad3-a2490872f02c7e4c-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "b460356ec0c06e3c6cc48a73ce77180e", + "traceparent": "00-c80761be390cf64f9bcf88f4990679ce-884d43f1dd364e4a-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "308d6005fd5078837cff464765da95ea", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:17 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d2f1-dc46-a63a0d006679" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6e31-d68a-084822005a69" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "520", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:17 GMT", - "MS-CV": "2KSO8GB3ekSrJugHCgomgQ.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "gaNJVw16dEmT3ernPNrblQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kStrYQAAAAA6mAT5G0bCTLaPfWvMA4AOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAACyOQjGltXKSqAnlZyHRUiSV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b460356ec0c06e3c6cc48a73ce77180e", - "X-Processing-Time": "83ms" + "x-ms-client-request-id": "308d6005fd5078837cff464765da95ea", + "X-Processing-Time": "22ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:17.3274499\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANol09HkB18RYve6B4MMM2kSCL8hnbZXviyfl3H0AAAAMARCsgNlqhd5IsZldo6P6NifIH1D9/R2AuHsOGpAYUROxn9coVzg=", + "username": "BQAANjOE60oB19ztLuIzu9iCMZ8gYsuQKbWwtrzvhgAAAAAMARCsgNlqhd5IsZldo6P6NifI74Ai/\u002BW5Zz5X42li0a3Fygo6cWU=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjOE60oB19ztLuIzu9iCMZ8gYsuQKbWwtrzvhgAAAAAMARCsgNlqhd5IsZldo6P6NifI74Ai/\u002BW5Zz5X42li0a3Fygo6cWU=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.05188\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "805148759" + "RandomSeed": "1516516542" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentity.json index c8d5991eff078..fe0fa3413d93d 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentity.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentity.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-dcb83fe3d7a8f247bfabc45f33f0def4-792e74176ae0a446-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "d48e8e0595b0745863a1b9f6c2ccce39", + "traceparent": "00-02a3f902e3e21944a09c30024eb05c33-a4afa03dfe0d0546-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "20123d57f9b7cf0916b34cbc0569dad7", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:15 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:15 GMT", - "MS-CV": "O7TnlQuzDE6yeopPElONbg.0", + "Date": "Wed, 17 Nov 2021 02:28:54 GMT", + "MS-CV": "tXAz3MoTP0ejjML1lplMOw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0jytrYQAAAACixDaSEZRwQb4oejL7HHxvV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "05miUYQAAAADGmEK8MWNpT6vHXcN8Xas8V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "d48e8e0595b0745863a1b9f6c2ccce39", - "X-Processing-Time": "43ms" + "x-ms-client-request-id": "20123d57f9b7cf0916b34cbc0569dad7", + "X-Processing-Time": "18ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:15.2983383\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANog/22IB18RYFGkiBszTsqNU1IOEB8tr\u002BSif7MUAAAAMARCsgNlqhd5IsZldo6P6NifIcmTYeBYPbL4H6hbQn4wnk\u002BBpQmA=", + "username": "BQAANjLeBocB19zt7ZCU78Hg0Qh6wTMHUMFpVCYn3lQAAAAMARCsgNlqhd5IsZldo6P6NifIWUphkg6kBqWOupSK8y\u002Bt6YiDla0=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjLeBocB19zt7ZCU78Hg0Qh6wTMHUMFpVCYn3lQAAAAMARCsgNlqhd5IsZldo6P6NifIWUphkg6kBqWOupSK8y\u002Bt6YiDla0=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:54.9564956\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1739440598" + "RandomSeed": "273062184" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentityAsync.json index af3ecf9d1a653..ad8a594688848 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentityAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentityAsync.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-0d149e570e3bb44ab5be4d4aca40c4d6-72bcad086f317f4e-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "e3ca13ed362e94642e2b1828c0b653fc", + "traceparent": "00-42d068a9844c6c49b92f19fceb095dc5-126620ef079c2146-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "a25f88d387eca078862392fe3b52c21a", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:17 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:17 GMT", - "MS-CV": "TlbAtbdRKEKL3y/cOmXdKw.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "4zUBn4dMCkC/hVz\u002BWXyGcA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kStrYQAAAAA5bGpMddPmQpE4pxttpIkzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAADNO4FLaPy5QImbe7mVwhmrV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "e3ca13ed362e94642e2b1828c0b653fc", - "X-Processing-Time": "94ms" + "x-ms-client-request-id": "a25f88d387eca078862392fe3b52c21a", + "X-Processing-Time": "19ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:17.7368044\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANom1YOYB18RYWRopqtP/X7Cfd/TwDJM6d/oeW4EAAAAMARCsgNlqhd5IsZldo6P6NifIx4PNaqgBW4hjgiWFAlJE5/rBR6k=", + "username": "BQAANjOMEs0B19zt5JX9vgDaL0IPqRThEcSwtuEBPAsAAAAMARCsgNlqhd5IsZldo6P6NifIWpIvZwEmpPNHKjdwSCm4bdy8BIk=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjOMEs0B19zt5JX9vgDaL0IPqRThEcSwtuEBPAsAAAAMARCsgNlqhd5IsZldo6P6NifIWpIvZwEmpPNHKjdwSCm4bdy8BIk=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.1034569\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1336701471" + "RandomSeed": "20073215" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithToken.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithToken.json index 80d93340cf714..2e6c438d8b891 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithToken.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithToken.json @@ -8,81 +8,97 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-7b8a98ddd4f19d4c81d7e111d0790c94-f0afb6a4a7c9ea41-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "f8783b95fea9805843dcb6c3f9f6f531", + "traceparent": "00-00e1eeacaa3db142a6040473b63e404d-4b9aa0ede0b84f4d-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "968b749fff21c4fb7330a60179971ed3", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:15 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:15 GMT", - "MS-CV": "ZGWow0jwrk6j9pi8lLMN7w.0", + "Date": "Wed, 17 Nov 2021 02:28:54 GMT", + "MS-CV": "k0YHLP7vv0KS5RqUV\u002Brbsw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0jytrYQAAAACSp87Mz7itRrssLk1nsrIfV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAACy27OG6K1YSq/D8dMWi8vJV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "f8783b95fea9805843dcb6c3f9f6f531", - "X-Processing-Time": "64ms" + "x-ms-client-request-id": "968b749fff21c4fb7330a60179971ed3", + "X-Processing-Time": "22ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-cc83-dc46-a63a0d006677" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6aaf-d68a-084822005a66" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-9747ec7146051949be6bb6cc18fcd495-ccdf720b40d5be40-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "b8cf9d510c53fb7e290ecdf70908bab3", + "traceparent": "00-7c75ca49b1a5594a8fb551b4593c4257-efd86d512584ed48-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "14cf7ceb3f90816b5922660a1abb9a29", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-cc83-dc46-a63a0d006677" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6aaf-d68a-084822005a66" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "LiwY0lwziEagiJllc4lagQ.0", + "Date": "Wed, 17 Nov 2021 02:28:54 GMT", + "MS-CV": "kvkRyBknR0OHs\u002Bxr0R54Gg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kCtrYQAAAAB4A4vU0vcpRpqucp5DwsqYV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAADkeiVX\u002BaVeRqZJ0n66gaGUV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b8cf9d510c53fb7e290ecdf70908bab3", - "X-Processing-Time": "134ms" + "x-ms-client-request-id": "14cf7ceb3f90816b5922660a1abb9a29", + "X-Processing-Time": "18ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:16.5476412\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANoj9t3UB18RYGnHTyRpFzBbn0nbqNmzbb6hM0wIAAAAMARCsgNlqhd5IsZldo6P6NifIBUGku9mD9/jlizoZd1D6HOWtULs=", + "username": "BQAANjNJUEoB19ztSsc2qIvB2YBcaRxz2PDiddv6fXQAAAAMARCsgNlqhd5IsZldo6P6NifIdETx1wWxZxufk7o9DZM3\u002BCU4Dqg=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjNJUEoB19ztSsc2qIvB2YBcaRxz2PDiddv6fXQAAAAMARCsgNlqhd5IsZldo6P6NifIdETx1wWxZxufk7o9DZM3\u002BCU4Dqg=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:55.6568224\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "894037591" + "RandomSeed": "991886650" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenAsync.json index d977301258ff4..aaac671a0f6c9 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenAsync.json @@ -8,81 +8,97 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-bd599d4399a3da4f9685f49dd428da7d-9c0c0844f1694748-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "6db71a8ef51290a3e4812c853a5b0e31", + "traceparent": "00-9e8a005c60bb2e4dad4c000c8301293d-85d00976152ff64f-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "2c4c8f7444d09cb63d6ea65aa9f77d4e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:17 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:17 GMT", - "MS-CV": "JQsuRhfMj02bXwI0sYSdzQ.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "Bdv\u002B\u002B55y90OyA0UsGyp7bw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kStrYQAAAAC/SdycbXquRL5DiV8SAvNzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAAAuKy0kFFTwT7lvohWj09tQV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "6db71a8ef51290a3e4812c853a5b0e31", - "X-Processing-Time": "91ms" + "x-ms-client-request-id": "2c4c8f7444d09cb63d6ea65aa9f77d4e", + "X-Processing-Time": "22ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d5b0-5470-2248220030f4" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6ed5-d68a-084822005a6a" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-52f8f6b3d769164ea820216f5cb8e342-067415def8f7d44f-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "a83320c76da48ea3a309b99711fea569", + "traceparent": "00-0dfb2eb8170fab4d9298a45e25eadd58-0cddcc7c098a4947-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "2f8f87322173ae7f1f4b7db44605efe8", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d5b0-5470-2248220030f4" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6ed5-d68a-084822005a6a" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:17 GMT", - "MS-CV": "5/Tz4opknU2eM/UpO4vF4A.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "0l9SKC9ru0W6J0SxLaCZSA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kStrYQAAAADE1Q8Rg2MeQpO8GUxWBhbHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAABSWlNlqgQlT7sKo\u002BQgcN1sV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "a83320c76da48ea3a309b99711fea569", - "X-Processing-Time": "152ms" + "x-ms-client-request-id": "2f8f87322173ae7f1f4b7db44605efe8", + "X-Processing-Time": "225ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:18.1468345\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANon0XcQB18RYPGibZyy/EBBcWyDdJZG9CqAqEsEAAAAMARCsgNlqhd5IsZldo6P6NifImiq6hcrmLIDy4ZtiQBVAY1DqsEE=", + "username": "BQAANjO\u002BI/AB19ztvfSiHlzBs4OpyrM2m4bqIWW0dewAAAAMARCsgNlqhd5IsZldo6P6NifIDpHpkO0EFahR\u002BZndrcZfRnPZyDs=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjO\u002BI/AB19ztvfSiHlzBs4OpyrM2m4bqIWW0dewAAAAMARCsgNlqhd5IsZldo6P6NifIDpHpkO0EFahR\u002BZndrcZfRnPZyDs=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.4287149\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1149429717" + "RandomSeed": "1980285108" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentity.json deleted file mode 100644 index 48cd7f2d841b7..0000000000000 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentity.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "traceparent": "00-13f75ed0d559f941b907222b09ef85fb-17c22ada8486de48-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "11bb7445e50b8ff6a3a49c9205e94ba7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "3rkeeqKpeUivS0IFTmft8A.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kCtrYQAAAABruSaPBiAOS4cgLqw5t/sCV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "11bb7445e50b8ff6a3a49c9205e94ba7", - "X-Processing-Time": "40ms" - }, - "ResponseBody": { - "expiresOn": "2021-10-16T19:44:16.6708431\u002B00:00", - "iceServers": [ - { - "urls": [ - "stun:world.relay.skype.com:3478", - "turn:world.relay.skype.com:3478" - ], - "username": "BQAANokR7poB18RYMf0vg0omOvN\u002BOFXbEwtSXxNwzO4AAAAMARCsgNlqhd5IsZldo6P6NifIDAOB\u002B/UUpZ29LpqEzb\u002BaBNAYx5s=", - "credential": "Sanitized" - } - ] - } - } - ], - "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "535742880" - } -} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentityAsync.json deleted file mode 100644 index fd33e5ef5a211..0000000000000 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentityAsync.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "traceparent": "00-39c7f859d40a484298aa3fd3ee5cbce7-440d4aefcd19544d-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "4b7be8d01ab466042b070bfa03d8e699", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "oAWWfXanjkeCW3f\u002Bq2axBg.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAAAQp7qrCN1ERoS/M19YTxdFV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "4b7be8d01ab466042b070bfa03d8e699", - "X-Processing-Time": "23ms" - }, - "ResponseBody": { - "expiresOn": "2021-10-16T19:44:18.2469011\u002B00:00", - "iceServers": [ - { - "urls": [ - "stun:world.relay.skype.com:3478", - "turn:world.relay.skype.com:3478" - ], - "username": "BQAANooCrFEB18RYSTKLWGqk0nknznoVNP5hVxK9HAUAAAAMARCsgNlqhd5IsZldo6P6NifIAvoGj7KkAZEZddF1Af\u002BY3s13/cI=", - "credential": "Sanitized" - } - ] - } - } - ], - "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "910454501" - } -} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfiguration.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfiguration.json index 571086b18ae76..e43a4aae00c71 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfiguration.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfiguration.json @@ -8,81 +8,97 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "359f21d44a049bf683cd995f2613729f", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "4cc9cc4f91166427660930f29bf2c3ca", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:16 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "qA/V1BCeZUSeYLz0DDshrQ.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "\u002BVeKY4lCXUKNjHmXVKP\u002BYQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kCtrYQAAAAC7p5miitzOT5TT4PtMV2\u002ByV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAACSbAKnlscDRble36msyPJ/V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "359f21d44a049bf683cd995f2613729f", - "X-Processing-Time": "63ms" + "x-ms-client-request-id": "4cc9cc4f91166427660930f29bf2c3ca", + "X-Processing-Time": "24ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d169-dc46-a63a0d006678" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6d19-d68a-084822005a67" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "67f57eb9e910c72d229e6f8268726382", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "64ec0f0aa2054e6d6c7bb3bd695859f1", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:16 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d169-dc46-a63a0d006678" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6d19-d68a-084822005a67" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "CSr2BhgiR0e6We7bydoGyw.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "Nc2vDfGe4kyY63d7xp\u002B6WA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kCtrYQAAAADENdyEOWKPTbmAjMb4xgBGV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAACJLTq7TGauTI5gdIb5Z/cqV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "67f57eb9e910c72d229e6f8268726382", - "X-Processing-Time": "83ms" + "x-ms-client-request-id": "64ec0f0aa2054e6d6c7bb3bd695859f1", + "X-Processing-Time": "20ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:16.928597\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANok38l0B18RYu03nG9\u002BI0trJFF7WMz9s9JjpGosAAAAMARCsgNlqhd5IsZldo6P6NifIGDvh\u002BAN98tq\u002BYwGslVapzDaK5ug=", + "username": "BQAANjNZ/j4B19ztYWIBxhhciQGm9v0ZMo8xLYn2Bt4AAAAMARCsgNlqhd5IsZldo6P6NifIHhNdxCGEe3Yqpn/BDtKVv/pYhCI=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjNZ/j4B19ztYWIBxhhciQGm9v0ZMo8xLYn2Bt4AAAAMARCsgNlqhd5IsZldo6P6NifIHhNdxCGEe3Yqpn/BDtKVv/pYhCI=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:55.7662296\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1837823520" + "RandomSeed": "565807793" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncAsync.json index 8fc1a700798a7..0ab10304d4e9f 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncAsync.json @@ -8,83 +8,99 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-8876b161f391a3478727a1fce230ad74-97f58e28ffd04540-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20211015.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "3cb9876bf5cf42b2cb5aa387c4cb3539", + "traceparent": "00-a8dd95ddf587244eb3714f2af44339c5-4a8c45893a37ce41-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "614b55639a783d05fa6434ec79e33892", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 201, "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "WeIpUA2VnUmTCK7ddYZ\u002BkA.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "tCxyWNz\u002BhEat30gVM2/dow.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAADmu2r7msxoQqBZiSQsuDUOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAACS0E5DvZCzQLjMxDGwD02mV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "3cb9876bf5cf42b2cb5aa387c4cb3539", - "X-Processing-Time": "97ms" + "x-ms-client-request-id": "614b55639a783d05fa6434ec79e33892", + "X-Processing-Time": "20ms" }, "ResponseBody": { "identity": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d7ab-5470-2248220030f5" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-701e-d68a-084822005a6b" } } }, { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-78d727895817ea4a86cf08fc3279be4b-5284d13dd450b24d-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "756d079c3a858fa0af00c80969cbdfd3", + "traceparent": "00-244fb7b057d7c64d8014e769f351df77-fee4c83baf30d84c-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "8791e4e5fcce9e3bd9053605ee6372a7", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d7ab-5470-2248220030f5" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-701e-d68a-084822005a6b" }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "JXwyg99a3UCTGjX5jPfXYw.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "fohQNieelkOg1YsSzFnPCQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAACenq\u002Bv\u002Bcx6Q50CfxwQVXhoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAABl9CRb8oi9QZjQUv1xprAtV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "756d079c3a858fa0af00c80969cbdfd3", - "X-Processing-Time": "92ms" + "x-ms-client-request-id": "8791e4e5fcce9e3bd9053605ee6372a7", + "X-Processing-Time": "20ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:18.5932425\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANoo3sGkB18RYW2cNTckZhd\u002BybiMH9DNELBEJjm0AAAAMARCsgNlqhd5IsZldo6P6NifIsq0PQmx0I3/1Htc\u002BMul8Y\u002BIXZRk=", + "username": "BQAANjPO1DIB19ztnMKlbxRFrng8xmtOFB6pCSmNpdkAAAAMARCsgNlqhd5IsZldo6P6NifISFf8Qmi0Z2HJm8mBSaFQgYS3L5A=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjPO1DIB19ztnMKlbxRFrng8xmtOFB6pCSmNpdkAAAAMARCsgNlqhd5IsZldo6P6NifISFf8Qmi0Z2HJm8mBSaFQgYS3L5A=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.5346886\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1912866712" + "RandomSeed": "1254369709" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithNearestRouteTypeAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithNearestRouteTypeAsync.json new file mode 100644 index 0000000000000..83beb19566b72 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithNearestRouteTypeAsync.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-923a301802498548a49e555e510011a8-094a62b4892c7947-00", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "50363d03adc9a8b61da9a327e021a446", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "A1IjOWeQ\u002BEScIUQtfVUTYA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06GiUYQAAAACyWrbNv/6\u002BS5WqTzx9jOJ3V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "50363d03adc9a8b61da9a327e021a446", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7087-d68a-084822005a6c" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "traceparent": "00-782bb3bb92ff3c41a2fa03df4e93c55a-9eeb41ca8f966749-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "9061a71d858f8aa76dfd35bc50bea504", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-7087-d68a-084822005a6c", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "j5cRh/8\u002BokWY8pAHhea5kw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "06GiUYQAAAAA7Zb3JvRYgTJNRc/GkNNMgV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "9061a71d858f8aa76dfd35bc50bea504", + "X-Processing-Time": "21ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjPfhMEB19ztdovOM5R6f9KftWbCpOUoQLQ5ClwAAAAMARCsgNlqhd5IsZldo6P6NifI26XZDENQyiHqhoDZ/Wm8aC2YLcc=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:56.6411657\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1134882101" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentity.json deleted file mode 100644 index ad09418bab6c7..0000000000000 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentity.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "traceparent": "00-49a4ad839fe4f74cb6cea72bbc9d5674-3b927ad430a9df48-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "f050e146b5b77777b355051ba5b673bb", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 15 Oct 2021 22:49:55 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 15 Oct 2021 22:49:55 GMT", - "MS-CV": "ngDKXIZyVkClK\u002BNx01SDVQ.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kwVqYQAAAAC5xYRUm94TQ5V2TVk9iqTPV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "f050e146b5b77777b355051ba5b673bb", - "X-Processing-Time": "24ms" - }, - "ResponseBody": { - "expiresOn": "2021-10-15T22:49:55.4967206\u002B00:00", - "iceServers": [ - { - "urls": [ - "stun:world.relay.skype.com:3478", - "turn:world.relay.skype.com:3478" - ], - "username": "BQAANk3rJ9EB18OpUI5rJlXtnesP8IPVPUs8UhyPAGcAAAAMARCsgNlqhd5IsZldo6P6NifICY7BVt03qXP1rvhmvW3XyW6gWlU=", - "credential": "Sanitized" - } - ] - } - } - ], - "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "400576995" - } -} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentityAsync.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentityAsync.json index 343911d8dfde3..e049dbe3f1ec1 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentityAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentityAsync.json @@ -1,52 +1,65 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "traceparent": "00-f4389799a34c4a4baa6fc7ed2e0f295c-b4273f1738019e48-00", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "f9529d003e906e42c2841c229ca7c8c5", + "traceparent": "00-23c5135ced399f4dac9ac15257ae8ea7-4873e3d70c882948-00", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "3e1b24a4be1a136741e713613d5f10fa", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:56 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:18 GMT", - "MS-CV": "hzwKQD/HUUmoXkmnMRM2aQ.0", + "Date": "Wed, 17 Nov 2021 02:28:56 GMT", + "MS-CV": "nVS56\u002BRlnUeCDYgjhUTKbA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kitrYQAAAAA1fhomiTpuRplkFTlrwcmEV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "06GiUYQAAAABgA95vpRP0Q6Rntt9x62\u002BAV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "f9529d003e906e42c2841c229ca7c8c5", - "X-Processing-Time": "23ms" + "x-ms-client-request-id": "3e1b24a4be1a136741e713613d5f10fa", + "X-Processing-Time": "16ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:18.6952073\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANopIY4wB18RYHSTcOIrBce4Dt2PiT\u002BetSxjgyfYAAAAMARCsgNlqhd5IsZldo6P6NifInLpDrcT8QFJI7JFUBXcLz2eExyA=", + "username": "BQAANjPmqTMB19ztPqlJbgBpLb165uOxVAl7m84df7AAAAAMARCsgNlqhd5IsZldo6P6NifIX8IZD6KI0/3u2nHTsBGmq3cY58A=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjPmqTMB19ztPqlJbgBpLb165uOxVAl7m84df7AAAAAMARCsgNlqhd5IsZldo6P6NifIX8IZD6KI0/3u2nHTsBGmq3cY58A=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:56.6895833\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "2025263387" + "RandomSeed": "1015394493" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithNearestRouteType.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithNearestRouteType.json new file mode 100644 index 0000000000000..bc491058d485d --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithNearestRouteType.json @@ -0,0 +1,96 @@ +{ + "Entries": [ + { + "RequestUri": "https://smstestapp.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Communication.Identity/1.1.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "3aaeb3f0a567ced889519f2d04302f7e", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview, 2021-11-01", + "Content-Length": "101", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "A2JqX6i/B0aF3Z32pQxmog.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "052iUYQAAAABRxM0fxYbgTIGqRfykp8u\u002BV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "3aaeb3f0a567ced889519f2d04302f7e", + "X-Processing-Time": "24ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6d86-d68a-084822005a68" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "110", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "77bcd34a2bc740d9ff73be74cbb38c4e", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-cb9b-6d86-d68a-084822005a68", + "routeType": "nearest" + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "286", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "mt6BuyFoc0m9vBP8roEDbQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "052iUYQAAAAAmFpXF5ozwSJQRHA0ndlGwV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "77bcd34a2bc740d9ff73be74cbb38c4e", + "X-Processing-Time": "22ms" + }, + "ResponseBody": { + "iceServers": [ + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjNqrzgB19zt4jEJWFyUpPsV9btM/EZxQAaa9E4AAAAMARCsgNlqhd5IsZldo6P6NifIlZdII2kJeTa/CXZkzecNlXQy8D0=", + "credential": "Sanitized" + } + ], + "expiresOn": "2021-11-17T02:28:55.8761726\u002B00:00" + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "446320185" + } +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithoutIdentity.json b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithoutIdentity.json index 22d2a84a561ec..ba2b38b977307 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithoutIdentity.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithoutIdentity.json @@ -1,51 +1,64 @@ { "Entries": [ { - "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-10-08-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "User-Agent": "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211011.1 (.NET Framework 4.8.4420.0; Microsoft Windows 10.0.22471 )", - "x-ms-client-request-id": "f238376995c5c7867a0012fa0aef052c", + "User-Agent": [ + "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20211116.1", + "(.NET Core 3.1.20; Microsoft Windows 10.0.22494)" + ], + "x-ms-client-request-id": "2bf2518b7e82ab85299838bab7247e1e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Sat, 16 Oct 2021 19:44:16 GMT", + "x-ms-date": "Wed, 17 Nov 2021 02:28:55 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": {}, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", + "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview, 2021-10-08-preview", + "Content-Length": "522", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 16 Oct 2021 19:44:16 GMT", - "MS-CV": "18o1s5nAVkq5zU8S2yhVaA.0", + "Date": "Wed, 17 Nov 2021 02:28:55 GMT", + "MS-CV": "XovuVX6CmEy4R5/dU123dw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0kCtrYQAAAABKVRaKsefkT5m5u9i1ocyWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "052iUYQAAAACZ9sejDLwaRZBVwdKAFOODV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "f238376995c5c7867a0012fa0aef052c", - "X-Processing-Time": "44ms" + "x-ms-client-request-id": "2bf2518b7e82ab85299838bab7247e1e", + "X-Processing-Time": "19ms" }, "ResponseBody": { - "expiresOn": "2021-10-16T19:44:17.0287619\u002B00:00", "iceServers": [ { + "routeType": "any", "urls": [ "stun:world.relay.skype.com:3478", "turn:world.relay.skype.com:3478" ], - "username": "BQAANolIog8B18RYgExoz2NU3/dIbD/Rw8uihOG7XvYAAAAMARCsgNlqhd5IsZldo6P6NifIKebRknKPXfMzpSyueWnrvBCwGvQ=", + "username": "BQAANjNx2UAB19zt1yf/whksPG\u002BzecUbLeu1yWh6zw4AAAAMARCsgNlqhd5IsZldo6P6NifI89JwMreC/xLCpsqCx2xamqSpbe8=", + "credential": "Sanitized" + }, + { + "routeType": "nearest", + "urls": [ + "stun:13.107.17.41:3478", + "turn:13.107.17.41:3478" + ], + "username": "BQAANjNx2UAB19zt1yf/whksPG\u002BzecUbLeu1yWh6zw4AAAAMARCsgNlqhd5IsZldo6P6NifI89JwMreC/xLCpsqCx2xamqSpbe8=", "credential": "Sanitized" } - ] + ], + "expiresOn": "2021-11-17T02:28:55.9286821\u002B00:00" } } ], "Variables": { "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1950220195" + "RandomSeed": "1448732396" } } \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs b/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs index 70616fb1df9b4..1a0252af7b94b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using Azure.Communication.Identity; +using Azure.Communication.NetworkTraversal.Models; using Azure.Communication.NetworkTraversal.Tests; using Azure.Core; using Azure.Core.TestFramework; @@ -33,7 +34,6 @@ public async Task GetRelayConfigurationAsync() var communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); Response response = await communicationIdentityClient.CreateUserAsync(); var user = response.Value; - #region Snippet:CreateCommunicationRelayClientAsync // Get a connection string to our Azure Communication resource. //@@var connectionString = ""; @@ -41,8 +41,7 @@ public async Task GetRelayConfigurationAsync() #endregion Snippet:CreateCommunicationRelayClientAsync client = CreateClientWithConnectionString(); - #region Snippet:GetRelayConfigurationAsync - Response relayConfiguration = await client.GetRelayConfigurationAsync(user); + Response relayConfiguration = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions { CommunicationUser = user }); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -54,8 +53,40 @@ public async Task GetRelayConfigurationAsync() } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"Route type: {iceServer.RouteType}"); } - #endregion Snippet:GetRelayConfigurationAsync + } + + [Test] + [AsyncOnly] + public async Task GetRelayConfigurationAsyncWithNearestRouteType() + { + var connectionString = TestEnvironment.LiveTestDynamicConnectionString; + + var communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); + Response response = await communicationIdentityClient.CreateUserAsync(); + var user = response.Value; + + // Get a connection string to our Azure Communication resource. + //@@var connectionString = ""; + var client = new CommunicationRelayClient(connectionString); + client = CreateClientWithConnectionString(); + #region Snippet:GetRelayConfigurationAsyncWithNearestRouteType + Response relayConfiguration = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions { CommunicationUser = user, RouteType = RouteType.Nearest }); + DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; + IReadOnlyList iceServers = relayConfiguration.Value.IceServers; + Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); + foreach (CommunicationIceServer iceServer in iceServers) + { + foreach (string url in iceServer.Urls) + { + Console.WriteLine($"ICE Server Url: {url}"); + } + Console.WriteLine($"ICE Server Username: {iceServer.Username}"); + Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server Route Type: {iceServer.RouteType}"); + } + #endregion Snippet:GetRelayConfigurationAsyncWithNearestRouteType } [Test] @@ -69,7 +100,7 @@ public async Task GetRelayConfigurationAsyncWithoutIdentity() var client = new CommunicationRelayClient(connectionString); client = CreateClientWithConnectionString(); - #region Snippet:GetRelayConfigurationAsyncWithoutIdentity + #region Snippet:GetRelayConfigurationAsync Response relayConfiguration = await client.GetRelayConfigurationAsync(); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; @@ -82,8 +113,9 @@ public async Task GetRelayConfigurationAsyncWithoutIdentity() } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); } - #endregion Snippet:GetRelayConfigurationAsyncWithoutIdentity + #endregion Snippet:GetRelayConfigurationAsync } [Test] @@ -103,8 +135,7 @@ public void GetRelayConfiguration() #endregion Snippet:CreateCommunicationRelayClient client = CreateClientWithConnectionString(); - #region Snippet:GetRelayConfiguration - Response relayConfiguration = client.GetRelayConfiguration(user); + Response relayConfiguration = client.GetRelayConfiguration(new GetRelayConfigurationOptions { CommunicationUser = user }); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); @@ -117,7 +148,37 @@ public void GetRelayConfiguration() Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); } - #endregion Snippet:GetRelayConfiguration + } + + [Test] + [SyncOnly] + public void GetRelayConfigurationWithNearestRouteType() + { + var connectionString = TestEnvironment.LiveTestDynamicConnectionString; + + var communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); + Response response = communicationIdentityClient.CreateUser(); + var user = response.Value; + + // Get a connection string to our Azure Communication resource. + //@@var connectionString = ""; + var client = new CommunicationRelayClient(connectionString); + client = CreateClientWithConnectionString(); + + Response relayConfiguration = client.GetRelayConfiguration(new GetRelayConfigurationOptions {CommunicationUser = user, RouteType = RouteType.Nearest }); + DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; + IReadOnlyList iceServers = relayConfiguration.Value.IceServers; + Console.WriteLine($"Expires On: {turnTokenExpiresOn}"); + foreach (CommunicationIceServer iceServer in iceServers) + { + foreach (string url in iceServer.Urls) + { + Console.WriteLine($"ICE Server Url: {url}"); + } + Console.WriteLine($"ICE Server Username: {iceServer.Username}"); + Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); + } } [Test] @@ -131,6 +192,7 @@ public void GetRelayConfigurationWithoutIdentity() var client = new CommunicationRelayClient(connectionString); client = CreateClientWithConnectionString(); + #region Snippet:GetRelayConfiguration Response relayConfiguration = client.GetRelayConfiguration(); DateTimeOffset turnTokenExpiresOn = relayConfiguration.Value.ExpiresOn; IReadOnlyList iceServers = relayConfiguration.Value.IceServers; @@ -143,7 +205,9 @@ public void GetRelayConfigurationWithoutIdentity() } Console.WriteLine($"ICE Server Username: {iceServer.Username}"); Console.WriteLine($"ICE Server Credential: {iceServer.Credential}"); + Console.WriteLine($"ICE Server RouteType: {iceServer.RouteType}"); } + #endregion Snippet:GetRelayConfiguration } [Test] @@ -163,7 +227,7 @@ public async Task CreateCommunicationRelayWithToken() client = CreateClientWithTokenCredential(); try { - Response relayConfigurationResponse = await client.GetRelayConfigurationAsync(user); + Response relayConfigurationResponse = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions{ CommunicationUser = user }); } catch (Exception ex) { @@ -189,7 +253,7 @@ public async Task CreateCommunicationRelayWithAccessKey() client = CreateClientWithAzureKeyCredential(); try { - Response relayConfigurationResponse = await client.GetRelayConfigurationAsync(user); + Response relayConfigurationResponse = await client.GetRelayConfigurationAsync(new GetRelayConfigurationOptions{ CommunicationUser = user }); } catch (Exception ex) {