diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md index 4bd3a4ea8865..5608fb7087e8 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.0.0-beta.3 (Unreleased) ### Features Added +- Making user identity an optional argument when calling GetRelayConfiguration and GetRelayConfigurationAsync ### Breaking Changes diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/README.md b/sdk/communication/Azure.Communication.NetworkTraversal/README.md index cba095b27527..07c2bba15d35 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/README.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/README.md @@ -83,6 +83,24 @@ foreach (CommunicationIceServer iceServer in iceServers) } ``` +## Getting a Relay Configuration for a user without identity async + +```C# Snippet:GetRelayConfigurationAsyncWithoutIdentity +Response relayConfiguration = await client.GetRelayConfigurationAsync(); +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}"); +} +``` + ## Troubleshooting > TODO 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 9cea304c171b..ecbaa90ab4f9 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 @@ -14,8 +14,8 @@ 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, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRelayConfigurationAsync(Azure.Communication.CommunicationUserIdentifier communicationUser, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw 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 partial class CommunicationRelayClientOptions : Azure.Core.ClientOptions { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs index f03a7cf02ccc..4af293d43dcd 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/CommunicationRelayClient.cs @@ -94,13 +94,13 @@ protected CommunicationRelayClient() /// The for whom to issue a token. /// The cancellation token to use. /// The server returned an error. - public virtual Response GetRelayConfiguration(CommunicationUserIdentifier communicationUser, CancellationToken cancellationToken = default) + public virtual Response GetRelayConfiguration(CommunicationUserIdentifier communicationUser = null, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CommunicationRelayClient)}.{nameof(GetRelayConfiguration)}"); scope.Start(); try { - return RestClient.IssueRelayConfiguration(communicationUser.Id, cancellationToken); + return RestClient.IssueRelayConfiguration(communicationUser?.Id, cancellationToken); } catch (Exception ex) { @@ -112,13 +112,13 @@ public virtual Response GetRelayConfiguration(C /// Asynchronously gets a Relay Configuration for a . /// The for whom to issue a token. /// The cancellation token to use. - public virtual async Task> GetRelayConfigurationAsync(CommunicationUserIdentifier communicationUser, CancellationToken cancellationToken = default) + public virtual async Task> GetRelayConfigurationAsync(CommunicationUserIdentifier communicationUser = null, 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(communicationUser?.Id, cancellationToken).ConfigureAwait(false); } catch (Exception ex) { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs index 4428a7849f38..88fe37f2a872 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/CommunicationNetworkTraversalRestClient.cs @@ -48,7 +48,10 @@ internal HttpMessage CreateIssueRelayConfigurationRequest(string id) request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new CommunicationRelayConfigurationRequest(id); + var model = new CommunicationRelayConfigurationRequest() + { + Id = id + }; var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); request.Content = content; @@ -58,14 +61,8 @@ internal HttpMessage CreateIssueRelayConfigurationRequest(string id) /// Issue a configuration for an STUN/TURN server for an existing identity. /// An existing ACS identity. /// The cancellation token to use. - /// is null. - public async Task> IssueRelayConfigurationAsync(string id, CancellationToken cancellationToken = default) + public async Task> IssueRelayConfigurationAsync(string id = null, CancellationToken cancellationToken = default) { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - using var message = CreateIssueRelayConfigurationRequest(id); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) @@ -85,14 +82,8 @@ public async Task> IssueRelayConfigura /// Issue a configuration for an STUN/TURN server for an existing identity. /// An existing ACS identity. /// The cancellation token to use. - /// is null. - public Response IssueRelayConfiguration(string id, CancellationToken cancellationToken = default) + public Response IssueRelayConfiguration(string id = null, CancellationToken cancellationToken = default) { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - using var message = CreateIssueRelayConfigurationRequest(id); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) 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 fb6781431aa9..e6c04349ca5d 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 @@ -15,8 +15,11 @@ internal partial class CommunicationRelayConfigurationRequest : IUtf8JsonSeriali void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("id"); - writer.WriteStringValue(Id); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } 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 0a2b22776e3b..37d0274482ca 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.cs @@ -5,27 +5,17 @@ #nullable disable -using System; - namespace Azure.Communication.NetworkTraversal { /// Request for a CommunicationRelayConfiguration. internal partial class CommunicationRelayConfigurationRequest { /// Initializes a new instance of CommunicationRelayConfigurationRequest. - /// An existing ACS identity. - /// is null. - public CommunicationRelayConfigurationRequest(string id) + public CommunicationRelayConfigurationRequest() { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - - Id = id; } /// An existing ACS identity. - public string Id { get; } + public string Id { get; set; } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md b/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md index 554831fdcdbc..16402b73c58b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/autorest.md @@ -10,6 +10,6 @@ title: Network traversal tag: package-2021-06-21-preview model-namespace: false require: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a59747e42da9d74654106f16c5410620b5941fe0/specification/communication/data-plane/Turn/readme.md + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/4c8162b0a1f7bbd46e9aedc0e19bbe181e549c4c/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 05383627afa5..75646a643440 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/CommunicationRelayClient/CommunicationRelayClientLiveTests.cs @@ -58,5 +58,35 @@ public async Task GettingTurnCredentialsGeneratesTurnCredentials(AuthMethod auth Assert.IsFalse(string.IsNullOrWhiteSpace(serverCredential.Credential)); } } + + [Test] + [TestCase(AuthMethod.ConnectionString, TestName = "GettingTurnCredentialsWithConnectionStringWithoutIdentity")] + [TestCase(AuthMethod.KeyCredential, TestName = "GettingTurnCredentialsWithKeyCredentialWithoutIdentity")] + [TestCase(AuthMethod.TokenCredential, TestName = "GettingTurnCredentialsWithTokenCredentialWithoutIdentity")] + public async Task GettingTurnCredentialsGeneratesTurnCredentialsWithoutIdentity(AuthMethod authMethod, params string[] scopes) + { + CommunicationRelayClient client = authMethod switch + { + AuthMethod.ConnectionString => CreateClientWithConnectionString(), + AuthMethod.KeyCredential => CreateClientWithAzureKeyCredential(), + AuthMethod.TokenCredential => CreateClientWithTokenCredential(), + _ => throw new ArgumentOutOfRangeException(nameof(authMethod)), + }; + + Response turnCredentialsResponse = await client.GetRelayConfigurationAsync(); + + 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)); + } + } } } 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 f932530dc244..0396906ba4a5 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-7c63151b4646af4292041101ee56131e-3fccba72956ede4f-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "6871f17a0b73943f24d7bf1130628130", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:02 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:18 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:02 GMT", - "MS-CV": "LqyCH1u13EOI4EnA4GrgjQ.0", + "Date": "Sat, 16 Oct 2021 19:44:18 GMT", + "MS-CV": "OW/jbH4qh0anmOuln6auxw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAAD9eCoXtlmzS6\u002ByJBUNhX6wV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kitrYQAAAABJJsXn60\u002BhQ7baeSwK0LxyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "6871f17a0b73943f24d7bf1130628130", - "X-Processing-Time": "64ms" + "x-ms-client-request-id": "c7facbf579002f21968825843344ef9d", + "X-Processing-Time": "93ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c9fd-b8ba-a43a0d0028e5" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d969-5470-2248220030f6" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-a3ee3b60128c6b4cb93e9e116a701f1e-5ca4f0e0a083fd47-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "770284ac2cd08e315f4ded0eb88f5dcd", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:02 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c9fd-b8ba-a43a0d0028e5" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d969-5470-2248220030f6" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:03 GMT", - "MS-CV": "ImXZOekjR0qa/ECdkDRF2g.0", + "Date": "Sat, 16 Oct 2021 19:44:18 GMT", + "MS-CV": "b0zth0x6OUujIh\u002Btkk1YEg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAACbQHP8kYgPSq4vgOUwYewsV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kitrYQAAAACYmBr508zMQadJpAWs0vV9V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "770284ac2cd08e315f4ded0eb88f5dcd", - "X-Processing-Time": "397ms" + "x-ms-client-request-id": "8740f109e869b707e645092dab506c2e", + "X-Processing-Time": "102ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:03.4143988\u002B00:00", + "expiresOn": "2021-10-16T19:44:19.0510608\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANthpFHQB13aLBVm35o1grJ2dGJdBXwTW2eGVwA0AAAAMARDhtQreHmhCb7YC/dpf2n6xGa6opcACbhyqDOxlVoSElBCn2zE=", + "username": "BQAANop/BMsB18RYDFtoEmldVGAPuzvhw9GwdkvUHgsAAAAMARCsgNlqhd5IsZldo6P6NifI8Hife0LKNgpAEiYD2cQmmqquwM8=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "660110768" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "109664023" } } \ 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 d0faf3b067a4..8c2f7d36dc04 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringAsync.json @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-4f3d091011dbb24ea795e5c476f6f71b-ce332fd516784146-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "05a7b0cec23b04e849833833fd4ea375", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:04 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:04 GMT", - "MS-CV": "UJ\u002BY4dXWZ0mRhOYwZd160g.0", + "Date": "Sat, 16 Oct 2021 19:44:20 GMT", + "MS-CV": "/zMX8y4csEezXMVn5vqXTA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06KToYAAAAABAMiCPQTfWSb279ftD4N7UV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lCtrYQAAAABCxzljUKHdQ4wsZxuEO\u002BwcV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "05a7b0cec23b04e849833833fd4ea375", - "X-Processing-Time": "62ms" + "x-ms-client-request-id": "6464e3973bc9847277f982281df83cde", + "X-Processing-Time": "94ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cf9d-b8ba-a43a0d0028e8" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-df79-5470-2248220030f9" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-d46a7607f9f99348816a1120d0f07331-63214c005700494c-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d9736c859a78e237edaa417bcb69bcc7", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:04 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cf9d-b8ba-a43a0d0028e8" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-df79-5470-2248220030f9" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:04 GMT", - "MS-CV": "6hKCq0rcv0\u002BnOqYNbiS52Q.0", + "Date": "Sat, 16 Oct 2021 19:44:20 GMT", + "MS-CV": "9T9CgtNw40ixOS2S76d7Cg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06KToYAAAAAByBi3/2ustQYCSnHow3J\u002BDV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lCtrYQAAAAA3PbqrQS\u002BWR4H/MtfXiScFV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "d9736c859a78e237edaa417bcb69bcc7", - "X-Processing-Time": "287ms" + "x-ms-client-request-id": "0aee132ebd7907813a06e04c42286fec", + "X-Processing-Time": "92ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:04.7433401\u002B00:00", + "expiresOn": "2021-10-16T19:44:20.5868626\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtk00jwB13aLKamgiQxq7jz1IROVDOvT6wVhLRUAAAAMARDhtQreHmhCb7YC/dpf2n6x44Ng7hJYO5109yUSOmPaf75QOek=", + "username": "BQAANotnTlYB18RYVe9LlP3TPacQ9w1T2jclMg9UDM0AAAAMARCsgNlqhd5IsZldo6P6NifIjdJKiKHs4RQd1SEGP0E/UojhGk8=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "107621483" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "20607078" } } \ 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 new file mode 100644 index 000000000000..8782f4e377b8 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentity.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:19 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": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "k9GJ7MTwtkSFbEP4gBnNXA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kytrYQAAAAD1g2rn9SrdSJ0uATws59YXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "f317da81b60396a9f4f3db9f1b99573b", + "X-Processing-Time": "67ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:19.9844721\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANosLnrcB18RYRbkrCBZFVgy/PL8REVAJ6ZsJrsQAAAAMARCsgNlqhd5IsZldo6P6NifIRlSde1dnok\u002B57GXhWKXpZ5dYQM0=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1620095093" + } +} \ 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 new file mode 100644 index 000000000000..ea7b08a0ac46 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionStringWithoutIdentityAsync.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:21 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": "Sat, 16 Oct 2021 19:44:21 GMT", + "MS-CV": "Xo2LvOEJ/kioBdhXsZth2g.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lStrYQAAAABz3hkbUMuYQZlxLg3VEGLTV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "56d331261223f16d6c253b801bbb7912", + "X-Processing-Time": "25ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:21.3481117\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANovbyUMB18RYCxcYsvJyKEaShPwFwSRW2oj3QJoAAAAMARCsgNlqhd5IsZldo6P6NifIswZYrzyCxbY0inwHEDlvFdVfAJ0=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1088513180" + } +} \ 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 8378d97a42bc..fff602faf78b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredential.json @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-bde07d96fcd5c74f80671a29f9e3997b-2d4122c16b49f443-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "6fe595f9798c2c2d7f3038dab4ee44fa", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:03 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:19 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:03 GMT", - "MS-CV": "11ZdQ/RI8EiZxBP8kWTPwg.0", + "Date": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "qN0PlKpIlU6\u002BlZOPatnjUQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "056ToYAAAAACvyeloptAxS52koMHEE4irV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kytrYQAAAAC3AgaY1IDBTIrkUzxqdgu4V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "6fe595f9798c2c2d7f3038dab4ee44fa", - "X-Processing-Time": "62ms" + "x-ms-client-request-id": "eaea7984e1f93b2176b723505c6e1696", + "X-Processing-Time": "93ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cc53-b8ba-a43a0d0028e6" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dae8-5470-2248220030f7" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-c6c8b545b24b89428f74d251a18b2a09-e60021aee74e364d-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "97b36126b895b22427811ed1a0236708", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:03 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:19 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cc53-b8ba-a43a0d0028e6" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dae8-5470-2248220030f7" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:03 GMT", - "MS-CV": "WNn0UXBdD02ATiqiqY3TUA.0", + "Date": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "99YEfDKoY0msyYy3cPgOMA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "056ToYAAAAADMg8aIWp3FS7wcYmA9WypUV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kytrYQAAAADtcTsisckJTrxNcuY77EgRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "97b36126b895b22427811ed1a0236708", - "X-Processing-Time": "217ms" + "x-ms-client-request-id": "ca1212e04c858b2f34f7af35b60c2249", + "X-Processing-Time": "94ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:03.8315308\u002B00:00", + "expiresOn": "2021-10-16T19:44:19.422154\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtioxYUB13aLtroxfuWhZAH17VWvxZLhlEqBgcIAAAAMARDhtQreHmhCb7YC/dpf2n6xJDFir0P6UWyJ4a9vgNrIhRiw2m4=", + "username": "BQAANoq17BQB18RY0MRAxa2g\u002B13gP0QwZj/qjbrIOiIAAAAMARCsgNlqhd5IsZldo6P6NifI/k0Dr12yywg2OaWeRJNJMcFNfnI=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1266706672" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1411744663" } } \ 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 de4325b72cba..8a98aa2e2480 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialAsync.json @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-e1c3e116207ab94d8bf4b38d3e5197a1-3277ff8cfb534c47-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "904233410bb9e287278628d15e995d09", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:04 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:04 GMT", - "MS-CV": "AVJ6Qr9eTUuOci7SWqbbRQ.0", + "Date": "Sat, 16 Oct 2021 19:44:20 GMT", + "MS-CV": "W25G60dq9k6MyzZe3xNETA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06KToYAAAAADbrtD4pN09QpCKAkkc9RMPV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lCtrYQAAAABH0p\u002B68CTITJZ/Lq50ju/NV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "904233410bb9e287278628d15e995d09", - "X-Processing-Time": "61ms" + "x-ms-client-request-id": "996fa9868f7125c034e110badce4f723", + "X-Processing-Time": "88ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-d179-b8ba-a43a0d0028e9" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e0cd-5470-2248220030fa" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-9875ffee506ae94d88ed82f6d4d6e6f4-63846cd3bc158a42-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "117faa9682ab681e5fc160daf529d60c", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:04 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-d179-b8ba-a43a0d0028e9" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e0cd-5470-2248220030fa" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:05 GMT", - "MS-CV": "hot7pHa4DE\u002Bd7\u002BuzLetk3A.0", + "Date": "Sat, 16 Oct 2021 19:44:20 GMT", + "MS-CV": "TJKr6Xa/lEGRpA3W3qkoGQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06KToYAAAAAABIoIdMViVSLMteDB51L/bV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lCtrYQAAAACT9PE39LXBQIG2YDdxb5FoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "117faa9682ab681e5fc160daf529d60c", - "X-Processing-Time": "193ms" + "x-ms-client-request-id": "3aef70c498d3e93df4c07b9deb89f3ab", + "X-Processing-Time": "88ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:05.1306612\u002B00:00", + "expiresOn": "2021-10-16T19:44:20.9175545\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtlvnIAB13aLYtbb95nRA9LGdWArkAZlGvXYWP4AAAAMARDhtQreHmhCb7YC/dpf2n6xBXdaEqs/pe7avrhpFkkc0Kdpv9o=", + "username": "BQAANouaA/YB18RYymidWQFtjp4IpjYRIR1ckqaLYFwAAAAMARCsgNlqhd5IsZldo6P6NifIRcdPcH4YxzNpyApZl/iN/I1HN5E=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "983455153" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1442175326" } } \ 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 new file mode 100644 index 000000000000..cfbabb2dc1c1 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentity.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 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": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "n3wpTztfwk2itYl3e9BeYw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lCtrYQAAAAB1cCWl4RF6Q4biEaMte\u002BvuV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "a188149e4279c39d40d3c89f538e4986", + "X-Processing-Time": "31ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:20.0943972\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANosdZIMB18RYn7AL3e2KqLoo90Egx0Z3nxpt0a8AAAAMARCsgNlqhd5IsZldo6P6NifIpobJUuDb6F2sUYAtVYmReYqGErw=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "263654804" + } +} \ 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 new file mode 100644 index 000000000000..e0a338796f8a --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithKeyCredentialWithoutIdentityAsync.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:21 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": "Sat, 16 Oct 2021 19:44:21 GMT", + "MS-CV": "8m\u002BKMfKxJ0OFkw9l/7KZUg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lStrYQAAAADZjylvXkXaR4NXiMTVOJ2HV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "4a4dbf01c51b38ea73f21d10e4a49848", + "X-Processing-Time": "36ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:21.7283991\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANowXgQAB18RYukvQZnjsFZ0yTLPZlWt1cW\u002B9g7IAAAAMARCsgNlqhd5IsZldo6P6NifIx\u002BOWcBQ1K6bf3x3YJ9DoG018vdg=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "86724" + } +} \ 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 32bfb17f1bab..f38174884592 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredential.json @@ -1,85 +1,80 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-ac2dc593423d914fac044f157159c583-a3efef7c929c6c45-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "c8da0877372dda7b1d54c338aa032636", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:03 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:19 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:03 GMT", - "MS-CV": "LTpp1pzCIUig81kuVJBa1w.0", + "Date": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "\u002BugRYFeGS0yBIeOPRwq9Cg.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "056ToYAAAAADK9A\u002B9m/pdTbEXuYXS3js0V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kytrYQAAAABihAIQOaSkQouOSOY07qavV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "c8da0877372dda7b1d54c338aa032636", - "X-Processing-Time": "139ms" + "x-ms-client-request-id": "73cc07149b60b693c3d07cfb6931ee0e", + "X-Processing-Time": "95ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cde5-b8ba-a43a0d0028e7" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dc42-5470-2248220030f8" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-b8e1e925667f104c9bfa9ca2089a1ac4-56682039fe32e04d-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "2887dea8f70a6f0830ec722b533da1e2", + "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", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-cde5-b8ba-a43a0d0028e7" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-dc42-5470-2248220030f8" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:04 GMT", - "MS-CV": "d1XR\u002BRf0h0\u002BXyjGDfzVjVg.0", + "Date": "Sat, 16 Oct 2021 19:44:19 GMT", + "MS-CV": "CyA0GFBYsE26NwAneOXcig.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06KToYAAAAABSaNgt\u002BHRAT42uLVawCWrqV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kytrYQAAAABv2fZsyjHPSbkCHWdX9qQMV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "2887dea8f70a6f0830ec722b533da1e2", - "X-Processing-Time": "173ms" + "x-ms-client-request-id": "331b5f32c6cc91db1a2e100dc7d90c51", + "X-Processing-Time": "89ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:04.2675959\u002B00:00", + "expiresOn": "2021-10-16T19:44:19.7608797\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtjsevIB13aLja6g8dOwH8GjAUOVP8WXa3bAtAQAAAAMARDhtQreHmhCb7YC/dpf2n6xXLBshaVVVSAbEj0\u002Bx3f\u002BzWHIPMw=", + "username": "BQAANorqRbwB18RYlGXVB6Ls00euJz2PlXJ0ZsqbkBUAAAAMARCsgNlqhd5IsZldo6P6NifI/cRvrG5xiy28KijOwCRWGZmkE1Y=", "credential": "Sanitized" } ] @@ -87,7 +82,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1842871913" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "634125802" } } \ 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 632a1cbb62ac..fe2ab1bcdcbb 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialAsync.json @@ -1,85 +1,80 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-6f17631fda72cb4e90f2a3611b23031e-02b646f9bebdf548-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "4d3587be19c7ff4831850f0d2948f0c5", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:05 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:20 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:05 GMT", - "MS-CV": "\u002BcSbfZLTCkC1Uyq/cGvOag.0", + "Date": "Sat, 16 Oct 2021 19:44:20 GMT", + "MS-CV": "IuOZ9rJRlk6MrmQ3VOhppQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06aToYAAAAADMIHXwdtyuR5yVc0Kq6KNfV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lCtrYQAAAABe1il4b/L8SrNkMgofFGArV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "4d3587be19c7ff4831850f0d2948f0c5", - "X-Processing-Time": "61ms" + "x-ms-client-request-id": "abe4ffce436dab40247a0f2171788b9f", + "X-Processing-Time": "90ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-d2fc-b8ba-a43a0d0028ea" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e215-5470-2248220030fb" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-46d4e87e1d2dce4e9d88c9f7537ec2fb-c89d3e9615e32248-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "a08a5477d84c4a87ffb15003af5743d3", + "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", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-d2fc-b8ba-a43a0d0028ea" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-e215-5470-2248220030fb" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:05 GMT", - "MS-CV": "53s/dapcDEaoydiEbISUvA.0", + "Date": "Sat, 16 Oct 2021 19:44:21 GMT", + "MS-CV": "rJaLabbkQkKx\u002Bzfow5GHAQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06aToYAAAAAB0AIO6kWj\u002BS7eiUkMerUSYV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0lStrYQAAAADpqHXWWa6jQ4Iirh1vUmVgV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "a08a5477d84c4a87ffb15003af5743d3", - "X-Processing-Time": "172ms" + "x-ms-client-request-id": "615800344a6156519b99552270674e38", + "X-Processing-Time": "83ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:05.4914673\u002B00:00", + "expiresOn": "2021-10-16T19:44:21.245029\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtmmU34B13aLVO4QJC8cq2VE/uk4L9/3w5WANFIAAAAMARDhtQreHmhCb7YC/dpf2n6xN4\u002BnCJErU9lmsprqzPMeCWT\u002Bh\u002BI=", + "username": "BQAANovMFpwB18RYN30D\u002Bg5vCXJASvnw2IatH2YF8jwAAAAMARCsgNlqhd5IsZldo6P6NifIGv\u002Bg1tW54kERX5QVn9WiEZfBRIc=", "credential": "Sanitized" } ] @@ -87,7 +82,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1627404540" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "2093215646" } } \ 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 new file mode 100644 index 000000000000..79cb266cba10 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentity.json @@ -0,0 +1,50 @@ +{ + "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-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", + "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:20 GMT", + "MS-CV": "hwnljG/sW02Z6RZO\u002Bz4kdg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lCtrYQAAAACx1ntcdjENT5oXN14GfNqLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "e6f980b4ce4ef14820a915e55eee40a1", + "X-Processing-Time": "75ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:20.2485113\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANos1QFUB18RYOqIOKF15T\u002BfTuowsrP9HMNzptcoAAAAMARCsgNlqhd5IsZldo6P6NifI6Gw2Nj6bfpRUM59PqsJ/bVihkiY=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "94761552" + } +} \ 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 new file mode 100644 index 000000000000..6154af7c8313 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithTokenCredentialWithoutIdentityAsync.json @@ -0,0 +1,50 @@ +{ + "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-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", + "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:21 GMT", + "MS-CV": "/BFId5Wyjkeb\u002B5JA8IQqfA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lStrYQAAAAAzKS6v0yhKSbSb\u002BjPjGts3V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "1328bf09870f4ea0e1112656d53a1e08", + "X-Processing-Time": "18ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:21.8239999\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANowlU/EB18RYx\u002BT4\u002B4HvYrLrhE5NjZYfnmnbh7sAAAAMARCsgNlqhd5IsZldo6P6NifIb2DHe\u002BVHZ/HkKSKdvd0cbzsvY/M=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "522985319" + } +} \ 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 e052d7ddcdac..846ff2554537 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 @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-02f7d256fc99b347b1e3736063cfe59c-fed120c8e8619e4e-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "b78684e2362ac2be1a8817a78913a33e", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:34:59 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:14 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:34:59 GMT", - "MS-CV": "fGgd4P9vx06DCpK2cYrdMg.0", + "Date": "Sat, 16 Oct 2021 19:44:14 GMT", + "MS-CV": "ouFEfaKR3EyxLz/QbmwCZQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "046ToYAAAAAA\u002BRtC63tlOQaU9wRxNdR\u002BlV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0jitrYQAAAADeA3z\u002BBajyRq32KgwYEnGKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b78684e2362ac2be1a8817a78913a33e", - "X-Processing-Time": "117ms" + "x-ms-client-request-id": "894dc232ae0b17caeab24b293f489fcb", + "X-Processing-Time": "192ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-bd0f-570c-113a0d002fba" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-c981-dc46-a63a0d006676" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-627850b7fbdf0141b21cb465ed37606a-dc6520ce66863749-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "99a33fed6ce8b6895e9a5133a3941a79", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:34:59 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:14 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-bd0f-570c-113a0d002fba" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-c981-dc46-a63a0d006676" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:34:59 GMT", - "MS-CV": "rNgM0\u002Bkg5kiT1OSW9r5hmQ.0", + "Date": "Sat, 16 Oct 2021 19:44:14 GMT", + "MS-CV": "1WN9rdTNCU\u002BzNuyjQFvtbw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "046ToYAAAAAAfxC0A2oM1Q4RoXfQsdzQCV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0jitrYQAAAACTSzPdrjvLRpQU\u002BjNmsIZ7V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "99a33fed6ce8b6895e9a5133a3941a79", - "X-Processing-Time": "186ms" + "x-ms-client-request-id": "b8e4a4adfd7732cc3d763bde016e4c4d", + "X-Processing-Time": "88ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:34:59.9646006\u002B00:00", + "expiresOn": "2021-10-16T19:44:14.9837869\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtZahEMB13aLB3i9lXwDuvAIr2YsfBPTuLh8570AAAAMARDhtQreHmhCb7YC/dpf2n6xPxb\u002BvtiyDeIZpTYsSKFqI3Dt08E=", + "username": "BQAANogQK6UB18RYe/2HXUfN4Xa5V\u002BDoBhVORHJ\u002B/GMAAAAMARCsgNlqhd5IsZldo6P6NifIKDeeztFHF4FVbmGRO4T1ykJdknI=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1569425966" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "713688657" } } \ 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 5843fd3f09c9..1abd8555e6af 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 @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-eec8032b9b97714c9c28d785df51e751-0d395173d571bd4a-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "ab067b8b6963501987e5ce17c406c333", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:01 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:17 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:01 GMT", - "MS-CV": "OGTTDxHA2kq31ZjZrttY6w.0", + "Date": "Sat, 16 Oct 2021 19:44:16 GMT", + "MS-CV": "AVKgb5neFk6VTNBSrIR/UQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05aToYAAAAABkLkkRpndxT4b\u002BX\u002B7c1SvvV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kStrYQAAAAA6kjgMgo40RLdShzTNqfDdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "ab067b8b6963501987e5ce17c406c333", - "X-Processing-Time": "95ms" + "x-ms-client-request-id": "e370d50573e1a3331a5faa88d9e254cc", + "X-Processing-Time": "64ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c55d-b8ba-a43a0d0028e2" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d2f1-dc46-a63a0d006679" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-4c112a7d5560b244a394753be3970f90-47df8ca3e492d44d-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "1b92af685c065fb919f7ce2406482bd0", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:01 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:17 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c55d-b8ba-a43a0d0028e2" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d2f1-dc46-a63a0d006679" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:01 GMT", - "MS-CV": "reJ7RG4kvUaWPTDfaDW55w.0", + "Date": "Sat, 16 Oct 2021 19:44:17 GMT", + "MS-CV": "2KSO8GB3ekSrJugHCgomgQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05aToYAAAAAD9aKxW9FPtQo7v4oeNSbhxV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kStrYQAAAAA6mAT5G0bCTLaPfWvMA4AOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "1b92af685c065fb919f7ce2406482bd0", - "X-Processing-Time": "194ms" + "x-ms-client-request-id": "b460356ec0c06e3c6cc48a73ce77180e", + "X-Processing-Time": "83ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:02.0426036\u002B00:00", + "expiresOn": "2021-10-16T19:44:17.3274499\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANteY2ccB13aL/9\u002BwDDWvPvfVhZAwu/L5olN4F\u002BQAAAAMARDhtQreHmhCb7YC/dpf2n6xiEOl8X3jjZwo5jmmC43Bzpy5flc=", + "username": "BQAANol09HkB18RYve6B4MMM2kSCL8hnbZXviyfl3H0AAAAMARCsgNlqhd5IsZldo6P6NifIH1D9/R2AuHsOGpAYUROxn9coVzg=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1534307527" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "805148759" } } \ 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 new file mode 100644 index 000000000000..c8d5991eff07 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentity.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:15 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": "Sat, 16 Oct 2021 19:44:15 GMT", + "MS-CV": "O7TnlQuzDE6yeopPElONbg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jytrYQAAAACixDaSEZRwQb4oejL7HHxvV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "d48e8e0595b0745863a1b9f6c2ccce39", + "X-Processing-Time": "43ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:15.2983383\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANog/22IB18RYFGkiBszTsqNU1IOEB8tr\u002BSif7MUAAAAMARCsgNlqhd5IsZldo6P6NifIcmTYeBYPbL4H6hbQn4wnk\u002BBpQmA=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1739440598" + } +} \ 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 new file mode 100644 index 000000000000..af3ecf9d1a65 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithAccessKeyWithoutIdentityAsync.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:17 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": "Sat, 16 Oct 2021 19:44:17 GMT", + "MS-CV": "TlbAtbdRKEKL3y/cOmXdKw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kStrYQAAAAA5bGpMddPmQpE4pxttpIkzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "e3ca13ed362e94642e2b1828c0b653fc", + "X-Processing-Time": "94ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:17.7368044\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANom1YOYB18RYWRopqtP/X7Cfd/TwDJM6d/oeW4EAAAAMARCsgNlqhd5IsZldo6P6NifIx4PNaqgBW4hjgiWFAlJE5/rBR6k=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1336701471" + } +} \ 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 36e40a484121..80d93340cf71 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 @@ -1,85 +1,80 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-b33308c0c1b85142975e843ccc17ff35-7dd9033bcdb8aa4d-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d8435f118da56949d5b2753f2493bb7e", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:00 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:15 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:00 GMT", - "MS-CV": "\u002B4PQ4\u002BRW9kWma\u002Bb6ZHWwcg.0", + "Date": "Sat, 16 Oct 2021 19:44:15 GMT", + "MS-CV": "ZGWow0jwrk6j9pi8lLMN7w.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05KToYAAAAAAzAu50QUC8QYHawMYdLRAiV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0jytrYQAAAACSp87Mz7itRrssLk1nsrIfV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "d8435f118da56949d5b2753f2493bb7e", - "X-Processing-Time": "86ms" + "x-ms-client-request-id": "f8783b95fea9805843dcb6c3f9f6f531", + "X-Processing-Time": "64ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-bf0b-570c-113a0d002fbc" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-cc83-dc46-a63a0d006677" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-e96528f102cd414d80c692917917a20b-fcf686b952492e49-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "2fa9dcf9714dc303d0ab6577e0d41768", + "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", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-bf0b-570c-113a0d002fbc" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-cc83-dc46-a63a0d006677" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:01 GMT", - "MS-CV": "e7/DUBF8TUWoUJqkKC3x0Q.0", + "Date": "Sat, 16 Oct 2021 19:44:16 GMT", + "MS-CV": "LiwY0lwziEagiJllc4lagQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05KToYAAAAAByn\u002B\u002B9vVuiRrCMlB\u002BGEOVQV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kCtrYQAAAAB4A4vU0vcpRpqucp5DwsqYV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "2fa9dcf9714dc303d0ab6577e0d41768", - "X-Processing-Time": "324ms" + "x-ms-client-request-id": "b8cf9d510c53fb7e290ecdf70908bab3", + "X-Processing-Time": "134ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:01.2390932\u002B00:00", + "expiresOn": "2021-10-16T19:44:16.5476412\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtcdtq4B13aLHlQJnkdvXGItIue9qYINCEgezd4AAAAMARDhtQreHmhCb7YC/dpf2n6x/J4N\u002Bkv2536V7QAGyMwi95aWYcU=", + "username": "BQAANoj9t3UB18RYGnHTyRpFzBbn0nbqNmzbb6hM0wIAAAAMARCsgNlqhd5IsZldo6P6NifIBUGku9mD9/jlizoZd1D6HOWtULs=", "credential": "Sanitized" } ] @@ -87,7 +82,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1817727159" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "894037591" } } \ 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 31b12bf3ec0b..d977301258ff 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 @@ -1,85 +1,80 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-a6b1fad8d2ff234da942af309cd2d312-6c6284f1f0cd6d44-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "7cc1dc4bf8386556ffa9dd0ca2ffcc59", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:02 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:17 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:02 GMT", - "MS-CV": "cddv4w7bok\u002ByqL9XL1XB3w.0", + "Date": "Sat, 16 Oct 2021 19:44:17 GMT", + "MS-CV": "JQsuRhfMj02bXwI0sYSdzQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAABldv53e0v3SaPCi1BqSedsV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kStrYQAAAAC/SdycbXquRL5DiV8SAvNzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "7cc1dc4bf8386556ffa9dd0ca2ffcc59", - "X-Processing-Time": "61ms" + "x-ms-client-request-id": "6db71a8ef51290a3e4812c853a5b0e31", + "X-Processing-Time": "91ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c6e6-b8ba-a43a0d0028e3" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d5b0-5470-2248220030f4" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-a51892bd1c17ca418a155d69f80f0e51-388996e794688b4a-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "b6cf86fc97d2dff0b1cf9c1e77079677", + "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", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c6e6-b8ba-a43a0d0028e3" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d5b0-5470-2248220030f4" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:02 GMT", - "MS-CV": "o/vzs1MkH0SmyL6scCBLOQ.0", + "Date": "Sat, 16 Oct 2021 19:44:17 GMT", + "MS-CV": "5/Tz4opknU2eM/UpO4vF4A.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAABBWxsC\u002BwhKTbcYJHZLzkptV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kStrYQAAAADE1Q8Rg2MeQpO8GUxWBhbHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "b6cf86fc97d2dff0b1cf9c1e77079677", - "X-Processing-Time": "175ms" + "x-ms-client-request-id": "a83320c76da48ea3a309b99711fea569", + "X-Processing-Time": "152ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:02.4366469\u002B00:00", + "expiresOn": "2021-10-16T19:44:18.1468345\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtfT9TkB13aL4VG/DW6xAmirr/t5e8MYvPu3mmkAAAAMARDhtQreHmhCb7YC/dpf2n6xOrFEwPxC\u002BRsq9oeZvgM1b9o4cgc=", + "username": "BQAANon0XcQB18RYPGibZyy/EBBcWyDdJZG9CqAqEsEAAAAMARCsgNlqhd5IsZldo6P6NifImiq6hcrmLIDy4ZtiQBVAY1DqsEE=", "credential": "Sanitized" } ] @@ -87,7 +82,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1803713406" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1149429717" } } \ 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 new file mode 100644 index 000000000000..48cd7f2d841b --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentity.json @@ -0,0 +1,50 @@ +{ + "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 new file mode 100644 index 000000000000..fd33e5ef5a21 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/CreateCommunicationRelayWithTokenWithoutIdentityAsync.json @@ -0,0 +1,50 @@ +{ + "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 61cded190211..571086b18ae7 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 @@ -1,85 +1,80 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "4d8ad7d38d592335c6edbb7c8e8cd256", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:01 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:16 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:01 GMT", - "MS-CV": "7MuKBtUO3E242cjQ4I76/Q.0", + "Date": "Sat, 16 Oct 2021 19:44:16 GMT", + "MS-CV": "qA/V1BCeZUSeYLz0DDshrQ.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05aToYAAAAABPJ4H2lyhARKHxlZ672acNV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kCtrYQAAAAC7p5miitzOT5TT4PtMV2\u002ByV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "4d8ad7d38d592335c6edbb7c8e8cd256", - "X-Processing-Time": "61ms" + "x-ms-client-request-id": "359f21d44a049bf683cd995f2613729f", + "X-Processing-Time": "63ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c3c7-b8ba-a43a0d0028e1" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d169-dc46-a63a0d006678" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-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.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "1a58467b0d70dffbe6f5530c1e0be037", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:01 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:16 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c3c7-b8ba-a43a0d0028e1" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d169-dc46-a63a0d006678" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:01 GMT", - "MS-CV": "5YqtuNYeC0ekNoHyBoGQFQ.0", + "Date": "Sat, 16 Oct 2021 19:44:16 GMT", + "MS-CV": "CSr2BhgiR0e6We7bydoGyw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05aToYAAAAABZZ\u002BmOMG/IR5vkZJeuD8yAV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kCtrYQAAAADENdyEOWKPTbmAjMb4xgBGV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "1a58467b0d70dffbe6f5530c1e0be037", - "X-Processing-Time": "164ms" + "x-ms-client-request-id": "67f57eb9e910c72d229e6f8268726382", + "X-Processing-Time": "83ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:01.5955007\u002B00:00", + "expiresOn": "2021-10-16T19:44:16.928597\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtdVLzQB13aL14v6PN08EQo3odO\u002BZLp05zzIAikAAAAMARDhtQreHmhCb7YC/dpf2n6xRotU\u002BgCv97WaUKXokYQ8duN1/ag=", + "username": "BQAANok38l0B18RYu03nG9\u002BI0trJFF7WMz9s9JjpGosAAAAMARCsgNlqhd5IsZldo6P6NifIGDvh\u002BAN98tq\u002BYwGslVapzDaK5ug=", "credential": "Sanitized" } ] @@ -87,7 +82,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "108439514" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1837823520" } } \ 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/Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json new file mode 100644 index 000000000000..0b248b271c21 --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsync.json @@ -0,0 +1,90 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Fri, 15 Oct 2021 22:49: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", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 15 Oct 2021 22:49:54 GMT", + "MS-CV": "oFREfUqg1kSiPvqkj5Ypkg.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kwVqYQAAAACeMY6gXcJITYDwL6TTPa6SV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "b44bd18a00cda107d35024bf4e336bc5", + "X-Processing-Time": "67ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2607-6ac5-f14e-09482200248c" + } + } + }, + { + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "88", + "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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Fri, 15 Oct 2021 22:49:55 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2607-6ac5-f14e-09482200248c" + }, + "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": "73Z7q\u002BpFd0C2S9H3DqUgRw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kwVqYQAAAABeWmMa4zzbTJrYHVSSQIMCV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "34802eb30898a4d76bd71b8c5673a763", + "X-Processing-Time": "24ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-15T22:49:55.2646924\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANk3HZGAB18OpkmNA8R8vDeCeA3nolP/drjRVKSwAAAAMARCsgNlqhd5IsZldo6P6NifI/6cVYPNwmNUUsJwj/pQEByhqD6I=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1604212943" + } +} \ 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 2684f9827ffb..8fc1a700798a 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 @@ -1,87 +1,82 @@ { "Entries": [ { - "RequestUri": "https://anpearesource1.communication.azure.com/identities?api-version=2021-03-07", + "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-c4ff2301bc9d0f4bb3fcf3553e031153-57325b74f89bc745-00", - "User-Agent": [ - "azsdk-net-Communication.Identity/1.1.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "92a60f1659354ebcb116648477fdf744", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:02 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:18 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", + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, 2021-10-31-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:02 GMT", - "MS-CV": "OcspYmCBrEu8FAWMOZZqjQ.0", + "Date": "Sat, 16 Oct 2021 19:44:18 GMT", + "MS-CV": "WeIpUA2VnUmTCK7ddYZ\u002BkA.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAAAsy9Kmeo9ETJVJaU5i6FIQV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kitrYQAAAADmu2r7msxoQqBZiSQsuDUOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "92a60f1659354ebcb116648477fdf744", - "X-Processing-Time": "61ms" + "x-ms-client-request-id": "3cb9876bf5cf42b2cb5aa387c4cb3539", + "X-Processing-Time": "97ms" }, "ResponseBody": { "identity": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c873-b8ba-a43a0d0028e4" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d7ab-5470-2248220030f5" } } }, { - "RequestUri": "https://anpearesource1.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", + "RequestUri": "https://smstestapp.communication.azure.com/networktraversal/:issueRelayConfiguration?api-version=2021-06-21-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-a888c5f698729c4cae07851528839dec-3832cb9e4902ad4b-00", - "User-Agent": [ - "azsdk-net-Communication.NetworkTraversal/1.0.0-alpha.20210709.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "54c213e38d2579236c2395f9868f456e", + "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", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Fri, 09 Jul 2021 19:35:02 GMT", + "x-ms-date": "Sat, 16 Oct 2021 19:44:18 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "id": "8:acs:e1b50ade-1e68-426f-b602-fdda5fda7eb1_0000000b-2ca5-c873-b8ba-a43a0d0028e4" + "id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000d-2a83-d7ab-5470-2248220030f5" }, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-02-22-preview1, 2021-06-21-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 09 Jul 2021 19:35:02 GMT", - "MS-CV": "1lxUUCNUO0iVR3Dcx0uTbg.0", + "Date": "Sat, 16 Oct 2021 19:44:18 GMT", + "MS-CV": "JXwyg99a3UCTGjX5jPfXYw.0", "Request-Context": "appId=", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05qToYAAAAADfedXLWT\u002BiT4PIAMkeA2mzV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref": "0kitrYQAAAACenq\u002Bv\u002Bcx6Q50CfxwQVXhoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "54c213e38d2579236c2395f9868f456e", - "X-Processing-Time": "198ms" + "x-ms-client-request-id": "756d079c3a858fa0af00c80969cbdfd3", + "X-Processing-Time": "92ms" }, "ResponseBody": { - "expiresOn": "2021-07-09T19:35:02.8217706\u002B00:00", + "expiresOn": "2021-10-16T19:44:18.5932425\u002B00:00", "iceServers": [ { "urls": [ - "turn:worldaz.turn.skype.com:3478" + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" ], - "username": "BQAANtgPkIEB13aLASb7U5MqSnMYHKFXePd4byWJKykAAAAMARDhtQreHmhCb7YC/dpf2n6x3glgxusmemNxxcIAuFMrmuDxpcg=", + "username": "BQAANoo3sGkB18RYW2cNTckZhd\u002BybiMH9DNELBEJjm0AAAAMARCsgNlqhd5IsZldo6P6NifIsq0PQmx0I3/1Htc\u002BMul8Y\u002BIXZRk=", "credential": "Sanitized" } ] @@ -89,7 +84,7 @@ } ], "Variables": { - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://anpearesource1.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "922226276" + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1912866712" } } \ 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 new file mode 100644 index 000000000000..ad09418bab6c --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentity.json @@ -0,0 +1,52 @@ +{ + "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 new file mode 100644 index 000000000000..343911d8dfde --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationAsyncWithoutIdentityAsync.json @@ -0,0 +1,52 @@ +{ + "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-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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:18 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": "Sat, 16 Oct 2021 19:44:18 GMT", + "MS-CV": "hzwKQD/HUUmoXkmnMRM2aQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kitrYQAAAAA1fhomiTpuRplkFTlrwcmEV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "f9529d003e906e42c2841c229ca7c8c5", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:18.6952073\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANopIY4wB18RYHSTcOIrBce4Dt2PiT\u002BetSxjgyfYAAAAMARCsgNlqhd5IsZldo6P6NifInLpDrcT8QFJI7JFUBXcLz2eExyA=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "2025263387" + } +} \ 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 new file mode 100644 index 000000000000..22d2a84a561e --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/SessionRecords/Sample1_CommunicationRelayClient/GetRelayConfigurationWithoutIdentity.json @@ -0,0 +1,51 @@ +{ + "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", + "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", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Sat, 16 Oct 2021 19:44:16 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": "Sat, 16 Oct 2021 19:44:16 GMT", + "MS-CV": "18o1s5nAVkq5zU8S2yhVaA.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kCtrYQAAAABKVRaKsefkT5m5u9i1ocyWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "f238376995c5c7867a0012fa0aef052c", + "X-Processing-Time": "44ms" + }, + "ResponseBody": { + "expiresOn": "2021-10-16T19:44:17.0287619\u002B00:00", + "iceServers": [ + { + "urls": [ + "stun:world.relay.skype.com:3478", + "turn:world.relay.skype.com:3478" + ], + "username": "BQAANolIog8B18RYgExoz2NU3/dIbD/Rw8uihOG7XvYAAAAMARCsgNlqhd5IsZldo6P6NifIKebRknKPXfMzpSyueWnrvBCwGvQ=", + "credential": "Sanitized" + } + ] + } + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1950220195" + } +} \ 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 34653fdd0898..70616fb1df9b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/tests/samples/Sample1_CommunicationRelayClient.cs @@ -58,6 +58,34 @@ public async Task GetRelayConfigurationAsync() #endregion Snippet:GetRelayConfigurationAsync } + [Test] + [AsyncOnly] + public async Task GetRelayConfigurationAsyncWithoutIdentity() + { + var connectionString = TestEnvironment.LiveTestDynamicConnectionString; + + // Get a connection string to our Azure Communication resource. + //@@var connectionString = ""; + var client = new CommunicationRelayClient(connectionString); + client = CreateClientWithConnectionString(); + + #region Snippet:GetRelayConfigurationAsyncWithoutIdentity + Response relayConfiguration = await client.GetRelayConfigurationAsync(); + 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}"); + } + #endregion Snippet:GetRelayConfigurationAsyncWithoutIdentity + } + [Test] [SyncOnly] public void GetRelayConfiguration() @@ -92,6 +120,32 @@ public void GetRelayConfiguration() #endregion Snippet:GetRelayConfiguration } + [Test] + [SyncOnly] + public void GetRelayConfigurationWithoutIdentity() + { + var connectionString = TestEnvironment.LiveTestDynamicConnectionString; + + // Get a connection string to our Azure Communication resource. + //@@var connectionString = ""; + var client = new CommunicationRelayClient(connectionString); + client = CreateClientWithConnectionString(); + + Response relayConfiguration = client.GetRelayConfiguration(); + 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}"); + } + } + [Test] public async Task CreateCommunicationRelayWithToken() { @@ -142,5 +196,27 @@ public async Task CreateCommunicationRelayWithAccessKey() Assert.Fail($"Unexpected error: {ex}"); } } + + [Test] + public async Task CreateCommunicationRelayWithAccessKeyWithoutIdentity() + { + var endpoint = new Uri("https://my-resource.communication.azure.com"); + var accessKey = ""; + /*@@*/ + endpoint = TestEnvironment.LiveTestDynamicEndpoint; + /*@@*/ + accessKey = TestEnvironment.LiveTestDynamicAccessKey; + var client = new CommunicationRelayClient(endpoint, new AzureKeyCredential(accessKey)); + + client = CreateClientWithAzureKeyCredential(); + try + { + Response relayConfigurationResponse = await client.GetRelayConfigurationAsync(); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } } }