From d7e40a507c48bd915c5a9691c5fb99c0d2c63542 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Wed, 7 Apr 2021 17:06:37 -0700 Subject: [PATCH 1/4] Migrated python identity tests to use ARM template --- .../_shared/communication_service_preparer.py | 87 ++----------------- .../tests/_shared/helper.py | 1 + ...tion_identity_client.test_create_user.yaml | 16 ++-- ...ity_client.test_create_user_and_token.yaml | 18 ++-- ...est_create_user_from_managed_identity.yaml | 14 +-- ...tion_identity_client.test_delete_user.yaml | 32 ++++--- ...est_delete_user_from_managed_identity.yaml | 28 +++--- ...cation_identity_client.test_get_token.yaml | 34 ++++---- ....test_get_token_from_managed_identity.yaml | 30 ++++--- ...on_identity_client.test_revoke_tokens.yaml | 50 ++++++----- ...t_revoke_tokens_from_managed_identity.yaml | 44 ++++++---- ...dentity_client_async.test_create_user.yaml | 17 ++-- ...ient_async.test_create_user_and_token.yaml | 19 ++-- ...est_create_user_from_managed_identity.yaml | 15 ++-- ...dentity_client_async.test_delete_user.yaml | 32 +++---- ...est_delete_user_from_managed_identity.yaml | 30 ++++--- ..._identity_client_async.test_get_token.yaml | 36 ++++---- ....test_get_token_from_managed_identity.yaml | 32 +++---- ...ntity_client_async.test_revoke_tokens.yaml | 53 +++++------ ...t_revoke_tokens_from_managed_identity.yaml | 47 +++++----- .../test_communication_identity_client.py | 68 ++++++--------- ...est_communication_identity_client_async.py | 65 ++++++-------- sdk/communication/test-resources.json | 54 ++++++++++++ sdk/communication/tests.yml | 1 + 24 files changed, 416 insertions(+), 407 deletions(-) create mode 100644 sdk/communication/test-resources.json diff --git a/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py b/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py index e3907ff011e0..5fedd006201d 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/communication_service_preparer.py @@ -3,87 +3,10 @@ # Licensed under the MIT License. # ------------------------------------ -import datetime +import functools +from devtools_testutils import PowerShellPreparer -from azure.mgmt.communication import CommunicationServiceManagementClient -from azure.mgmt.communication.models import CommunicationServiceResource -from devtools_testutils import( - AzureMgmtPreparer, - ResourceGroupPreparer, - FakeResource +CommunicationPreparer = functools.partial( + PowerShellPreparer, "communication", + communication_connection_string="endpoint=https://sanitized.communication.azure.com/;accesskey=fake===" ) -from devtools_testutils.resource_testcase import RESOURCE_GROUP_PARAM -from azure_devtools.scenario_tests.exceptions import AzureTestError - -class CommunicationServicePreparer(AzureMgmtPreparer): - """Communication Service Preparer. - Creating and destroying test resources on demand - """ - def __init__( - self, - name_prefix="communication", - resource_group_parameter_name=RESOURCE_GROUP_PARAM, - disable_recording=True, - use_cache=False, - playback_fake_resource=None, - client_kwargs=None, - ): - super(CommunicationServicePreparer, self).__init__( - name_prefix, - random_name_length=24, - disable_recording=disable_recording, - playback_fake_resource=playback_fake_resource, - client_kwargs=client_kwargs, - ) - self.resource_group_parameter_name = resource_group_parameter_name - self.random_name_enabled = True - self.service_name = "TEST-SERVICE-NAME" - self.mgmt_client = None - self.set_cache(use_cache) - self.scrubbed_resource_name = "communicationegrcrs" - - def _get_resource_group(self, **kwargs): - try: - return kwargs[self.resource_group_parameter_name] - except KeyError: - template = ( - "To create a communication service a resource group is required. Please add " - "decorator @{} in front of this preparer." - ) - raise AzureTestError(template.format(ResourceGroupPreparer.__name__)) - - def create_resource(self, name, **kwargs): - if not self.is_live: - self.resource = FakeResource(name=self.scrubbed_resource_name, id=name) - - return { - "connection_string": "endpoint=https://{}.communication.azure.com/;accesskey=fake===".format(self.resource.name), - } - - self.test_class_instance.scrubber.register_name_pair(name, self.scrubbed_resource_name) - group_name = self._get_resource_group(**kwargs).name - - self.client = self.create_mgmt_client(CommunicationServiceManagementClient, polling_interval=30) - - self.resource = self.client.communication_service.begin_create_or_update( - group_name, - name, - CommunicationServiceResource(location="global", data_location="UnitedStates") - ).result() - - self.service_name = self.resource.name - - primary_connection_string = self.client.communication_service.list_keys( - group_name, - self.resource.name).primary_connection_string - - return { - "connection_string": primary_connection_string, - } - - def remove_resource(self, name, **kwargs): - if not self.is_live: - return - - group_name = self._get_resource_group(**kwargs).name - self.client.communication_service.begin_delete(group_name, self.service_name).wait() diff --git a/sdk/communication/azure-communication-identity/tests/_shared/helper.py b/sdk/communication/azure-communication-identity/tests/_shared/helper.py index 7338f10940a0..221c33a74bab 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/helper.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/helper.py @@ -10,6 +10,7 @@ class URIIdentityReplacer(RecordingProcessor): def process_request(self, request): import re request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) + request.uri = re.sub('^(.*?)\\.communication.azure.com', 'https://sanitized.communication.azure.com', request.uri) return request def process_response(self, response): diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index a5bc813701dc..9e8d80fea3d8 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,31 +13,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:48:30 GMT + - Fri, 09 Apr 2021 00:28:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:48:29 GMT + - Fri, 09 Apr 2021 00:28:46 GMT ms-cv: - - 8tfK3/iTvEmwjYUYlPn7Qg.0 + - WVLr72cx30G2nouhjEI91A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 209ms + - 13ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index d0e3e6b7a986..b9ec5f24b092 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,32 +13,34 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:50:21 GMT + - Fri, 09 Apr 2021 00:28:53 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-01-30T22:50:20.3668737+00:00"}}' + "expiresOn": "2021-04-10T00:28:47.5210027+00:00"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:50:20 GMT + - Fri, 09 Apr 2021 00:28:48 GMT ms-cv: - - 4wYYchxOnEay3S80a4tugw.0 + - 1Z7U5D7REkm4NwyNy0l/mg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 38ms + - 278ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 2a6a22b80e6b..3809c4a6843a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -13,27 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:21:01 GMT + - Fri, 09 Apr 2021 00:28:49 GMT ms-cv: - - T/Hx9aJuMka5ZSLjy1uvxA.0 + - /8kDz/QY7U2GeYdXulXxuQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 247ms + - 175ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 4bce56996e55..3a25113a558e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,31 +13,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:23:15 GMT + - Fri, 09 Apr 2021 00:28:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:23:14 GMT + - Fri, 09 Apr 2021 00:28:50 GMT ms-cv: - - TgHUTqnyBk+TTGrk+qGYCg.0 + - 2Ayf251Xo0emiz5IQ6JFgQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 19ms status: code: 201 message: Created @@ -53,27 +55,29 @@ interactions: Content-Length: - '0' Date: - - Fri, 29 Jan 2021 22:23:15 GMT + - Fri, 09 Apr 2021 00:28:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 29 Jan 2021 22:23:14 GMT + - Fri, 09 Apr 2021 00:28:51 GMT ms-cv: - - phAKzopa7kCat9napbUQGQ.0 + - lMNrjDYd2U2EAxNv/giUtw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 245ms + - 732ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index ecf04ae480d1..f1c6373527b0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -13,27 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:24:21 GMT + - Fri, 09 Apr 2021 00:28:52 GMT ms-cv: - - 8Dz7rbKlnUyC0X9hMkHkGg.0 + - T1f0ZOoMUk2uJ/1mpnT/YA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 203ms + - 179ms status: code: 201 message: Created @@ -49,23 +51,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 29 Jan 2021 22:24:21 GMT + - Fri, 09 Apr 2021 00:28:53 GMT ms-cv: - - 573z+Dhr+UOuJm8r75diNA.0 + - undDPTiFCU+66yTFT1+sRQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 479ms + - 389ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 78e4af9e7e07..a415bd9871c5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,31 +13,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:25:29 GMT + - Fri, 09 Apr 2021 00:28:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:25:28 GMT + - Fri, 09 Apr 2021 00:28:53 GMT ms-cv: - - izpRZUdB/kyDNywz7m1KQQ.0 + - DlxPC+ghsEqXB9PpK57UDg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 19ms status: code: 201 message: Created @@ -55,31 +57,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:25:29 GMT + - Fri, 09 Apr 2021 00:28:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:25:27.9464673+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:53.6730828+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:25:28 GMT + - Fri, 09 Apr 2021 00:28:54 GMT ms-cv: - - p2Kp9U6Jek6X2zToYblIHA.0 + - ORB8smdzVEmBhdsGyB0Qhw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 26ms + - 151ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index e08c29cde49b..6f4f0f6f4770 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -13,27 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:26:36 GMT + - Fri, 09 Apr 2021 00:28:56 GMT ms-cv: - - sIImdgIO6kSSfNEh18vBHQ.0 + - Doj7Elm9B0WgsvZYr7xbRQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 203ms + - 12ms status: code: 201 message: Created @@ -51,27 +53,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:26:35.9312051+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:56.3377927+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:26:36 GMT + - Fri, 09 Apr 2021 00:28:57 GMT ms-cv: - - JPBOQWSIBUWpPLVKMVZSTw.0 + - /ba31X5tbUuUBNczm+naOw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 152ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index 1f520f645a24..0049e29e3648 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,31 +13,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:27:44 GMT + - Fri, 09 Apr 2021 00:29:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:27:43 GMT + - Fri, 09 Apr 2021 00:28:57 GMT ms-cv: - - xE21Gmx5h0mpZbTaV4qWcA.0 + - V/xCfKOofkyBvMTZMPmOrQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 14ms status: code: 201 message: Created @@ -55,31 +57,33 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:27:44 GMT + - Fri, 09 Apr 2021 00:29:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:27:42.9428277+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:56.7961941+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:27:43 GMT + - Fri, 09 Apr 2021 00:28:57 GMT ms-cv: - - q5Uz363zF0aE4eQEN8C8Ng.0 + - MrawaIxw5kmxVJOexVITCA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 26ms + - 28ms status: code: 200 message: OK @@ -95,27 +99,29 @@ interactions: Content-Length: - '0' Date: - - Fri, 29 Jan 2021 22:27:44 GMT + - Fri, 09 Apr 2021 00:29:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 29 Jan 2021 22:27:43 GMT + - Fri, 09 Apr 2021 00:28:57 GMT ms-cv: - - IZVgWwmBk06K7QlAXuz7LQ.0 + - JbBuRoYk1UipNlTSY+OaEQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 178ms + - 85ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index 433cabb9de4f..0f4e2586c7f3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -13,27 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:28:50 GMT + - Fri, 09 Apr 2021 00:28:58 GMT ms-cv: - - VDeJxLCpwEiwT+0DkDgQ/w.0 + - J9vy7ny4+0a9Hb8xKInoiA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 258ms + - 11ms status: code: 201 message: Created @@ -51,27 +53,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:28:50.160399+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:58.5376243+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 29 Jan 2021 22:28:50 GMT + - Fri, 09 Apr 2021 00:28:59 GMT ms-cv: - - qGOKcdu3m0Cwmnn0J3k7Tw.0 + - beKtRzhftUGkr9b0Tk9NIg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 32ms + - 125ms status: code: 200 message: OK @@ -87,23 +91,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 29 Jan 2021 22:28:51 GMT + - Fri, 09 Apr 2021 00:28:59 GMT ms-cv: - - GGw7vBUa70CbJs5Df0aTSw.0 + - ke9JZs5OE0Oi9ruABU2m6g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 581ms + - 149ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index fda7a5c22f39..01dd599ac64f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -9,26 +9,27 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:29:58 GMT + - Fri, 09 Apr 2021 00:29:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:29:57 GMT - ms-cv: 1YYCfhRcFkym4hrqBRGZFQ.0 + date: Fri, 09 Apr 2021 00:28:59 GMT + ms-cv: z6ARSYiahEq3vIs0jmJmZg.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 19ms + x-processing-time: 13ms status: code: 201 message: Created - url: https://communicationasqoly6jb4x.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index a1f51269e36a..f34505b4f541 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,27 +9,28 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:32:18 GMT + - Fri, 09 Apr 2021 00:29:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-01-30T22:32:16.9405213+00:00"}}' + "expiresOn": "2021-04-10T00:29:00.2602296+00:00"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:32:17 GMT - ms-cv: W1T1PVQFlEWIXcgu0EeooA.0 + date: Fri, 09 Apr 2021 00:29:00 GMT + ms-cv: 2hfiiFbi6EuazsPwZ+5Sog.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 35ms + x-processing-time: 463ms status: code: 201 message: Created - url: https://communication6l4km7ph3zj.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 1e2fd2003d1f..76571de19c5f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -9,22 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:31:04 GMT - ms-cv: z+LL7RQr+U+x/tyygix5Fg.0 + date: Fri, 09 Apr 2021 00:29:02 GMT + ms-cv: PYrSu1O0GUSKtqOwxkOjpQ.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 183ms + x-processing-time: 12ms status: code: 201 message: Created - url: https://communication3ijwjphimwr.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 0b2eab2624c7..a00660c72631 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -9,52 +9,54 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:33:25 GMT + - Fri, 09 Apr 2021 00:29:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:33:24 GMT - ms-cv: E+HUdaa+gE+cpD1TJJKNSg.0 + date: Fri, 09 Apr 2021 00:29:02 GMT + ms-cv: mYd8M7a4vEGGxtvOAtqBYQ.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 19ms status: code: 201 message: Created - url: https://communicationzgvvggklwoa.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: '' headers: Accept: - application/json Date: - - Fri, 29 Jan 2021 22:33:25 GMT + - Fri, 09 Apr 2021 00:29:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 - date: Fri, 29 Jan 2021 22:33:25 GMT - ms-cv: q02XjOHx2EKny82QMeoybA.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + date: Fri, 09 Apr 2021 00:29:03 GMT + ms-cv: JS7xseI5lEGqgpZIOa4Mkg.0 + request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 854ms + x-processing-time: 495ms status: code: 204 message: No Content - url: https://communicationzgvvggklwoa.communication.azure.com/identities/sanitized?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index a5f8633cb199..c14748289d75 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -9,44 +9,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:34:32 GMT - ms-cv: M4o3j8QviU6dfW/2cZS4ug.0 + date: Fri, 09 Apr 2021 00:29:03 GMT + ms-cv: H+jmJ0TfXUqpsmcx2q9huQ.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 242ms + x-processing-time: 12ms status: code: 201 message: Created - url: https://communicationvfxjz4kgs5q.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 - date: Fri, 29 Jan 2021 22:34:33 GMT - ms-cv: 4NslPsnjL0iQ1CODgbz7TA.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + date: Fri, 09 Apr 2021 00:29:04 GMT + ms-cv: QTA2fEjOPEqAxA8IRwH0kQ.0 + request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 676ms + x-processing-time: 654ms status: code: 204 message: No Content - url: https://communicationvfxjz4kgs5q.communication.azure.com/identities/sanitized?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index 32210dc46be7..b89940fd524e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -9,28 +9,29 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:35:42 GMT + - Fri, 09 Apr 2021 00:29:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:35:41 GMT - ms-cv: d5Ncfb9TeEWiZ8EGWkToTw.0 + date: Fri, 09 Apr 2021 00:29:05 GMT + ms-cv: WGuboYfs+kaeGmif/nFD/A.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 205ms + x-processing-time: 12ms status: code: 201 message: Created - url: https://communicationdo2ohmwsm52.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -41,26 +42,27 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:35:42 GMT + - Fri, 09 Apr 2021 00:29:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:35:41.2292482+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:05.1077628+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:35:42 GMT - ms-cv: DoX6Mm/9pkqFtpHOKzWiAg.0 + date: Fri, 09 Apr 2021 00:29:05 GMT + ms-cv: utu+yEF++EeoxnO/IZXgMA.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 215ms + x-processing-time: 146ms status: code: 200 message: OK - url: https://communicationdo2ohmwsm52.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index e70320714b8b..934596febc94 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -9,24 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:36:49 GMT - ms-cv: cUzRyy4LbUigYrZ7lbi4wA.0 + date: Fri, 09 Apr 2021 00:29:07 GMT + ms-cv: xTOyEEHui0KLR/2b1crvRA.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 238ms + x-processing-time: 439ms status: code: 201 message: Created - url: https://communication5brewzlj3te.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -37,22 +38,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:36:48.7283566+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:06.8223531+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:36:49 GMT - ms-cv: bFRoAJk3ikGgv2ot2Vwh4A.0 + date: Fri, 09 Apr 2021 00:29:07 GMT + ms-cv: cC3B50h6h0qaUGVg/fsv4Q.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 26ms + x-processing-time: 27ms status: code: 200 message: OK - url: https://communication5brewzlj3te.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 7b6b2c57a1fe..0fc10526ac5a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -9,28 +9,29 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:37:56 GMT + - Fri, 09 Apr 2021 00:29:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:37:55 GMT - ms-cv: vJReSgsEzEC1EVRdWZnCWA.0 + date: Fri, 09 Apr 2021 00:29:07 GMT + ms-cv: W3JWWz6DYUCWE+te6cj8Ug.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 22ms + x-processing-time: 14ms status: code: 201 message: Created - url: https://communication2xbng6lk65f.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -41,52 +42,54 @@ interactions: Content-Type: - application/json Date: - - Fri, 29 Jan 2021 22:37:56 GMT + - Fri, 09 Apr 2021 00:29:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:37:54.9493083+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:07.0741085+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:37:55 GMT - ms-cv: nQk1/zvYyEiAvNDwqRdZAg.0 + date: Fri, 09 Apr 2021 00:29:07 GMT + ms-cv: zVsk7738SEWwj+0ONL3Yrg.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 28ms + x-processing-time: 30ms status: code: 200 message: OK - url: https://communication2xbng6lk65f.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - request: body: '' headers: Accept: - application/json Date: - - Fri, 29 Jan 2021 22:37:56 GMT + - Fri, 09 Apr 2021 00:29:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 - date: Fri, 29 Jan 2021 22:37:55 GMT - ms-cv: Bf9FLiU9kkm2bE7qs4H8Yw.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + date: Fri, 09 Apr 2021 00:29:07 GMT + ms-cv: aJnRMYJf0kiSiXa0ACCPhQ.0 + request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 674ms + x-processing-time: 73ms status: code: 204 message: No Content - url: https://communication2xbng6lk65f.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index ff0c50a514a8..6ad3d2a5afb0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -9,24 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:39:03 GMT - ms-cv: /SEx2qFrG0afGsUyQ/WtaQ.0 + date: Fri, 09 Apr 2021 00:29:08 GMT + ms-cv: cAA/vd0hjUq5btSOFYf4TQ.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 325ms + x-processing-time: 13ms status: code: 201 message: Created - url: https://communicationztcvutdsdqx.communication.azure.com/identities?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -37,44 +38,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-01-30T22:39:02.9481803+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:08.3078121+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 29 Jan 2021 22:39:03 GMT - ms-cv: ZzKd7QU4k0Or4Bt/g0hClg.0 + date: Fri, 09 Apr 2021 00:29:09 GMT + ms-cv: TFN0k+uzV0aeYO1F8xAsIg.0 + request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 25ms + x-processing-time: 135ms status: code: 200 message: OK - url: https://communicationztcvutdsdqx.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://communicationegrcrs.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-03-07 - date: Fri, 29 Jan 2021 22:39:03 GMT - ms-cv: F8O7efYC2EWG7TZ3/dJFpA.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + date: Fri, 09 Apr 2021 00:29:09 GMT + ms-cv: DJtHRLZRU0i4NSwRFRaeFg.0 + request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 616ms + x-processing-time: 149ms status: code: 204 message: No Content - url: https://communicationztcvutdsdqx.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index 1cc5c8c4a747..1c0fd6abf10b 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -14,8 +14,7 @@ CommunicationTestCase, BodyReplacerProcessor ) -from devtools_testutils import ResourceGroupPreparer -from _shared.communication_service_preparer import CommunicationServicePreparer +from _shared.communication_service_preparer import CommunicationPreparer from azure.identity import DefaultAzureCredential from azure.communication.identity._shared.utils import parse_connection_str @@ -33,10 +32,9 @@ def setUp(self): BodyReplacerProcessor(keys=["id", "token"]), URIIdentityReplacer()]) - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_create_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + def test_create_user_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -47,28 +45,23 @@ def test_create_user_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_create_user(self, connection_string): + @CommunicationPreparer() + def test_create_user(self, communication_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) + communication_connection_string) user = identity_client.create_user() - assert user.properties.get('id') is not None - - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_create_user_and_token(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + def test_create_user_and_token(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_get_token_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + def test_get_token_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -82,11 +75,10 @@ def test_get_token_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_get_token(self, connection_string): + @CommunicationPreparer() + def test_get_token(self, communication_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) + communication_connection_string) user = identity_client.create_user() token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) @@ -94,10 +86,9 @@ def test_get_token(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_revoke_tokens_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + def test_revoke_tokens_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -112,11 +103,10 @@ def test_revoke_tokens_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_revoke_tokens(self, connection_string): + @CommunicationPreparer() + def test_revoke_tokens(self, communication_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) + communication_connection_string) user = identity_client.create_user() token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) @@ -125,10 +115,9 @@ def test_revoke_tokens(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_delete_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + def test_delete_user_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -141,11 +130,10 @@ def test_delete_user_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - def test_delete_user(self, connection_string): + @CommunicationPreparer() + def test_delete_user(self, communication_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( - connection_string) + communication_connection_string) user = identity_client.create_user() identity_client.delete_user(user) diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index 11674eeb1786..35dcb4d0e475 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -15,7 +15,7 @@ from _shared.helper import URIIdentityReplacer from _shared.asynctestcase import AsyncCommunicationTestCase from _shared.testcase import BodyReplacerProcessor -from _shared.communication_service_preparer import CommunicationServicePreparer +from _shared.communication_service_preparer import CommunicationPreparer from azure.identity import DefaultAzureCredential class FakeTokenCredential(object): @@ -31,10 +31,9 @@ def setUp(self): BodyReplacerProcessor(keys=["id", "token"]), URIIdentityReplacer()]) - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_create_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + async def test_create_user_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -46,29 +45,26 @@ async def test_create_user_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_create_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + async def test_create_user(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) async with identity_client: user = await identity_client.create_user() assert user.properties.get('id') is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_create_user_and_token(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + async def test_create_user_and_token(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) async with identity_client: user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_get_token_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + async def test_get_token_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -82,10 +78,9 @@ async def test_get_token_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_get_token(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + async def test_get_token(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) async with identity_client: user = await identity_client.create_user() token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) @@ -93,10 +88,9 @@ async def test_get_token(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_revoke_tokens_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + async def test_revoke_tokens_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -111,10 +105,9 @@ async def test_revoke_tokens_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_revoke_tokens(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + async def test_revoke_tokens(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) async with identity_client: user = await identity_client.create_user() token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) @@ -123,10 +116,9 @@ async def test_revoke_tokens(self, connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_delete_user_from_managed_identity(self, connection_string): - endpoint, access_key = parse_connection_str(connection_string) + @CommunicationPreparer() + async def test_delete_user_from_managed_identity(self, communication_connection_string): + endpoint, access_key = parse_connection_str(communication_connection_string) from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() @@ -139,10 +131,9 @@ async def test_delete_user_from_managed_identity(self, connection_string): assert user.properties.get('id') is not None - @ResourceGroupPreparer(random_name_enabled=True, delete_after_tag_timedelta=datetime.timedelta(hours=2)) - @CommunicationServicePreparer() - async def test_delete_user(self, connection_string): - identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + @CommunicationPreparer() + async def test_delete_user(self, communication_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(communication_connection_string) async with identity_client: user = await identity_client.create_user() await identity_client.delete_user(user) diff --git a/sdk/communication/test-resources.json b/sdk/communication/test-resources.json new file mode 100644 index 000000000000..2875b36ca191 --- /dev/null +++ b/sdk/communication/test-resources.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "string", + "defaultValue": "[resourceGroup().name]", + "metadata": { + "description": "The base resource name." + } + }, + "endpointPrefix": { + "defaultValue": "communication", + "type": "string" + }, + "testApplicationOid": { + "type": "string", + "metadata": { + "description": "The client OID to grant access to test resources." + } + } + }, + "variables": { + "uniqueSubDomainName": "[format('{0}-{1}', parameters('baseName'), parameters('endpointPrefix'))]", + "contributorRoleId": "b24988ac-6180-42a0-ab88-20f7382dd24c" + }, + "resources": [ + { + "type": "Microsoft.Communication/CommunicationServices", + "apiVersion": "2020-08-20-preview", + "name": "[variables('uniqueSubDomainName')]", + "location": "global", + "properties": { + "dataLocation": "UnitedStates" + } + }, + { + "type": "Microsoft.Authorization/roleAssignments", + "apiVersion": "2019-04-01-preview", + "name": "[guid(resourceGroup().id, deployment().name, parameters('baseName'), variables('contributorRoleId'))]", + "properties": { + "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('contributorRoleId'))]", + "principalId": "[parameters('testApplicationOid')]", + "scope": "[resourceGroup().id]" + } + } + ], + "outputs": { + "COMMUNICATION_CONNECTION_STRING": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Communication/CommunicationServices',variables('uniqueSubDomainName')), '2020-08-20-preview').primaryConnectionString]" + } + } +} diff --git a/sdk/communication/tests.yml b/sdk/communication/tests.yml index 200a224b0455..94e5c422688f 100644 --- a/sdk/communication/tests.yml +++ b/sdk/communication/tests.yml @@ -6,6 +6,7 @@ stages: AllocateResourceGroup: 'false' BuildTargetingString: $(BuildTargetingString) ServiceDirectory: communication + DeployArmTemplate: true EnvVars: AZURE_TEST_RUN_LIVE: 'true' AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) From 76a481241a43218a8711900004eccb2afe0130fb Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Tue, 13 Apr 2021 09:54:20 -0700 Subject: [PATCH 2/4] Update sanitation for the request --- .../tests/_shared/helper.py | 6 +++-- ...tion_identity_client.test_create_user.yaml | 8 +++--- ...ity_client.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...tion_identity_client.test_delete_user.yaml | 16 ++++++------ ...est_delete_user_from_managed_identity.yaml | 12 ++++----- ...cation_identity_client.test_get_token.yaml | 18 ++++++------- ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...on_identity_client.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- ...dentity_client_async.test_create_user.yaml | 6 ++--- ...ient_async.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...dentity_client_async.test_delete_user.yaml | 16 ++++++------ ...est_delete_user_from_managed_identity.yaml | 10 +++---- ..._identity_client_async.test_get_token.yaml | 18 ++++++------- ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...ntity_client_async.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- 19 files changed, 132 insertions(+), 130 deletions(-) diff --git a/sdk/communication/azure-communication-identity/tests/_shared/helper.py b/sdk/communication/azure-communication-identity/tests/_shared/helper.py index 221c33a74bab..ef741a474cba 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/helper.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/helper.py @@ -9,8 +9,10 @@ class URIIdentityReplacer(RecordingProcessor): """Replace the identity in request uri""" def process_request(self, request): import re - request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) - request.uri = re.sub('^(.*?)\\.communication.azure.com', 'https://sanitized.communication.azure.com', request.uri) + from urllib.parse import urlparse + resource_group = (urlparse(request.uri).netloc).split('.')[0] + request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) + request.uri = re.sub(resource_group, 'sanitized', request.uri) return request def process_response(self, response): diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 9e8d80fea3d8..f4248d71faee 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:28:52 GMT + - Tue, 13 Apr 2021 16:51:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:46 GMT + - Tue, 13 Apr 2021 16:51:57 GMT ms-cv: - - WVLr72cx30G2nouhjEI91A.0 + - CfoCEhN1dESd6lovVI/LoQ.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 21ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index b9ec5f24b092..d3c4188e7700 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:28:53 GMT + - Tue, 13 Apr 2021 16:51:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -23,16 +23,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-10T00:28:47.5210027+00:00"}}' + "expiresOn": "2021-04-14T16:51:56.7712133+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:48 GMT + - Tue, 13 Apr 2021 16:51:57 GMT ms-cv: - - 1Z7U5D7REkm4NwyNy0l/mg.0 + - KUp9ARYxs0aX7qtDGzxY4g.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 278ms + - 311ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 3809c4a6843a..d9a9144d2b77 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:49 GMT + - Tue, 13 Apr 2021 16:51:58 GMT ms-cv: - - /8kDz/QY7U2GeYdXulXxuQ.0 + - i+iUlGmssUejR8dtPGSQFA.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 175ms + - 577ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 3a25113a558e..4353e240b9b7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:28:55 GMT + - Tue, 13 Apr 2021 16:51:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:50 GMT + - Tue, 13 Apr 2021 16:51:59 GMT ms-cv: - - 2Ayf251Xo0emiz5IQ6JFgQ.0 + - ydsHIkoZ30yN3pMbWPVpvw.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 19ms + - 24ms status: code: 201 message: Created @@ -55,7 +55,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 09 Apr 2021 00:28:56 GMT + - Tue, 13 Apr 2021 16:51:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -69,15 +69,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 09 Apr 2021 00:28:51 GMT + - Tue, 13 Apr 2021 16:52:00 GMT ms-cv: - - lMNrjDYd2U2EAxNv/giUtw.0 + - Ldgm9vFFvkOzhR3PbC+d8A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 732ms + - 422ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index f1c6373527b0..d0429ca5e772 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:52 GMT + - Tue, 13 Apr 2021 16:52:01 GMT ms-cv: - - T1f0ZOoMUk2uJ/1mpnT/YA.0 + - ie5g6OltjkOTau0u8+xP7w.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 179ms + - 258ms status: code: 201 message: Created @@ -61,15 +61,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 09 Apr 2021 00:28:53 GMT + - Tue, 13 Apr 2021 16:52:01 GMT ms-cv: - - undDPTiFCU+66yTFT1+sRQ.0 + - pgZUYxNl60+tW15xsDJvNw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 389ms + - 376ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index a415bd9871c5..7ed700b8411c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:28:59 GMT + - Tue, 13 Apr 2021 16:52:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:53 GMT + - Tue, 13 Apr 2021 16:52:02 GMT ms-cv: - - DlxPC+ghsEqXB9PpK57UDg.0 + - aq14onULRki1NLbSUGWabA.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 19ms + - 12ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:28:59 GMT + - Tue, 13 Apr 2021 16:52:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:53.6730828+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:01.4335531+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:54 GMT + - Tue, 13 Apr 2021 16:52:02 GMT ms-cv: - - ORB8smdzVEmBhdsGyB0Qhw.0 + - REO5w0wQk0uL2QskabgjOg.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 151ms + - 26ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index 6f4f0f6f4770..ccedb2515f8b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:56 GMT + - Tue, 13 Apr 2021 16:52:03 GMT ms-cv: - - Doj7Elm9B0WgsvZYr7xbRQ.0 + - 1bVukF6IEEaszyvVYif6xQ.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 316ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:56.3377927+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:03.385437+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:57 GMT + - Tue, 13 Apr 2021 16:52:03 GMT ms-cv: - - /ba31X5tbUuUBNczm+naOw.0 + - mZMR5lmPWUGYOrVLmfUrZw.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 152ms + - 149ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index 0049e29e3648..f8d7dbf83900 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:02 GMT + - Tue, 13 Apr 2021 16:52:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:57 GMT + - Tue, 13 Apr 2021 16:52:04 GMT ms-cv: - - V/xCfKOofkyBvMTZMPmOrQ.0 + - rJclDKy+ckibIuu1/ryT3A.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 20ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:03 GMT + - Tue, 13 Apr 2021 16:52:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:56.7961941+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:04.1935869+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:57 GMT + - Tue, 13 Apr 2021 16:52:04 GMT ms-cv: - - MrawaIxw5kmxVJOexVITCA.0 + - 7iWAhy9uH0azy9n6AHFy/A.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 28ms + - 151ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 09 Apr 2021 00:29:03 GMT + - Tue, 13 Apr 2021 16:52:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -113,15 +113,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 09 Apr 2021 00:28:57 GMT + - Tue, 13 Apr 2021 16:52:04 GMT ms-cv: - - JbBuRoYk1UipNlTSY+OaEQ.0 + - DkIWLRK1lU+BwdnlFcSabw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 85ms + - 271ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index 0f4e2586c7f3..a60d377c3a8c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:58 GMT + - Tue, 13 Apr 2021 16:52:06 GMT ms-cv: - - J9vy7ny4+0a9Hb8xKInoiA.0 + - 4XVgiMGzcEaU/tKVwIH6vg.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 11ms + - 12ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:28:58.5376243+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:05.6545055+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 09 Apr 2021 00:28:59 GMT + - Tue, 13 Apr 2021 16:52:06 GMT ms-cv: - - beKtRzhftUGkr9b0Tk9NIg.0 + - vbfILcNZHkykJllRYzBazA.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 125ms + - 28ms status: code: 200 message: OK @@ -101,15 +101,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Fri, 09 Apr 2021 00:28:59 GMT + - Tue, 13 Apr 2021 16:52:06 GMT ms-cv: - - ke9JZs5OE0Oi9ruABU2m6g.0 + - TQZe4OPWtUuald9ndBg7fg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 149ms + - 79ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 01dd599ac64f..6d24a19c3c06 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:05 GMT + - Tue, 13 Apr 2021 16:52:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,8 +22,8 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:28:59 GMT - ms-cv: z6ARSYiahEq3vIs0jmJmZg.0 + date: Tue, 13 Apr 2021 16:52:06 GMT + ms-cv: AlKrXB3gu02dDDjsadd5Kg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index f34505b4f541..02642e707921 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:05 GMT + - Tue, 13 Apr 2021 16:52:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -19,16 +19,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-10T00:29:00.2602296+00:00"}}' + "expiresOn": "2021-04-14T16:52:06.8071322+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:00 GMT - ms-cv: 2hfiiFbi6EuazsPwZ+5Sog.0 + date: Tue, 13 Apr 2021 16:52:07 GMT + ms-cv: yHSTQhkG80OOUrTHtLNALA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 463ms + x-processing-time: 434ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 76571de19c5f..77772de61b35 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:02 GMT - ms-cv: PYrSu1O0GUSKtqOwxkOjpQ.0 + date: Tue, 13 Apr 2021 16:52:08 GMT + ms-cv: UYU2J1RQJkOFLguURlgiEg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 191ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index a00660c72631..1c18ba4e5952 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:08 GMT + - Tue, 13 Apr 2021 16:52:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:02 GMT - ms-cv: mYd8M7a4vEGGxtvOAtqBYQ.0 + date: Tue, 13 Apr 2021 16:52:08 GMT + ms-cv: x5LoKAtzT0a8aSycIJ7q9w.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 19ms + x-processing-time: 13ms status: code: 201 message: Created @@ -38,7 +38,7 @@ interactions: Accept: - application/json Date: - - Fri, 09 Apr 2021 00:29:08 GMT + - Tue, 13 Apr 2021 16:52:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -50,11 +50,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Fri, 09 Apr 2021 00:29:03 GMT - ms-cv: JS7xseI5lEGqgpZIOa4Mkg.0 + date: Tue, 13 Apr 2021 16:52:09 GMT + ms-cv: FIyP3G0brkebIBJeuHRLew.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 495ms + x-processing-time: 520ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index c14748289d75..fbe875033572 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -18,8 +18,8 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:03 GMT - ms-cv: H+jmJ0TfXUqpsmcx2q9huQ.0 + date: Tue, 13 Apr 2021 16:52:11 GMT + ms-cv: Kyczr2TxKUWF0+ROapy5GQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked @@ -42,11 +42,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Fri, 09 Apr 2021 00:29:04 GMT - ms-cv: QTA2fEjOPEqAxA8IRwH0kQ.0 + date: Tue, 13 Apr 2021 16:52:12 GMT + ms-cv: ttGoxnxi3U2sfeE08GZ49A.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 654ms + x-processing-time: 620ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index b89940fd524e..d350572e5da6 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:10 GMT + - Tue, 13 Apr 2021 16:52:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:05 GMT - ms-cv: WGuboYfs+kaeGmif/nFD/A.0 + date: Tue, 13 Apr 2021 16:52:12 GMT + ms-cv: 7PzbjCB/+06Ei9HZqjyt/A.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 14ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:11 GMT + - Tue, 13 Apr 2021 16:52:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:05.1077628+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:12.1719631+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:05 GMT - ms-cv: utu+yEF++EeoxnO/IZXgMA.0 + date: Tue, 13 Apr 2021 16:52:12 GMT + ms-cv: zNjzHS37rUOrfAw25Lxhew.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 146ms + x-processing-time: 32ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 934596febc94..134dace00f64 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:07 GMT - ms-cv: xTOyEEHui0KLR/2b1crvRA.0 + date: Tue, 13 Apr 2021 16:52:16 GMT + ms-cv: dGLcKGHtTU2OXXK+7MF7LA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 439ms + x-processing-time: 191ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:06.8223531+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:16.7737271+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:07 GMT - ms-cv: cC3B50h6h0qaUGVg/fsv4Q.0 + date: Tue, 13 Apr 2021 16:52:16 GMT + ms-cv: JmXhfg0cL0edhJRNtcNQuQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 27ms + x-processing-time: 123ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 0fc10526ac5a..b341b019b0de 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:13 GMT + - Tue, 13 Apr 2021 16:52:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:07 GMT - ms-cv: W3JWWz6DYUCWE+te6cj8Ug.0 + date: Tue, 13 Apr 2021 16:52:17 GMT + ms-cv: fIS/ea/uVEWMvFTb5fnesw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 14ms + x-processing-time: 11ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 09 Apr 2021 00:29:13 GMT + - Tue, 13 Apr 2021 16:52:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:07.0741085+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:17.3678486+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:07 GMT - ms-cv: zVsk7738SEWwj+0ONL3Yrg.0 + date: Tue, 13 Apr 2021 16:52:18 GMT + ms-cv: /c5m8JZvd02WbBY6Pe1g7A.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 30ms + x-processing-time: 120ms status: code: 200 message: OK @@ -71,7 +71,7 @@ interactions: Accept: - application/json Date: - - Fri, 09 Apr 2021 00:29:13 GMT + - Tue, 13 Apr 2021 16:52:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -83,11 +83,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Fri, 09 Apr 2021 00:29:07 GMT - ms-cv: aJnRMYJf0kiSiXa0ACCPhQ.0 + date: Tue, 13 Apr 2021 16:52:19 GMT + ms-cv: 5BCqtwGB1ECNxw8p+ODBfQ.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 73ms + x-processing-time: 1015ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 6ad3d2a5afb0..0d2b6d2d35cb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:08 GMT - ms-cv: cAA/vd0hjUq5btSOFYf4TQ.0 + date: Tue, 13 Apr 2021 16:52:25 GMT + ms-cv: sYCu8mdKO0Gt4dV51KkcMw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 219ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-10T00:29:08.3078121+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:24.9561691+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 09 Apr 2021 00:29:09 GMT - ms-cv: TFN0k+uzV0aeYO1F8xAsIg.0 + date: Tue, 13 Apr 2021 16:52:25 GMT + ms-cv: nyr0aty+bk+P3kqYjGmdmA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 135ms + x-processing-time: 150ms status: code: 200 message: OK @@ -71,11 +71,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Fri, 09 Apr 2021 00:29:09 GMT - ms-cv: DJtHRLZRU0i4NSwRFRaeFg.0 + date: Tue, 13 Apr 2021 16:52:26 GMT + ms-cv: Q2Y+QbiQeEeiTesMFQKS4A.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 149ms + x-processing-time: 285ms status: code: 204 message: No Content From 87eae6f4dd41c54d80bef3d5fade1c7499a7df93 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Tue, 13 Apr 2021 10:03:18 -0700 Subject: [PATCH 3/4] Renamed variable in URIIdentityReplacer --- .../tests/_shared/helper.py | 4 +-- ...tion_identity_client.test_create_user.yaml | 6 ++--- ...ity_client.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...tion_identity_client.test_delete_user.yaml | 16 ++++++------ ...est_delete_user_from_managed_identity.yaml | 12 ++++----- ...cation_identity_client.test_get_token.yaml | 18 ++++++------- ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...on_identity_client.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- ...dentity_client_async.test_create_user.yaml | 6 ++--- ...ient_async.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...dentity_client_async.test_delete_user.yaml | 16 ++++++------ ...est_delete_user_from_managed_identity.yaml | 12 ++++----- ..._identity_client_async.test_get_token.yaml | 18 ++++++------- ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...ntity_client_async.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- 19 files changed, 130 insertions(+), 130 deletions(-) diff --git a/sdk/communication/azure-communication-identity/tests/_shared/helper.py b/sdk/communication/azure-communication-identity/tests/_shared/helper.py index ef741a474cba..14034f30f317 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/helper.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/helper.py @@ -10,9 +10,9 @@ class URIIdentityReplacer(RecordingProcessor): def process_request(self, request): import re from urllib.parse import urlparse - resource_group = (urlparse(request.uri).netloc).split('.')[0] + resource = (urlparse(request.uri).netloc).split('.')[0] request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) - request.uri = re.sub(resource_group, 'sanitized', request.uri) + request.uri = re.sub(resource, 'sanitized', request.uri) return request def process_response(self, response): diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index f4248d71faee..f32834f91356 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:51:55 GMT + - Tue, 13 Apr 2021 17:01:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:51:57 GMT + - Tue, 13 Apr 2021 17:01:48 GMT ms-cv: - - CfoCEhN1dESd6lovVI/LoQ.0 + - i3OIAYplJUen4KAdpFywJA.0 request-context: - appId= strict-transport-security: diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index d3c4188e7700..3d22d2834e15 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:51:56 GMT + - Tue, 13 Apr 2021 17:01:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -23,16 +23,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-14T16:51:56.7712133+00:00"}}' + "expiresOn": "2021-04-14T17:01:48.4074545+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:51:57 GMT + - Tue, 13 Apr 2021 17:01:48 GMT ms-cv: - - KUp9ARYxs0aX7qtDGzxY4g.0 + - VLmM6vbmykCIzw4UsjNk2w.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 311ms + - 277ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index d9a9144d2b77..15874ff7c5f3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:51:58 GMT + - Tue, 13 Apr 2021 17:01:49 GMT ms-cv: - - i+iUlGmssUejR8dtPGSQFA.0 + - /7rUBvsYxEq3xJSCgmkbOQ.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 577ms + - 268ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 4353e240b9b7..cacb7915e9df 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:51:59 GMT + - Tue, 13 Apr 2021 17:01:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:51:59 GMT + - Tue, 13 Apr 2021 17:01:50 GMT ms-cv: - - ydsHIkoZ30yN3pMbWPVpvw.0 + - VUajeho2E02NWRUMAB+j4A.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 24ms + - 16ms status: code: 201 message: Created @@ -55,7 +55,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 13 Apr 2021 16:51:59 GMT + - Tue, 13 Apr 2021 17:01:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -69,15 +69,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 16:52:00 GMT + - Tue, 13 Apr 2021 17:01:51 GMT ms-cv: - - Ldgm9vFFvkOzhR3PbC+d8A.0 + - HZXGrDDZo0+g437iN0b8kQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 422ms + - 782ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index d0429ca5e772..a6e3c6a5d6b5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:01 GMT + - Tue, 13 Apr 2021 17:01:52 GMT ms-cv: - - ie5g6OltjkOTau0u8+xP7w.0 + - mZUYvF+jUUGkUEyHANy62Q.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 258ms + - 320ms status: code: 201 message: Created @@ -61,15 +61,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 16:52:01 GMT + - Tue, 13 Apr 2021 17:01:52 GMT ms-cv: - - pgZUYxNl60+tW15xsDJvNw.0 + - QZmftElPb0aJ95Hp8irkPQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 376ms + - 498ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 7ed700b8411c..3b51855db825 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:01 GMT + - Tue, 13 Apr 2021 17:01:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:02 GMT + - Tue, 13 Apr 2021 17:01:53 GMT ms-cv: - - aq14onULRki1NLbSUGWabA.0 + - kgohV2zmrEa26BeYVjR2ZA.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 13ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:01 GMT + - Tue, 13 Apr 2021 17:01:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:01.4335531+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:53.1447482+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:02 GMT + - Tue, 13 Apr 2021 17:01:53 GMT ms-cv: - - REO5w0wQk0uL2QskabgjOg.0 + - Dau9VRq1N0G+/o+ch7gE/w.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 26ms + - 28ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index ccedb2515f8b..a13b9bd00bc1 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:03 GMT + - Tue, 13 Apr 2021 17:01:56 GMT ms-cv: - - 1bVukF6IEEaszyvVYif6xQ.0 + - nul91O60ukyteuW2h0PrTw.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 316ms + - 420ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:03.385437+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:56.0498156+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:03 GMT + - Tue, 13 Apr 2021 17:01:57 GMT ms-cv: - - mZMR5lmPWUGYOrVLmfUrZw.0 + - e982E0NgnEmAv75GvNRhAA.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 149ms + - 25ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index f8d7dbf83900..b3037fa47d75 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:03 GMT + - Tue, 13 Apr 2021 17:01:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:04 GMT + - Tue, 13 Apr 2021 17:01:57 GMT ms-cv: - - rJclDKy+ckibIuu1/ryT3A.0 + - OT2PqGbT70qFEFD6kqQWUA.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 20ms + - 11ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:04 GMT + - Tue, 13 Apr 2021 17:01:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:04.1935869+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:56.3166147+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:04 GMT + - Tue, 13 Apr 2021 17:01:57 GMT ms-cv: - - 7iWAhy9uH0azy9n6AHFy/A.0 + - 0XRilKnkWUKA9+A4ZxbGRQ.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 151ms + - 26ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 13 Apr 2021 16:52:04 GMT + - Tue, 13 Apr 2021 17:01:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -113,15 +113,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 16:52:04 GMT + - Tue, 13 Apr 2021 17:01:57 GMT ms-cv: - - DkIWLRK1lU+BwdnlFcSabw.0 + - e1rOWkaIIkCwBt+VeEjrAQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 271ms + - 250ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index a60d377c3a8c..e6785167d48d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:06 GMT + - Tue, 13 Apr 2021 17:01:57 GMT ms-cv: - - 4XVgiMGzcEaU/tKVwIH6vg.0 + - fYTI0r/EUEGZknnqWUknyg.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 117ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:05.6545055+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:57.9153138+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:52:06 GMT + - Tue, 13 Apr 2021 17:01:58 GMT ms-cv: - - vbfILcNZHkykJllRYzBazA.0 + - PgVA+2U/aEicLLbRX4/0uQ.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 28ms + - 128ms status: code: 200 message: OK @@ -101,15 +101,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 16:52:06 GMT + - Tue, 13 Apr 2021 17:01:58 GMT ms-cv: - - TQZe4OPWtUuald9ndBg7fg.0 + - vwzfFyfU20C2USx6FP0Eog.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 79ms + - 116ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 6d24a19c3c06..d18b572c008e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:06 GMT + - Tue, 13 Apr 2021 17:01:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,8 +22,8 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:06 GMT - ms-cv: AlKrXB3gu02dDDjsadd5Kg.0 + date: Tue, 13 Apr 2021 17:01:58 GMT + ms-cv: g/F84xC/uUyRY8r7QVts2g.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 02642e707921..d137b67525f5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:06 GMT + - Tue, 13 Apr 2021 17:01:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -19,16 +19,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-14T16:52:06.8071322+00:00"}}' + "expiresOn": "2021-04-14T17:01:59.1773689+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:07 GMT - ms-cv: yHSTQhkG80OOUrTHtLNALA.0 + date: Tue, 13 Apr 2021 17:01:59 GMT + ms-cv: rdkTFC3UpUOITV7Z+DNNLg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 434ms + x-processing-time: 459ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 77772de61b35..368189bcc360 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:08 GMT - ms-cv: UYU2J1RQJkOFLguURlgiEg.0 + date: Tue, 13 Apr 2021 17:02:00 GMT + ms-cv: Bgv2Fz852kqw4MPoOwNHgw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 191ms + x-processing-time: 13ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 1c18ba4e5952..4f2c51a4dbbd 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:08 GMT + - Tue, 13 Apr 2021 17:02:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:08 GMT - ms-cv: x5LoKAtzT0a8aSycIJ7q9w.0 + date: Tue, 13 Apr 2021 17:02:00 GMT + ms-cv: 9TXcfD6x50CZSWT2m/Vmlg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 12ms status: code: 201 message: Created @@ -38,7 +38,7 @@ interactions: Accept: - application/json Date: - - Tue, 13 Apr 2021 16:52:08 GMT + - Tue, 13 Apr 2021 17:02:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -50,11 +50,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 16:52:09 GMT - ms-cv: FIyP3G0brkebIBJeuHRLew.0 + date: Tue, 13 Apr 2021 17:02:01 GMT + ms-cv: bEXIgQ5fgkmij/cqrFqcAQ.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 520ms + x-processing-time: 527ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index fbe875033572..857a888fb776 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:11 GMT - ms-cv: Kyczr2TxKUWF0+ROapy5GQ.0 + date: Tue, 13 Apr 2021 17:02:03 GMT + ms-cv: PTuCExnmvkWszmLDIWL0DQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 14ms status: code: 201 message: Created @@ -42,11 +42,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 16:52:12 GMT - ms-cv: ttGoxnxi3U2sfeE08GZ49A.0 + date: Tue, 13 Apr 2021 17:02:04 GMT + ms-cv: XdvNoMiRckaR3KSYSLudkQ.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 620ms + x-processing-time: 628ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index d350572e5da6..dcafab0cde28 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:12 GMT + - Tue, 13 Apr 2021 17:02:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:12 GMT - ms-cv: 7PzbjCB/+06Ei9HZqjyt/A.0 + date: Tue, 13 Apr 2021 17:02:05 GMT + ms-cv: 2q1N7E7+2USCb6fZ5B5mFg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 14ms + x-processing-time: 12ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:12 GMT + - Tue, 13 Apr 2021 17:02:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:12.1719631+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:04.5602875+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:12 GMT - ms-cv: zNjzHS37rUOrfAw25Lxhew.0 + date: Tue, 13 Apr 2021 17:02:05 GMT + ms-cv: vE7v4+oYmUivHP605z4rIw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 32ms + x-processing-time: 125ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 134dace00f64..918761807aa4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:16 GMT - ms-cv: dGLcKGHtTU2OXXK+7MF7LA.0 + date: Tue, 13 Apr 2021 17:02:09 GMT + ms-cv: 6+FRBsrXTUmyuCf5k5ifIQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 191ms + x-processing-time: 206ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:16.7737271+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:09.0011423+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:16 GMT - ms-cv: JmXhfg0cL0edhJRNtcNQuQ.0 + date: Tue, 13 Apr 2021 17:02:09 GMT + ms-cv: FdYeX5/COkqF7rFnwhAGMQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 123ms + x-processing-time: 132ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index b341b019b0de..509857007745 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:17 GMT + - Tue, 13 Apr 2021 17:02:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:17 GMT - ms-cv: fIS/ea/uVEWMvFTb5fnesw.0 + date: Tue, 13 Apr 2021 17:02:10 GMT + ms-cv: RsU2xZVDHEm4vz1DjDoZ6Q.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 11ms + x-processing-time: 12ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 16:52:17 GMT + - Tue, 13 Apr 2021 17:02:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:17.3678486+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:09.434884+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:18 GMT - ms-cv: /c5m8JZvd02WbBY6Pe1g7A.0 + date: Tue, 13 Apr 2021 17:02:10 GMT + ms-cv: 9MDdVsIu10iYBLpjo8kQpA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 120ms + x-processing-time: 25ms status: code: 200 message: OK @@ -71,7 +71,7 @@ interactions: Accept: - application/json Date: - - Tue, 13 Apr 2021 16:52:17 GMT + - Tue, 13 Apr 2021 17:02:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -83,11 +83,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 16:52:19 GMT - ms-cv: 5BCqtwGB1ECNxw8p+ODBfQ.0 + date: Tue, 13 Apr 2021 17:02:10 GMT + ms-cv: ww3cEFisYk67fSe/A4GfVg.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 1015ms + x-processing-time: 81ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 0d2b6d2d35cb..ce875483b15a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:25 GMT - ms-cv: sYCu8mdKO0Gt4dV51KkcMw.0 + date: Tue, 13 Apr 2021 17:02:11 GMT + ms-cv: KLJXd4cSh0ybfT8P8jzzcA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 219ms + x-processing-time: 13ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T16:52:24.9561691+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:10.4991194+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:52:25 GMT - ms-cv: nyr0aty+bk+P3kqYjGmdmA.0 + date: Tue, 13 Apr 2021 17:02:11 GMT + ms-cv: rT8KdTatbEWz0htswr7bKQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 150ms + x-processing-time: 28ms status: code: 200 message: OK @@ -71,11 +71,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 16:52:26 GMT - ms-cv: Q2Y+QbiQeEeiTesMFQKS4A.0 + date: Tue, 13 Apr 2021 17:02:11 GMT + ms-cv: UffFzQF24E2MaEYMm8VPHA.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 285ms + x-processing-time: 100ms status: code: 204 message: No Content From 678d9beacd9a10a19ffdb785ba09a9ffa35207d6 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Tue, 13 Apr 2021 11:03:11 -0700 Subject: [PATCH 4/4] Fixed python 2 import error --- .../tests/_shared/helper.py | 8 +++--- ...tion_identity_client.test_create_user.yaml | 8 +++--- ...ity_client.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...tion_identity_client.test_delete_user.yaml | 14 +++++----- ...est_delete_user_from_managed_identity.yaml | 12 ++++----- ...cation_identity_client.test_get_token.yaml | 16 ++++++------ ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...on_identity_client.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- ...dentity_client_async.test_create_user.yaml | 8 +++--- ...ient_async.test_create_user_and_token.yaml | 10 +++---- ...est_create_user_from_managed_identity.yaml | 6 ++--- ...dentity_client_async.test_delete_user.yaml | 16 ++++++------ ...est_delete_user_from_managed_identity.yaml | 12 ++++----- ..._identity_client_async.test_get_token.yaml | 18 ++++++------- ....test_get_token_from_managed_identity.yaml | 14 +++++----- ...ntity_client_async.test_revoke_tokens.yaml | 26 +++++++++---------- ...t_revoke_tokens_from_managed_identity.yaml | 20 +++++++------- 19 files changed, 133 insertions(+), 131 deletions(-) diff --git a/sdk/communication/azure-communication-identity/tests/_shared/helper.py b/sdk/communication/azure-communication-identity/tests/_shared/helper.py index 14034f30f317..b89a9c548f18 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/helper.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/helper.py @@ -3,20 +3,22 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +import re from azure_devtools.scenario_tests import RecordingProcessor +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse class URIIdentityReplacer(RecordingProcessor): """Replace the identity in request uri""" def process_request(self, request): - import re - from urllib.parse import urlparse resource = (urlparse(request.uri).netloc).split('.')[0] request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) request.uri = re.sub(resource, 'sanitized', request.uri) return request def process_response(self, response): - import re if 'url' in response: response['url'] = re.sub('/identities/([^/?]+)', '/identities/sanitized', response['url']) return response \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index f32834f91356..c7011335ecf7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:47 GMT + - Tue, 13 Apr 2021 17:54:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:48 GMT + - Tue, 13 Apr 2021 17:54:24 GMT ms-cv: - - i3OIAYplJUen4KAdpFywJA.0 + - UEGC+xqwQkqRRfXm5Md24A.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 21ms + - 12ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index 3d22d2834e15..24325cd40622 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:48 GMT + - Tue, 13 Apr 2021 17:54:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -23,16 +23,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-14T17:01:48.4074545+00:00"}}' + "expiresOn": "2021-04-14T17:54:25.0058231+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:48 GMT + - Tue, 13 Apr 2021 17:54:25 GMT ms-cv: - - VLmM6vbmykCIzw4UsjNk2w.0 + - I9ZS0qxvQEKYO/S5ErFh1w.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 277ms + - 215ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 15874ff7c5f3..6ec1415a7621 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:49 GMT + - Tue, 13 Apr 2021 17:54:27 GMT ms-cv: - - /7rUBvsYxEq3xJSCgmkbOQ.0 + - Z2JdPGt9IEegXVCKKHjiJg.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 268ms + - 162ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index cacb7915e9df..4b1297bc1fd5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:50 GMT + - Tue, 13 Apr 2021 17:54:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:50 GMT + - Tue, 13 Apr 2021 17:54:27 GMT ms-cv: - - VUajeho2E02NWRUMAB+j4A.0 + - NpGxr/VCv0i3/F8p8B/PEw.0 request-context: - appId= strict-transport-security: @@ -55,7 +55,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 13 Apr 2021 17:01:50 GMT + - Tue, 13 Apr 2021 17:54:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -69,15 +69,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 17:01:51 GMT + - Tue, 13 Apr 2021 17:54:27 GMT ms-cv: - - HZXGrDDZo0+g437iN0b8kQ.0 + - zRztRbFrrEe9RLXIARPN7w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 782ms + - 583ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index a6e3c6a5d6b5..d38866508f87 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:52 GMT + - Tue, 13 Apr 2021 17:54:29 GMT ms-cv: - - mZUYvF+jUUGkUEyHANy62Q.0 + - 3qpzL2TAgU2LX4OLE/ZWKQ.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 320ms + - 91ms status: code: 201 message: Created @@ -61,15 +61,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 17:01:52 GMT + - Tue, 13 Apr 2021 17:54:30 GMT ms-cv: - - QZmftElPb0aJ95Hp8irkPQ.0 + - 04FDSY1mSkeU92Los0y+zA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 498ms + - 591ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 3b51855db825..cdc9bb4ef31d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:53 GMT + - Tue, 13 Apr 2021 17:54:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:53 GMT + - Tue, 13 Apr 2021 17:54:30 GMT ms-cv: - - kgohV2zmrEa26BeYVjR2ZA.0 + - ESJNBGhGTEWm2nfyGmja5g.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:53 GMT + - Tue, 13 Apr 2021 17:54:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:53.1447482+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:29.7152371+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:53 GMT + - Tue, 13 Apr 2021 17:54:30 GMT ms-cv: - - Dau9VRq1N0G+/o+ch7gE/w.0 + - 8x1vXQTCY0qKMkC4Z/KGFg.0 request-context: - appId= strict-transport-security: diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index a13b9bd00bc1..bfab4dfe09a7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:56 GMT + - Tue, 13 Apr 2021 17:54:32 GMT ms-cv: - - nul91O60ukyteuW2h0PrTw.0 + - DkbbkXtjlkOEK0yQgPG8ZA.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 420ms + - 11ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:56.0498156+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:32.0766183+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:57 GMT + - Tue, 13 Apr 2021 17:54:33 GMT ms-cv: - - e982E0NgnEmAv75GvNRhAA.0 + - ZOyy1+vBp0eAegnujOspGA.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 25ms + - 135ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index b3037fa47d75..f3be0a2823e3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:56 GMT + - Tue, 13 Apr 2021 17:54:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,9 +29,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:57 GMT + - Tue, 13 Apr 2021 17:54:32 GMT ms-cv: - - OT2PqGbT70qFEFD6kqQWUA.0 + - uR6j7ujUlkmDU4sMF9jubw.0 request-context: - appId= strict-transport-security: @@ -39,7 +39,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 11ms + - 22ms status: code: 201 message: Created @@ -57,7 +57,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:56 GMT + - Tue, 13 Apr 2021 17:54:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -66,16 +66,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:56.3166147+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:32.9248717+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:57 GMT + - Tue, 13 Apr 2021 17:54:33 GMT ms-cv: - - 0XRilKnkWUKA9+A4ZxbGRQ.0 + - dXFgv5bt8UugQoKws3faAw.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 26ms + - 148ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 13 Apr 2021 17:01:56 GMT + - Tue, 13 Apr 2021 17:54:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -113,15 +113,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 17:01:57 GMT + - Tue, 13 Apr 2021 17:54:33 GMT ms-cv: - - e1rOWkaIIkCwBt+VeEjrAQ.0 + - 4HgQs8RX2keltldeWAixBg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 250ms + - 490ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index e6785167d48d..b1fcbb1f1836 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -25,9 +25,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:57 GMT + - Tue, 13 Apr 2021 17:54:35 GMT ms-cv: - - fYTI0r/EUEGZknnqWUknyg.0 + - WmL819euc02RGu6x3tAA5A.0 request-context: - appId= strict-transport-security: @@ -35,7 +35,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 117ms + - 22ms status: code: 201 message: Created @@ -58,16 +58,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:01:57.9153138+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:34.775295+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 17:01:58 GMT + - Tue, 13 Apr 2021 17:54:35 GMT ms-cv: - - PgVA+2U/aEicLLbRX4/0uQ.0 + - wv2ATiyGHEqcp4VT0y26NA.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 128ms + - 26ms status: code: 200 message: OK @@ -101,15 +101,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 date: - - Tue, 13 Apr 2021 17:01:58 GMT + - Tue, 13 Apr 2021 17:54:35 GMT ms-cv: - - vwzfFyfU20C2USx6FP0Eog.0 + - PAEN110k906wOeoSCXZaJA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 116ms + - 86ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index d18b572c008e..a629e0a5dfc7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:58 GMT + - Tue, 13 Apr 2021 17:54:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:01:58 GMT - ms-cv: g/F84xC/uUyRY8r7QVts2g.0 + date: Tue, 13 Apr 2021 17:54:35 GMT + ms-cv: DVwrKeAUsUeqOYv7Vs+ltw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 12ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index d137b67525f5..0b81b567ca1d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:01:58 GMT + - Tue, 13 Apr 2021 17:54:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -19,16 +19,16 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-14T17:01:59.1773689+00:00"}}' + "expiresOn": "2021-04-14T17:54:35.9636866+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:01:59 GMT - ms-cv: rdkTFC3UpUOITV7Z+DNNLg.0 + date: Tue, 13 Apr 2021 17:54:36 GMT + ms-cv: ntcPefeAfkSlklnTTjlpkw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 459ms + x-processing-time: 421ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 368189bcc360..0f8b82b24228 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:00 GMT - ms-cv: Bgv2Fz852kqw4MPoOwNHgw.0 + date: Tue, 13 Apr 2021 17:54:37 GMT + ms-cv: SVtnqEBxEUeDJruAkkfcsA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 235ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 4f2c51a4dbbd..cf491cf71922 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:02:00 GMT + - Tue, 13 Apr 2021 17:54:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:00 GMT - ms-cv: 9TXcfD6x50CZSWT2m/Vmlg.0 + date: Tue, 13 Apr 2021 17:54:38 GMT + ms-cv: 1yFV4s+3E02VnBtVpTsgMw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 11ms status: code: 201 message: Created @@ -38,7 +38,7 @@ interactions: Accept: - application/json Date: - - Tue, 13 Apr 2021 17:02:00 GMT + - Tue, 13 Apr 2021 17:54:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -50,11 +50,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 17:02:01 GMT - ms-cv: bEXIgQ5fgkmij/cqrFqcAQ.0 + date: Tue, 13 Apr 2021 17:54:38 GMT + ms-cv: yrGfSuBG/E+5SV1IVD3agg.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 527ms + x-processing-time: 479ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index 857a888fb776..3d093973827c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:03 GMT - ms-cv: PTuCExnmvkWszmLDIWL0DQ.0 + date: Tue, 13 Apr 2021 17:54:40 GMT + ms-cv: SH4vZizCxkSGvnv/LRR9SA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 14ms + x-processing-time: 12ms status: code: 201 message: Created @@ -42,11 +42,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 17:02:04 GMT - ms-cv: XdvNoMiRckaR3KSYSLudkQ.0 + date: Tue, 13 Apr 2021 17:54:40 GMT + ms-cv: FyJH/NtpKEKiNRKEb8XvPQ.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 628ms + x-processing-time: 577ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index dcafab0cde28..31995b988c54 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:02:04 GMT + - Tue, 13 Apr 2021 17:54:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:05 GMT - ms-cv: 2q1N7E7+2USCb6fZ5B5mFg.0 + date: Tue, 13 Apr 2021 17:54:41 GMT + ms-cv: Pj8FRADg+kiDEt1nR45Xpw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 14ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:02:04 GMT + - Tue, 13 Apr 2021 17:54:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:04.5602875+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:40.9399447+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:05 GMT - ms-cv: vE7v4+oYmUivHP605z4rIw.0 + date: Tue, 13 Apr 2021 17:54:41 GMT + ms-cv: 20UrFS+nmUuM9hckNxqX9Q.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 125ms + x-processing-time: 128ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 918761807aa4..a5e513fe81fb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:09 GMT - ms-cv: 6+FRBsrXTUmyuCf5k5ifIQ.0 + date: Tue, 13 Apr 2021 17:54:45 GMT + ms-cv: 7i9QSGm+qU+VzI7p4eQEig.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 206ms + x-processing-time: 12ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:09.0011423+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:45.0423527+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:09 GMT - ms-cv: FdYeX5/COkqF7rFnwhAGMQ.0 + date: Tue, 13 Apr 2021 17:54:45 GMT + ms-cv: FgTOvdMakkCOCXl3WaKySQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 132ms + x-processing-time: 126ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 509857007745..bd040c414f2f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:02:09 GMT + - Tue, 13 Apr 2021 17:54:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -22,12 +22,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:10 GMT - ms-cv: RsU2xZVDHEm4vz1DjDoZ6Q.0 + date: Tue, 13 Apr 2021 17:54:45 GMT + ms-cv: YpWO++6ovkOt61REvEzWXA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-processing-time: 29ms status: code: 201 message: Created @@ -42,7 +42,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 13 Apr 2021 17:02:09 GMT + - Tue, 13 Apr 2021 17:54:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -51,16 +51,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:09.434884+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:45.5089019+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:10 GMT - ms-cv: 9MDdVsIu10iYBLpjo8kQpA.0 + date: Tue, 13 Apr 2021 17:54:46 GMT + ms-cv: svbjN4vN+EmbtQxi2pcnCw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 25ms + x-processing-time: 152ms status: code: 200 message: OK @@ -71,7 +71,7 @@ interactions: Accept: - application/json Date: - - Tue, 13 Apr 2021 17:02:09 GMT + - Tue, 13 Apr 2021 17:54:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -83,11 +83,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 17:02:10 GMT - ms-cv: ww3cEFisYk67fSe/A4GfVg.0 + date: Tue, 13 Apr 2021 17:54:46 GMT + ms-cv: 5tqpKlCa/ESvOY9qWXQP0A.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 81ms + x-processing-time: 208ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index ce875483b15a..fb454ef93117 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -18,12 +18,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:11 GMT - ms-cv: KLJXd4cSh0ybfT8P8jzzcA.0 + date: Tue, 13 Apr 2021 17:54:48 GMT + ms-cv: lWjOWYpL90CS7wvt6sWZmw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 111ms status: code: 201 message: Created @@ -43,16 +43,16 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:02:10.4991194+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-04-14T17:54:47.3442684+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 17:02:11 GMT - ms-cv: rT8KdTatbEWz0htswr7bKQ.0 + date: Tue, 13 Apr 2021 17:54:48 GMT + ms-cv: sdMJ7daQx0GS9bI8pul/bw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 28ms + x-processing-time: 123ms status: code: 200 message: OK @@ -71,11 +71,11 @@ interactions: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Tue, 13 Apr 2021 17:02:11 GMT - ms-cv: UffFzQF24E2MaEYMm8VPHA.0 + date: Tue, 13 Apr 2021 17:54:48 GMT + ms-cv: s2kwtg8TQkG8aJp6NDHeLg.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 100ms + x-processing-time: 248ms status: code: 204 message: No Content