diff --git a/sdk/communication/azure-communication-administration/dev_requirements.txt b/sdk/communication/azure-communication-administration/dev_requirements.txt index 311dd4e24ad..df27e5d6981 100644 --- a/sdk/communication/azure-communication-administration/dev_requirements.txt +++ b/sdk/communication/azure-communication-administration/dev_requirements.txt @@ -2,4 +2,5 @@ -e ../../../tools/azure-devtools ../../core/azure-core ../azure-communication-nspkg +../azure-mgmt-communication aiohttp>=3.0; python_version >= '3.5' \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/tests/_shared/communication_service_preparer.py b/sdk/communication/azure-communication-administration/tests/_shared/communication_service_preparer.py new file mode 100644 index 00000000000..7e203744c57 --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/_shared/communication_service_preparer.py @@ -0,0 +1,78 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ + +import datetime + +from azure.mgmt.communication import CommunicationServiceManagementClient +from azure.mgmt.communication.models import CommunicationServiceResource +from devtools_testutils import AzureMgmtPreparer, ResourceGroupPreparer +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, + 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.service_name = "TEST-SERVICE-NAME" + self.mgmt_client = None + + 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): + self.service_name = self.create_random_name() + + if not self.is_live: + return { + "connection_string": "endpoint=https://fake-resource.communication.azure.com/;accesskey=fake===", + } + + group_name = self._get_resource_group(**kwargs).name + + self.mgmt_client = self.create_mgmt_client(CommunicationServiceManagementClient) + + resource = self.mgmt_client.communication_service.begin_create_or_update( + group_name, + self.service_name, + CommunicationServiceResource(location="global", data_location="UnitedStates") + ).result() + + primary_connection_string = self.mgmt_client.communication_service.list_keys( + group_name, + 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.mgmt_client.communication_service.begin_delete(group_name, self.service_name).wait() diff --git a/sdk/communication/azure-communication-administration/tests/helper.py b/sdk/communication/azure-communication-administration/tests/_shared/helper.py similarity index 100% rename from sdk/communication/azure-communication-administration/tests/helper.py rename to sdk/communication/azure-communication-administration/tests/_shared/helper.py diff --git a/sdk/communication/azure-communication-administration/tests/_shared/testcase.py b/sdk/communication/azure-communication-administration/tests/_shared/testcase.py index 2c60f4078f0..f53f6fbe7ce 100644 --- a/sdk/communication/azure-communication-administration/tests/_shared/testcase.py +++ b/sdk/communication/azure-communication-administration/tests/_shared/testcase.py @@ -4,10 +4,8 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -import os import re from devtools_testutils import AzureTestCase -from azure.communication.administration._shared.utils import parse_connection_str from azure_devtools.scenario_tests import RecordingProcessor, ReplayableTest from azure_devtools.scenario_tests.utilities import is_text_payload @@ -68,15 +66,4 @@ class CommunicationTestCase(AzureTestCase): FILTER_HEADERS = ReplayableTest.FILTER_HEADERS + ['x-azure-ref', 'x-ms-content-sha256', 'location'] def __init__(self, method_name, *args, **kwargs): - super(CommunicationTestCase, self).__init__(method_name, *args, **kwargs) - - def setUp(self): - super(CommunicationTestCase, self).setUp() - - if self.is_playback(): - self.connection_str = "endpoint=https://sanitized/;accesskey=fake===" - else: - self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') - endpoint, _ = parse_connection_str(self.connection_str) - self._resource_name = endpoint.split(".")[0] - self.scrubber.register_name_pair(self._resource_name, "sanitized") + super(CommunicationTestCase, self).__init__(method_name, *args, **kwargs) \ No newline at end of file diff --git a/sdk/communication/azure-communication-administration/tests/phone_number_testcase.py b/sdk/communication/azure-communication-administration/tests/phone_number_testcase.py new file mode 100644 index 00000000000..985cf17ad64 --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/phone_number_testcase.py @@ -0,0 +1,20 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +import os +from azure.communication.administration._shared.utils import parse_connection_str +from _shared.testcase import CommunicationTestCase + +class PhoneNumberCommunicationTestCase(CommunicationTestCase): + def setUp(self): + super(PhoneNumberCommunicationTestCase, self).setUp() + + if self.is_playback(): + self.connection_str = "endpoint=https://sanitized/;accesskey=fake===" + else: + self.connection_str = os.getenv('AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING') + endpoint, _ = parse_connection_str(self.connection_str) + self._resource_name = endpoint.split(".")[0] + self.scrubber.register_name_pair(self._resource_name, "sanitized") diff --git a/sdk/communication/azure-communication-administration/tests/phone_number_testcase_async.py b/sdk/communication/azure-communication-administration/tests/phone_number_testcase_async.py new file mode 100644 index 00000000000..310f713989e --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/phone_number_testcase_async.py @@ -0,0 +1,13 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +import os +from azure.communication.administration._shared.utils import parse_connection_str +from phone_number_testcase import PhoneNumberCommunicationTestCase +from _shared.asynctestcase import AsyncCommunicationTestCase + +class AsyncPhoneNumberCommunicationTestCase(PhoneNumberCommunicationTestCase, AsyncCommunicationTestCase): + def setUp(self): + super(AsyncPhoneNumberCommunicationTestCase, self).setUp() diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml similarity index 67% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_create_user.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml index e94f02384c4..d3bddee6b0a 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -11,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Tue, 29 Sep 2020 17:47:50 GMT + - Sat, 10 Oct 2020 02:12:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communication27b5151c.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:50 GMT + - Sat, 10 Oct 2020 02:12:50 GMT ms-cv: - - CoE2LmTaiE+T/aECFj99Zg.0 + - QLKE+FLVdUq7AXq6kOHFAA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 31ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml similarity index 64% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_delete_user.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml index e7ac6b50b56..3469024ccac 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -11,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Tue, 29 Sep 2020 17:47:50 GMT + - Sat, 10 Oct 2020 02:13:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communication279d151b.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:50 GMT + - Sat, 10 Oct 2020 02:13:54 GMT ms-cv: - - FCvz8qTbwEuo51Sfsgj8Hg.0 + - 1trS7q04w0Ku0dWvPBHBvg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 61ms status: code: 200 message: OK @@ -50,13 +50,13 @@ interactions: Content-Length: - '0' Date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:13:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://communication279d151b.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -64,13 +64,13 @@ interactions: api-supported-versions: - 2020-07-20-preview1, 2020-07-20-preview2 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:13:55 GMT ms-cv: - - /Xzcq087nEObSeLTbe71Lw.0 + - HURY7bvoM0qfD9WxGE7Xfg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 842ms + - 751ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_issue_token.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml similarity index 66% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_issue_token.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml index fb964f65453..352feffbfc1 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_issue_token.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_issue_token.yaml @@ -11,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:14:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communication28c71533.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:14:59 GMT ms-cv: - - yRWeRDZM3kG7EUXuSU6PRg.0 + - Pww8CtkKzUeaJne5eGvDBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 33ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Tue, 29 Sep 2020 17:47:52 GMT + - Sat, 10 Oct 2020 02:14:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://communication28c71533.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-09-30T17:47:51.1213055+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-10-11T02:14:58.7723626+00:00"}' headers: api-supported-versions: - 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:14:59 GMT ms-cv: - - dd0lZwCvoE6n7W5SIYKdKQ.0 + - F0sn/mygTU+RwCNm6UCPGg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 29ms + - 89ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml similarity index 65% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_revoke_tokens.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index 518a9de87e7..bfd05d711ad 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -11,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Tue, 29 Sep 2020 17:47:52 GMT + - Sat, 10 Oct 2020 02:16:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communication54301609.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:16:03 GMT ms-cv: - - 13CtSCvWOkSCBqLSCMPsLg.0 + - 9NG1Eyqc106l9cRQZMyQzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 39ms + - 64ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Tue, 29 Sep 2020 17:47:52 GMT + - Sat, 10 Oct 2020 02:16:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://communication54301609.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-09-30T17:47:51.4855261+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-10-11T02:16:02.5280344+00:00"}' headers: api-supported-versions: - 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:16:03 GMT ms-cv: - - rVSMb7bnp0m2VtkzCPQTkQ.0 + - gf6yJ+GdtECin3sgBqW1iA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 61ms + - 56ms status: code: 200 message: OK @@ -93,13 +93,13 @@ interactions: Content-Type: - application/merge-patch+json Date: - - Tue, 29 Sep 2020 17:47:52 GMT + - Sat, 10 Oct 2020 02:16:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: PATCH - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://communication54301609.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -107,13 +107,13 @@ interactions: api-supported-versions: - 2020-07-20-preview1, 2020-07-20-preview2 date: - - Tue, 29 Sep 2020 17:47:51 GMT + - Sat, 10 Oct 2020 02:16:03 GMT ms-cv: - - oF7mN2y00ESLDHxwtfOskw.0 + - pbUen5/Vn0+Fh4+Ytaw5GA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 9ms + - 11ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml similarity index 51% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_create_user.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 758e65453f9..11dbefad301 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -5,25 +5,25 @@ interactions: Accept: - application/json Date: - - Tue, 29 Sep 2020 17:47:52 GMT + - Sat, 10 Oct 2020 02:17:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communicationb0051799.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:51 GMT - ms-cv: Fgg/naICR0SWfiXHYMnVzg.0 + date: Sat, 10 Oct 2020 02:17:06 GMT + ms-cv: I/B0tnLzmUiNRQgIBs/8zg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 23ms + x-processing-time: 81ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + url: https://communicationb0051799.communication.azure.com/identities?api-version=2020-07-20-preview2 version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml new file mode 100644 index 00000000000..96d079207fd --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -0,0 +1,53 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Date: + - Sat, 10 Oct 2020 02:18:11 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://communicationafed1798.communication.azure.com/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 + content-type: application/json; charset=utf-8 + date: Sat, 10 Oct 2020 02:18:11 GMT + ms-cv: CJ1ZMZbXj0uRUGa+cq45WQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 17ms + status: + code: 200 + message: OK + url: https://communicationafed1798.communication.azure.com/identities?api-version=2020-07-20-preview2 +- request: + body: '' + headers: + Date: + - Sat, 10 Oct 2020 02:18:11 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://communicationafed1798.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 + date: Sat, 10 Oct 2020 02:18:12 GMT + ms-cv: T3lvNo5Gb02jYNwbJn6+4w.0 + strict-transport-security: max-age=2592000 + x-processing-time: 1059ms + status: + code: 204 + message: No Content + url: https://communicationafed1798.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 +version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_issue_token.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml similarity index 52% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_issue_token.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml index 3966d10cb2f..ba22cb9a2de 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_issue_token.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_issue_token.yaml @@ -5,27 +5,27 @@ interactions: Accept: - application/json Date: - - Tue, 29 Sep 2020 17:47:53 GMT + - Sat, 10 Oct 2020 02:19:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communicationb11717b0.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: ykEFqlAYvES0gdtBUkdluw.0 + date: Sat, 10 Oct 2020 02:19:15 GMT + ms-cv: 9j5vUmTjck6jsH5KjHoaqg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 17ms + x-processing-time: 18ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + url: https://communicationb11717b0.communication.azure.com/identities?api-version=2020-07-20-preview2 - request: body: '{"scopes": ["chat"]}' headers: @@ -36,25 +36,25 @@ interactions: Content-Type: - application/json Date: - - Tue, 29 Sep 2020 17:47:53 GMT + - Sat, 10 Oct 2020 02:19:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://communicationb11717b0.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-09-30T17:47:52.9441915+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-10-11T02:19:15.9183485+00:00"}' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: 6tglideZmkSZjkqgD1FQOg.0 + date: Sat, 10 Oct 2020 02:19:16 GMT + ms-cv: ZPOHH33XdkiFvqU+wRoB/w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 24ms + x-processing-time: 29ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + url: https://communicationb11717b0.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml similarity index 52% rename from sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_revoke_tokens.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 0e6105db511..17fed32552f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -5,27 +5,27 @@ interactions: Accept: - application/json Date: - - Tue, 29 Sep 2020 17:47:53 GMT + - Sat, 10 Oct 2020 02:20:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://communicatione17a1886.communication.azure.com/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: uRSOsnLbfkq34EcscODY+Q.0 + date: Sat, 10 Oct 2020 02:20:20 GMT + ms-cv: yhOUupFgTkyv/edU+U0rNw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 16ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + url: https://communicatione17a1886.communication.azure.com/identities?api-version=2020-07-20-preview2 - request: body: '{"scopes": ["chat"]}' headers: @@ -36,27 +36,27 @@ interactions: Content-Type: - application/json Date: - - Tue, 29 Sep 2020 17:47:54 GMT + - Sat, 10 Oct 2020 02:20:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://communicatione17a1886.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-09-30T17:47:53.2009848+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-10-11T02:20:20.2897544+00:00"}' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: x3L3l1+yv0mV76sVFQmHAQ.0 + date: Sat, 10 Oct 2020 02:20:20 GMT + ms-cv: DNfxv8Fauk2weDU7PqlXAQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 25ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + url: https://communicatione17a1886.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 - request: body: '{}' headers: @@ -65,24 +65,24 @@ interactions: Content-Type: - application/merge-patch+json Date: - - Tue, 29 Sep 2020 17:47:54 GMT + - Sat, 10 Oct 2020 02:20:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: PATCH - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://communicatione17a1886.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: /Q2xdsdd5kaMhjyamP46Og.0 + date: Sat, 10 Oct 2020 02:20:20 GMT + ms-cv: WER6t+c/C02eVHc63q7wLw.0 strict-transport-security: max-age=2592000 - x-processing-time: 8ms + x-processing-time: 10ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + url: https://communicatione17a1886.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_delete_user.yaml deleted file mode 100644 index 427b594f355..00000000000 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_communicatoin_identity_client_async.test_delete_user.yaml +++ /dev/null @@ -1,53 +0,0 @@ -interactions: -- request: - body: '' - headers: - Accept: - - application/json - Date: - - Tue, 29 Sep 2020 17:47:52 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 - response: - body: '{"id": "sanitized"}' - headers: - api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 - content-type: application/json; charset=utf-8 - date: Tue, 29 Sep 2020 17:47:52 GMT - ms-cv: PL5fkOr2Okeek8EYo2GXTQ.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 18ms - status: - code: 200 - message: OK - url: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 -- request: - body: '' - headers: - Date: - - Tue, 29 Sep 2020 17:47:52 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.3 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-07-20-preview1, 2020-07-20-preview2 - date: Tue, 29 Sep 2020 17:47:53 GMT - ms-cv: 5OBTE6WyAkKVivRuMfMaQg.0 - strict-transport-security: max-age=2592000 - x-processing-time: 712ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 -version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_search.yaml index 16e182f3346..1e2a13a13b2 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_search.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Mon, 28 Sep 2020 21:07:45 GMT + - Sat, 10 Oct 2020 02:20:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Mon, 28 Sep 2020 21:07:46 GMT + - Sat, 10 Oct 2020 02:20:51 GMT ms-cv: - - QzclZYQsuk2dhRGLgFRISw.0 + - DW7FajXWBkOVglGZi8w07Q.0 x-processing-time: - - 1272ms + - 556ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml index 8f491bb6ab4..ed3918b5ae8 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml @@ -1,7 +1,7 @@ interactions: - request: - body: 'b''{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId", "azurePstnTargetId": "AzurePstnTargetId"}, "phoneNumber": "+1area_code_for_search4864953"}''' + body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": + "ApplicationId"}, "phoneNumber": "sanitized"}' headers: Accept: - '*/*' @@ -10,13 +10,13 @@ interactions: Connection: - keep-alive Content-Length: - - '168' + - '126' Content-Type: - application/json Date: - - Mon, 28 Sep 2020 20:52:31 GMT + - Sat, 10 Oct 2020 02:20:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: PATCH @@ -28,12 +28,12 @@ interactions: content-length: - '0' date: - - Mon, 28 Sep 2020 20:52:31 GMT + - Sat, 10 Oct 2020 02:20:53 GMT ms-cv: - - WNXx3LNakU6tV8xeGv33uA.0 + - IUVOp9xP9kmu4ATrmLBfsw.0 x-processing-time: - - 337ms + - 657ms status: - code: 202 - message: Accepted + code: 200 + message: OK version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml index 05ee0bd6307..f1c0146371f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: 'b''b\''{"displayName": "testsearch20200014", "description": "testsearch20200014", - "phonePlanIds": ["phone_plan_id"], "areaCode": "area_code_for_search", "quantity": - 1}\''''' + body: '{"displayName": "testsearch20200014", "description": "testsearch20200014", + "phonePlanIds": "sanitized", "areaCode": "area_code_for_search", "quantity": + 1}' headers: Accept: - application/json @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 20:58:50 GMT + - Sat, 10 Oct 2020 02:20:53 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -28,13 +28,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:58:51 GMT + - Sat, 10 Oct 2020 02:20:54 GMT ms-cv: - - zBQqWRmiSEyC+AsrLoxytg.0 + - oP2Gcu9PuEOAjDZgB58T7Q.0 transfer-encoding: - chunked x-processing-time: - - 1555ms + - 1475ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml index ac47214be40..dcdf06fc8ef 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml @@ -13,26 +13,27 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 20:52:31 GMT + - Sat, 10 Oct 2020 02:20:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=NotRequired&phonePlanId=phone_plan_id_area_codes&api-version=2020-07-20-preview1 response: - body: '{"primaryAreaCodes": ["833"], "secondaryAreaCodes": [], "nextLink": null}' + body: '{"primaryAreaCodes": ["area_code_for_search"], "secondaryAreaCodes": [], + "nextLink": null}' headers: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:31 GMT + - Sat, 10 Oct 2020 02:20:55 GMT ms-cv: - - s1K8bpPuzUG5W6OtrZE6hw.0 + - U8yvCboQLkaGeO0j5SolRw.0 transfer-encoding: - chunked x-processing-time: - - 570ms + - 467ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml index daf8996d7d8..1d0caa14531 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:32 GMT + - Sat, 10 Oct 2020 02:20:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -23,13 +23,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:32 GMT + - Sat, 10 Oct 2020 02:20:54 GMT ms-cv: - - T6S8W/xhekOa5x30VjpWOw.0 + - 7QJaEaTu0EGH93bHngSG1g.0 transfer-encoding: - chunked x-processing-time: - - 562ms + - 274ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml index d5fc206076d..bb3de7b3441 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumber": "+1area_code_for_search4864953"}''' + body: '{"phoneNumber": "sanitized"}' headers: Accept: - application/json @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 20:52:33 GMT + - Sat, 10 Oct 2020 02:20:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 response: body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId", "azurePstnTargetId": "AzurePstnTargetId"}}' + "ApplicationId"}}' headers: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:32 GMT + - Sat, 10 Oct 2020 02:20:55 GMT ms-cv: - - ISrlnWt250eHg9H0U7B6gA.0 + - gmxbri7rmU6CqVyX2m/kSA.0 transfer-encoding: - chunked x-processing-time: - - 436ms + - 345ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml index 912a36aa9f0..adb0c16e8a7 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml @@ -9,241 +9,26 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:34 GMT + - Sat, 10 Oct 2020 02:20:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone_plan_group_id/phoneplans/phone_plan_id/locationoptions?locale=en-US&api-version=2020-07-20-preview1 response: - body: '{"locationOptions": {"labelId": "state", "labelName": "State", "options": - [{"name": "AK", "value": "AK", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Anchorage", "value": "NOAM-US-AK-AN", "locationOptions": - []}]}]}, {"name": "AL", "value": "AL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Birmingham", "value": "NOAM-US-AL-BI", - "locationOptions": []}, {"name": "Huntsville", "value": "NOAM-US-AL-HN", "locationOptions": - []}, {"name": "Mobile", "value": "NOAM-US-AL-MO", "locationOptions": []}, {"name": - "Montgomery", "value": "NOAM-US-AL-MN", "locationOptions": []}]}]}, {"name": - "AR", "value": "AR", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Fort Smith", "value": "NOAM-US-AR-FS", "locationOptions": - []}, {"name": "Jonesboro", "value": "NOAM-US-AR-JO", "locationOptions": []}, - {"name": "Little Rock", "value": "NOAM-US-AR-LR", "locationOptions": []}]}]}, - {"name": "AZ", "value": "AZ", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Phoenix", "value": "NOAM-US-AZ-PH", "locationOptions": - []}]}]}, {"name": "CA", "value": "CA", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Concord", "value": "NOAM-US-CA-CO", - "locationOptions": []}, {"name": "Fresno", "value": "NOAM-US-CA-FR", "locationOptions": - []}, {"name": "Irvine", "value": "NOAM-US-CA-IR", "locationOptions": []}, {"name": - "Los Angeles", "value": "NOAM-US-CA-LA", "locationOptions": []}, {"name": "Riverside", - "value": "NOAM-US-CA-RI", "locationOptions": []}, {"name": "Sacramento", "value": - "NOAM-US-CA-SA", "locationOptions": []}, {"name": "Salinas", "value": "NOAM-US-CA-SL", - "locationOptions": []}, {"name": "San Diego", "value": "NOAM-US-CA-SD", "locationOptions": - []}, {"name": "San Francisco", "value": "NOAM-US-CA-SF", "locationOptions": - []}, {"name": "San Jose", "value": "NOAM-US-CA-SJ", "locationOptions": []}, - {"name": "Santa Barbara", "value": "NOAM-US-CA-SB", "locationOptions": []}, - {"name": "Santa Clarita", "value": "NOAM-US-CA-SC", "locationOptions": []}, - {"name": "Santa Rosa", "value": "NOAM-US-CA-SR", "locationOptions": []}, {"name": - "Stockton", "value": "NOAM-US-CA-ST", "locationOptions": []}]}]}, {"name": "CL", - "value": "CL", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Washington DC", "value": "NOAM-US-CL-DC", "locationOptions": - []}]}]}, {"name": "CO", "value": "CO", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Denver", "value": "NOAM-US-CO-DE", - "locationOptions": []}, {"name": "Grand Junction", "value": "NOAM-US-CO-GJ", - "locationOptions": []}, {"name": "Pueblo", "value": "NOAM-US-CO-PU", "locationOptions": - []}]}]}, {"name": "CT", "value": "CT", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Bridgeport", "value": "NOAM-US-CT-BR", - "locationOptions": []}, {"name": "Hartford", "value": "NOAM-US-CT-HA", "locationOptions": - []}]}]}, {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", - "locationOptions": []}]}]}, {"name": "FL", "value": "FL", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Cape Coral", - "value": "NOAM-US-FL-CC", "locationOptions": []}, {"name": "Daytona Beach", - "value": "NOAM-US-FL-DB", "locationOptions": []}, {"name": "Gainesville", "value": - "NOAM-US-FL-GA", "locationOptions": []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", - "locationOptions": []}, {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": - []}, {"name": "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": - "Orlando", "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port - St Lucie", "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", - "value": "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": - "NOAM-US-FL-TA", "locationOptions": []}, {"name": "West Palm Beach", "value": - "NOAM-US-FL-WP", "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Albany", "value": - "NOAM-US-GA-AL", "locationOptions": []}, {"name": "Atlanta", "value": "NOAM-US-GA-AT", - "locationOptions": []}, {"name": "Augusta", "value": "NOAM-US-GA-AU", "locationOptions": - []}, {"name": "Macon", "value": "NOAM-US-GA-MA", "locationOptions": []}, {"name": - "Savannah", "value": "NOAM-US-GA-SA", "locationOptions": []}]}]}, {"name": "HI", - "value": "HI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Honolulu", "value": "NOAM-US-HI-HO", "locationOptions": - []}]}]}, {"name": "IA", "value": "IA", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Cedar Rapids", "value": "NOAM-US-IA-CR", - "locationOptions": []}, {"name": "Davenport", "value": "NOAM-US-IA-DA", "locationOptions": - []}, {"name": "Mason City", "value": "NOAM-US-IA-MC", "locationOptions": []}]}]}, - {"name": "ID", "value": "ID", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Boise", "value": "NOAM-US-ID-BO", "locationOptions": - []}]}]}, {"name": "IL", "value": "IL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Alton", "value": "NOAM-US-IL-AL", - "locationOptions": []}, {"name": "Aurora", "value": "NOAM-US-IL-AU", "locationOptions": - []}, {"name": "Big Rock", "value": "NOAM-US-IL-BK", "locationOptions": []}, - {"name": "Champaign", "value": "NOAM-US-IL-CA", "locationOptions": []}, {"name": - "Chicago", "value": "NOAM-US-IL-CH", "locationOptions": []}, {"name": "Cicero", - "value": "NOAM-US-IL-CI", "locationOptions": []}, {"name": "Rock Island", "value": - "NOAM-US-IL-RI", "locationOptions": []}, {"name": "Waukegan", "value": "NOAM-US-IL-WK", - "locationOptions": []}]}]}, {"name": "IN", "value": "IN", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Evansville", - "value": "NOAM-US-IN-EV", "locationOptions": []}, {"name": "Fort Wayne", "value": - "NOAM-US-IN-FW", "locationOptions": []}, {"name": "Gary", "value": "NOAM-US-IN-GA", - "locationOptions": []}, {"name": "Indianapolis", "value": "NOAM-US-IN-IN", "locationOptions": - []}, {"name": "South Bend", "value": "NOAM-US-IN-SB", "locationOptions": []}]}]}, - {"name": "KS", "value": "KS", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Dodge City", "value": "NOAM-US-KS-DC", "locationOptions": - []}, {"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": []}, - {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": - "Wichita", "value": "NOAM-US-KS-WI", "locationOptions": []}]}]}, {"name": "KY", - "value": "KY", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Ashland", "value": "NOAM-US-KY-AS", "locationOptions": - []}, {"name": "Lexington", "value": "NOAM-US-KY-LE", "locationOptions": []}, - {"name": "Louisville", "value": "NOAM-US-KY-LO", "locationOptions": []}]}]}, - {"name": "LA", "value": "LA", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Baton Rouge", "value": "NOAM-US-LA-BR", "locationOptions": - []}, {"name": "Lafayette", "value": "NOAM-US-LA-LA", "locationOptions": []}, - {"name": "New Orleans", "value": "NOAM-US-LA-NO", "locationOptions": []}, {"name": - "Shreveport", "value": "NOAM-US-LA-SH", "locationOptions": []}]}]}, {"name": - "MA", "value": "MA", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Chicopee", "value": "NOAM-US-MA-CH", "locationOptions": - []}]}]}, {"name": "MD", "value": "MD", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Bethesda", "value": "NOAM-US-MD-BE", - "locationOptions": []}]}]}, {"name": "ME", "value": "ME", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Portland", "value": - "NOAM-US-ME-PO", "locationOptions": []}]}]}, {"name": "MI", "value": "MI", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Detroit", "value": - "NOAM-US-MI-DE", "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", - "locationOptions": []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": - []}, {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": - "Lansing", "value": "NOAM-US-MI-LA", "locationOptions": []}, {"name": "Saginaw", - "value": "NOAM-US-MI-SA", "locationOptions": []}, {"name": "Sault Ste Marie", - "value": "NOAM-US-MI-SS", "locationOptions": []}, {"name": "Troy", "value": - "NOAM-US-MI-TR", "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Alexandria", - "value": "NOAM-US-MN-AL", "locationOptions": []}, {"name": "Duluth", "value": - "NOAM-US-MN-DU", "locationOptions": []}, {"name": "Minneapolis", "value": "NOAM-US-MN-MI", - "locationOptions": []}, {"name": "St. Paul", "value": "NOAM-US-MN-SP", "locationOptions": - []}]}]}, {"name": "MO", "value": "MO", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Columbia", "value": "NOAM-US-MO-CO", - "locationOptions": []}, {"name": "Kansas City", "value": "NOAM-US-MO-KS", "locationOptions": - []}, {"name": "Marshall", "value": "NOAM-US-MO-MA", "locationOptions": []}, - {"name": "Springfield", "value": "NOAM-US-MO-SP", "locationOptions": []}, {"name": - "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": []}, {"name": "St. - Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, {"name": "MS", - "value": "MS", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": - []}, {"name": "Jackson", "value": "NOAM-US-MS-JA", "locationOptions": []}, {"name": - "Starkville", "value": "NOAM-US-MS-ST", "locationOptions": []}]}]}, {"name": - "MT", "value": "MT", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Billings", "value": "NOAM-US-MT-BI", "locationOptions": - []}]}]}, {"name": "NC", "value": "NC", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Charlotte", "value": "NOAM-US-NC-CH", - "locationOptions": []}, {"name": "Fayetteville", "value": "NOAM-US-NC-FA", "locationOptions": - []}, {"name": "Greensboro", "value": "NOAM-US-NC-GR", "locationOptions": []}, - {"name": "Raleigh", "value": "NOAM-US-NC-RA", "locationOptions": []}]}]}, {"name": - "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": - []}, {"name": "Omaha", "value": "NOAM-US-NE-OM", "locationOptions": []}]}]}, - {"name": "NJ", "value": "NJ", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Atlantic City", "value": "NOAM-US-NJ-AC", "locationOptions": - []}, {"name": "Camden", "value": "NOAM-US-NJ-CA", "locationOptions": []}, {"name": - "Newark", "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", - "value": "NM", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": - []}]}]}, {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", - "locationOptions": []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": - []}]}]}, {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", - "locationOptions": []}, {"name": "Brentwood", "value": "NOAM-US-NY-BR", "locationOptions": - []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": []}, {"name": - "Hempstead", "value": "NOAM-US-NY-HE", "locationOptions": []}, {"name": "Kingston", - "value": "NOAM-US-NY-KI", "locationOptions": []}, {"name": "New York City", - "value": "NOAM-US-NY-NY", "locationOptions": []}, {"name": "Niagara Falls", - "value": "NOAM-US-NY-NF", "locationOptions": []}, {"name": "Rochester", "value": - "NOAM-US-NY-RO", "locationOptions": []}, {"name": "Syracuse", "value": "NOAM-US-NY-SY", - "locationOptions": []}, {"name": "Yonkers", "value": "NOAM-US-NY-YO", "locationOptions": - []}]}]}, {"name": "OH", "value": "OH", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Akron", "value": "NOAM-US-OH-AK", - "locationOptions": []}, {"name": "Cincinnati", "value": "NOAM-US-OH-CI", "locationOptions": - []}, {"name": "Columbus", "value": "NOAM-US-OH-CO", "locationOptions": []}, - {"name": "Dayton", "value": "NOAM-US-OH-DA", "locationOptions": []}, {"name": - "Toledo", "value": "NOAM-US-OH-TO", "locationOptions": []}]}]}, {"name": "OK", - "value": "OK", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Lawton", "value": "NOAM-US-OK-LA", "locationOptions": - []}, {"name": "Oklahoma City", "value": "NOAM-US-OK-OC", "locationOptions": - []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", "locationOptions": []}]}]}, - {"name": "PA", "value": "PA", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Erie", "value": "NOAM-US-PA-ER", "locationOptions": - []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", "locationOptions": []}, - {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": []}, {"name": - "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, {"name": "Pittsburgh", - "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": "Scranton", "value": - "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", "value": "RI", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Providence", - "value": "NOAM-US-RI-PR", "locationOptions": []}]}]}, {"name": "SC", "value": - "SC", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-SC-CH", "locationOptions": []}, {"name": - "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": []}, {"name": "Greenville", - "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, {"name": "SD", "value": - "SD", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": []}]}]}, - {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", "locationOptions": - []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": []}, - {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": - "Knoxville", "value": "NOAM-US-TN-KN", "locationOptions": []}, {"name": "Memphis", - "value": "NOAM-US-TN-ME", "locationOptions": []}, {"name": "Nashville", "value": - "NOAM-US-TN-NA", "locationOptions": []}]}]}, {"name": "TX", "value": "TX", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Austin", "value": - "NOAM-US-TX-AU", "locationOptions": []}, {"name": "Corpus Christi", "value": - "NOAM-US-TX-CC", "locationOptions": []}, {"name": "Denton", "value": "NOAM-US-TX-DE", - "locationOptions": []}, {"name": "El Paso", "value": "NOAM-US-TX-EP", "locationOptions": - []}, {"name": "Fort Worth", "value": "NOAM-US-TX-FW", "locationOptions": []}, - {"name": "Galveston", "value": "NOAM-US-TX-GA", "locationOptions": []}, {"name": - "Houston", "value": "NOAM-US-TX-HO", "locationOptions": []}, {"name": "Lubbock", - "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": "Odessa", "value": - "NOAM-US-TX-OD", "locationOptions": []}, {"name": "Tyler", "value": "NOAM-US-TX-TY", - "locationOptions": []}]}]}, {"name": "UT", "value": "UT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Salt Lake City", - "value": "NOAM-US-UT-SL", "locationOptions": []}, {"name": "St. George", "value": - "NOAM-US-UT-SG", "locationOptions": []}]}]}, {"name": "VA", "value": "VA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lynchburg", - "value": "NOAM-US-VA-LY", "locationOptions": []}, {"name": "Richmond", "value": - "NOAM-US-VA-RI", "locationOptions": []}, {"name": "Virginia Beach", "value": - "NOAM-US-VA-VB", "locationOptions": []}]}]}, {"name": "VT", "value": "VT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Bennington", - "value": "NOAM-US-VT-BE", "locationOptions": []}, {"name": "Brattleboro", "value": - "NOAM-US-VT-BR", "locationOptions": []}, {"name": "Burlington", "value": "NOAM-US-VT-BU", - "locationOptions": []}, {"name": "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": - []}, {"name": "Montpelier", "value": "NOAM-US-VT-MP", "locationOptions": []}, - {"name": "Newport", "value": "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": - "WI", "value": "WI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Green Bay", "value": "NOAM-US-WI-GB", "locationOptions": - []}, {"name": "Kenosha", "value": "NOAM-US-WI-KE", "locationOptions": []}, {"name": - "Madison", "value": "NOAM-US-WI-MA", "locationOptions": []}, {"name": "Milwaukee", - "value": "NOAM-US-WI-MI", "locationOptions": []}]}]}, {"name": "WV", "value": - "WV", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-WV-CH", "locationOptions": []}]}]}, - {"name": "WY", "value": "WY", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Laramie", "value": "NOAM-US-WY-LA", "locationOptions": - []}]}]}]}}' + body: '{}' headers: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:34 GMT + - Sat, 10 Oct 2020 02:20:56 GMT ms-cv: - - TCixofN+fEuJbhQiyFlpQw.0 + - SWsAxe+vn0GF5Ffizlybqg.0 transfer-encoding: - chunked x-processing-time: - - 787ms + - 363ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml index 7f9cbf2b510..226dfb00a56 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:35 GMT + - Sat, 10 Oct 2020 02:20:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -24,13 +24,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:35 GMT + - Sat, 10 Oct 2020 02:20:56 GMT ms-cv: - - aDDYFuvWA0C5m8vxbQZa7g.0 + - AKJkjt3WB0+N3umK9iZGJQ.0 transfer-encoding: - chunked x-processing-time: - - 350ms + - 217ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_search_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_search_by_id.yaml index ffde5892579..e1237597874 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_search_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_search_by_id.yaml @@ -9,30 +9,30 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:36 GMT + - Sat, 10 Oct 2020 02:20:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "mysearch20200928", "createdAt": - "2020-09-28T19:51:03.7045074+00:00", "description": "mydescription", "phonePlanIds": + "2020-10-02T21:39:32.6878583+00:00", "description": "mydescription", "phonePlanIds": "sanitized", "areaCode": "area_code_for_search", "quantity": 1, "locationOptions": - [], "status": "Error", "phoneNumbers": "sanitized", "reservationExpiryDate": - "2020-09-28T20:07:15.1891834+00:00", "errorCode": 1011}' + [], "status": "Success", "phoneNumbers": "sanitized", "reservationExpiryDate": + "2020-10-02T21:55:47.9734151+00:00"}' headers: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:36 GMT + - Sat, 10 Oct 2020 02:20:57 GMT ms-cv: - - rR2LYefRZUqEC64QM4XUtA.0 + - TE1awVYhAEexWJhoVl3mDw.0 transfer-encoding: - chunked x-processing-time: - - 540ms + - 516ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml index e2dc5adaffd..dd6cebae84a 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:36 GMT + - Sat, 10 Oct 2020 02:20:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:36 GMT + - Sat, 10 Oct 2020 02:20:57 GMT ms-cv: - - ZrnIo+1IWUm2rr4BXwpD9Q.0 + - 4enCAZkq1UaVoBzlm6dERw.0 transfer-encoding: - chunked x-processing-time: - - 621ms + - 488ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml index 5a2fdf532df..3dec9e59772 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:37 GMT + - Sat, 10 Oct 2020 02:20:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:37 GMT + - Sat, 10 Oct 2020 02:20:58 GMT ms-cv: - - O7UjJU4tlkuR+ohvj2AJWw.0 + - HEzEhfO/E0eRWI661YSOdw.0 transfer-encoding: - chunked x-processing-time: - - 507ms + - 626ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml index b3b529132fe..00543561e60 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:38 GMT + - Sat, 10 Oct 2020 02:20:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -24,13 +24,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:39 GMT + - Sat, 10 Oct 2020 02:20:59 GMT ms-cv: - - lTXki58ix0GoWp1Q+s7suw.0 + - 72JW5GqLk0ih/GrpgDn3xw.0 transfer-encoding: - chunked x-processing-time: - - 747ms + - 519ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml index c64cf8f9b08..d8a99d1940a 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:39 GMT + - Sat, 10 Oct 2020 02:20:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:40 GMT + - Sat, 10 Oct 2020 02:21:00 GMT ms-cv: - - CV4dPbtIc0KVqCsKbegUFw.0 + - rPpJxCzir0eohyDFSE+FYw.0 transfer-encoding: - chunked x-processing-time: - - 600ms + - 576ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml index 4161b96c1d4..3887d3b6175 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 28 Sep 2020 20:52:40 GMT + - Sat, 10 Oct 2020 02:21:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:40 GMT + - Sat, 10 Oct 2020 02:21:00 GMT ms-cv: - - hM4twEJ1hkelj8JvXL9vbA.0 + - qdGAj/sHv0KYqHctxSYd6A.0 transfer-encoding: - chunked x-processing-time: - - 545ms + - 300ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_search.yaml index b0c435a5125..fb1eaa6448f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_search.yaml @@ -11,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 28 Sep 2020 21:05:56 GMT + - Sat, 10 Oct 2020 02:21:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id_to_purchase/purchase?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id/purchase?api-version=2020-07-20-preview1 response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Mon, 28 Sep 2020 21:05:56 GMT + - Sat, 10 Oct 2020 02:21:01 GMT ms-cv: - - xwaQWMyPXkmZISlt39/8sQ.0 + - O6R9+6lzSEK12k1Awk1E+Q.0 x-processing-time: - - 1104ms + - 257ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml index 6523c0d0d69..93dbbd8e2cf 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 02 Oct 2020 22:26:28 GMT + - Sat, 10 Oct 2020 02:21:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Oct 2020 22:26:27 GMT + - Sat, 10 Oct 2020 02:21:01 GMT ms-cv: - - NlxnpgC8uU2r3FctCKo4VA.0 + - E0nSh9NvQE+M0euiVHCmyg.0 transfer-encoding: - chunked x-processing-time: - - 735ms + - 583ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml index 2841aff8d50..08f9f25a569 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_search4864953": - {"add": []}}}''' + body: '{"phoneNumberCapabilitiesUpdate": "sanitized"}' headers: Accept: - application/json @@ -14,9 +13,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 20:52:41 GMT + - Sat, 10 Oct 2020 02:21:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -27,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 28 Sep 2020 20:52:42 GMT + - Sat, 10 Oct 2020 02:21:02 GMT ms-cv: - - 2wG6ECtNVUWh9yTw1e0F1Q.0 + - LQky+WQAKUeTfE/4lTMm7A.0 transfer-encoding: - chunked x-processing-time: - - 882ms + - 511ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_search.yaml index b1c09cffa12..bafc70a3ce1 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_search.yaml @@ -3,21 +3,21 @@ interactions: body: '' headers: Date: - - Mon, 28 Sep 2020 22:29:32 GMT + - Sat, 10 Oct 2020 02:21:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id/cancel?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id_to_cancel/cancel?api-version=2020-07-20-preview1 response: body: string: '' headers: content-length: '0' - date: Mon, 28 Sep 2020 22:29:33 GMT - ms-cv: Br5JTlNBNE66iA7S70L1xg.0 - x-processing-time: 894ms + date: Sat, 10 Oct 2020 02:21:02 GMT + ms-cv: S0C//fSJm0WSuLAGwi42LA.0 + x-processing-time: 265ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml index 54437a5a0e4..0688764e167 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml @@ -1,16 +1,16 @@ interactions: - request: - body: 'b''{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId", "azurePstnTargetId": "AzurePstnTargetId"}, "phoneNumber": "+1area_code_for_search4866306"}''' + body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": + "ApplicationId"}, "phoneNumber": "sanitized"}' headers: Content-Length: - - '168' + - '126' Content-Type: - application/json Date: - - Mon, 28 Sep 2020 23:36:20 GMT + - Sat, 10 Oct 2020 02:21:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: PATCH @@ -20,11 +20,11 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 28 Sep 2020 23:36:22 GMT - ms-cv: DaWW0P2dX0uW3zxujdXNZQ.0 - x-processing-time: 2855ms + date: Sat, 10 Oct 2020 02:21:03 GMT + ms-cv: taNkxvFkekSmhx7fbVz81Q.0 + x-processing-time: 404ms status: - code: 202 - message: Accepted + code: 200 + message: OK url: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration/configure?api-version=2020-07-20-preview1 version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml index e22e20d79e0..a68059b811f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: 'b''b\''{"displayName": "testsearch20200014", "description": "testsearch20200014", - "phonePlanIds": ["phone_plan_id"], "areaCode": "area_code_for_search", "quantity": - 1}\''''' + body: '{"displayName": "testsearch20200014", "description": "testsearch20200014", + "phonePlanIds": "sanitized", "areaCode": "area_code_for_search", "quantity": + 1}' headers: Accept: - application/json @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 23:41:10 GMT + - Sat, 10 Oct 2020 02:21:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -22,10 +22,10 @@ interactions: body: '{"searchId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:41:11 GMT - ms-cv: GgMka9ljgU6YI/sJAkla6A.0 + date: Sat, 10 Oct 2020 02:21:04 GMT + ms-cv: RI2FgkAsnU6ZIlo95iZD8Q.0 transfer-encoding: chunked - x-processing-time: 2452ms + x-processing-time: 913ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml index c7b1ea1b95c..b51c22af2ba 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml @@ -9,21 +9,22 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 23:36:23 GMT + - Sat, 10 Oct 2020 02:21:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/areacodes?locationType=NotRequired&phonePlanId=phone_plan_id_area_codes&api-version=2020-07-20-preview1 response: - body: '{"primaryAreaCodes": ["833"], "secondaryAreaCodes": [], "nextLink": null}' + body: '{"primaryAreaCodes": ["area_code_for_search"], "secondaryAreaCodes": [], + "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:24 GMT - ms-cv: xH2LI3yX8Uq7vldnjshP0g.0 + date: Sat, 10 Oct 2020 02:21:05 GMT + ms-cv: I53JrROCrkSUACOjmyWRsQ.0 transfer-encoding: chunked - x-processing-time: 762ms + x-processing-time: 207ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml index 5bb55438d9d..386f90e2746 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:24 GMT + - Sat, 10 Oct 2020 02:21:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -17,10 +17,10 @@ interactions: "capabilitiesUpdateStatus": "Complete", "phoneNumberCapabilitiesUpdates": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:25 GMT - ms-cv: LDKKttbI10OoFujUhG/HEw.0 + date: Sat, 10 Oct 2020 02:21:05 GMT + ms-cv: q8VKe/j4hEmPFQFlGBSx5A.0 transfer-encoding: chunked - x-processing-time: 936ms + x-processing-time: 298ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml index 28d48027826..3f4673ba9e4 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumber": "+1area_code_for_search4866306"}''' + body: '{"phoneNumber": "sanitized"}' headers: Accept: - application/json @@ -9,51 +9,22 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 23:36:26 GMT + - Sat, 10 Oct 2020 02:21:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 - response: - body: - string: '' - headers: - content-length: '0' - date: Mon, 28 Sep 2020 23:36:35 GMT - ms-cv: qMAd5RJcGUScTUQawpDqaA.0 - x-processing-time: 9353ms - status: - code: 500 - message: Internal Server Error - url: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 -- request: - body: 'b''{"phoneNumber": "+1area_code_for_search4866306"}''' - headers: - Accept: - - application/json - Content-Length: - - '31' - Content-Type: - - application/json - Date: - - Mon, 28 Sep 2020 23:36:35 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 response: body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId", "azurePstnTargetId": "AzurePstnTargetId"}}' + "ApplicationId"}}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:40 GMT - ms-cv: oSC8jj4poEK70ADvTtkOAA.0 + date: Sat, 10 Oct 2020 02:21:05 GMT + ms-cv: XdJTvKs4skGpyVev2IjJMQ.0 transfer-encoding: chunked - x-processing-time: 5461ms + x-processing-time: 183ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml index 647556757ed..139d6ea559e 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml @@ -5,234 +5,21 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:41 GMT + - Sat, 10 Oct 2020 02:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries/US/phoneplangroups/phone_plan_group_id/phoneplans/phone_plan_id/locationoptions?locale=en-US&api-version=2020-07-20-preview1 response: - body: '{"locationOptions": {"labelId": "state", "labelName": "State", "options": - [{"name": "AK", "value": "AK", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Anchorage", "value": "NOAM-US-AK-AN", "locationOptions": - []}]}]}, {"name": "AL", "value": "AL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Birmingham", "value": "NOAM-US-AL-BI", - "locationOptions": []}, {"name": "Huntsville", "value": "NOAM-US-AL-HN", "locationOptions": - []}, {"name": "Mobile", "value": "NOAM-US-AL-MO", "locationOptions": []}, {"name": - "Montgomery", "value": "NOAM-US-AL-MN", "locationOptions": []}]}]}, {"name": - "AR", "value": "AR", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Fort Smith", "value": "NOAM-US-AR-FS", "locationOptions": - []}, {"name": "Jonesboro", "value": "NOAM-US-AR-JO", "locationOptions": []}, - {"name": "Little Rock", "value": "NOAM-US-AR-LR", "locationOptions": []}]}]}, - {"name": "AZ", "value": "AZ", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Phoenix", "value": "NOAM-US-AZ-PH", "locationOptions": - []}]}]}, {"name": "CA", "value": "CA", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Concord", "value": "NOAM-US-CA-CO", - "locationOptions": []}, {"name": "Fresno", "value": "NOAM-US-CA-FR", "locationOptions": - []}, {"name": "Irvine", "value": "NOAM-US-CA-IR", "locationOptions": []}, {"name": - "Los Angeles", "value": "NOAM-US-CA-LA", "locationOptions": []}, {"name": "Riverside", - "value": "NOAM-US-CA-RI", "locationOptions": []}, {"name": "Sacramento", "value": - "NOAM-US-CA-SA", "locationOptions": []}, {"name": "Salinas", "value": "NOAM-US-CA-SL", - "locationOptions": []}, {"name": "San Diego", "value": "NOAM-US-CA-SD", "locationOptions": - []}, {"name": "San Jose", "value": "NOAM-US-CA-SJ", "locationOptions": []}, - {"name": "Santa Barbara", "value": "NOAM-US-CA-SB", "locationOptions": []}, - {"name": "Santa Clarita", "value": "NOAM-US-CA-SC", "locationOptions": []}, - {"name": "Santa Rosa", "value": "NOAM-US-CA-SR", "locationOptions": []}, {"name": - "Stockton", "value": "NOAM-US-CA-ST", "locationOptions": []}]}]}, {"name": "CL", - "value": "CL", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Washington DC", "value": "NOAM-US-CL-DC", "locationOptions": - []}]}]}, {"name": "CO", "value": "CO", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Denver", "value": "NOAM-US-CO-DE", - "locationOptions": []}, {"name": "Grand Junction", "value": "NOAM-US-CO-GJ", - "locationOptions": []}, {"name": "Pueblo", "value": "NOAM-US-CO-PU", "locationOptions": - []}]}]}, {"name": "CT", "value": "CT", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Bridgeport", "value": "NOAM-US-CT-BR", - "locationOptions": []}, {"name": "Hartford", "value": "NOAM-US-CT-HA", "locationOptions": - []}]}]}, {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", - "locationOptions": []}]}]}, {"name": "FL", "value": "FL", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Cape Coral", - "value": "NOAM-US-FL-CC", "locationOptions": []}, {"name": "Gainesville", "value": - "NOAM-US-FL-GA", "locationOptions": []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", - "locationOptions": []}, {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": - []}, {"name": "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": - "Orlando", "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port - St Lucie", "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", - "value": "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": - "NOAM-US-FL-TA", "locationOptions": []}, {"name": "West Palm Beach", "value": - "NOAM-US-FL-WP", "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Albany", "value": - "NOAM-US-GA-AL", "locationOptions": []}, {"name": "Atlanta", "value": "NOAM-US-GA-AT", - "locationOptions": []}, {"name": "Augusta", "value": "NOAM-US-GA-AU", "locationOptions": - []}, {"name": "Macon", "value": "NOAM-US-GA-MA", "locationOptions": []}, {"name": - "Savannah", "value": "NOAM-US-GA-SA", "locationOptions": []}]}]}, {"name": "HI", - "value": "HI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Honolulu", "value": "NOAM-US-HI-HO", "locationOptions": - []}]}]}, {"name": "IA", "value": "IA", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Cedar Rapids", "value": "NOAM-US-IA-CR", - "locationOptions": []}, {"name": "Davenport", "value": "NOAM-US-IA-DA", "locationOptions": - []}, {"name": "Mason City", "value": "NOAM-US-IA-MC", "locationOptions": []}]}]}, - {"name": "ID", "value": "ID", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Boise", "value": "NOAM-US-ID-BO", "locationOptions": - []}]}]}, {"name": "IL", "value": "IL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Alton", "value": "NOAM-US-IL-AL", - "locationOptions": []}, {"name": "Aurora", "value": "NOAM-US-IL-AU", "locationOptions": - []}, {"name": "Big Rock", "value": "NOAM-US-IL-BK", "locationOptions": []}, - {"name": "Champaign", "value": "NOAM-US-IL-CA", "locationOptions": []}, {"name": - "Chicago", "value": "NOAM-US-IL-CH", "locationOptions": []}, {"name": "Cicero", - "value": "NOAM-US-IL-CI", "locationOptions": []}, {"name": "Rock Island", "value": - "NOAM-US-IL-RI", "locationOptions": []}, {"name": "Waukegan", "value": "NOAM-US-IL-WK", - "locationOptions": []}]}]}, {"name": "IN", "value": "IN", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Evansville", - "value": "NOAM-US-IN-EV", "locationOptions": []}, {"name": "Fort Wayne", "value": - "NOAM-US-IN-FW", "locationOptions": []}, {"name": "Gary", "value": "NOAM-US-IN-GA", - "locationOptions": []}, {"name": "Indianapolis", "value": "NOAM-US-IN-IN", "locationOptions": - []}, {"name": "South Bend", "value": "NOAM-US-IN-SB", "locationOptions": []}]}]}, - {"name": "KS", "value": "KS", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Dodge City", "value": "NOAM-US-KS-DC", "locationOptions": - []}, {"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": []}, - {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": - "Wichita", "value": "NOAM-US-KS-WI", "locationOptions": []}]}]}, {"name": "KY", - "value": "KY", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Ashland", "value": "NOAM-US-KY-AS", "locationOptions": - []}, {"name": "Lexington", "value": "NOAM-US-KY-LE", "locationOptions": []}, - {"name": "Louisville", "value": "NOAM-US-KY-LO", "locationOptions": []}]}]}, - {"name": "LA", "value": "LA", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Baton Rouge", "value": "NOAM-US-LA-BR", "locationOptions": - []}, {"name": "Lafayette", "value": "NOAM-US-LA-LA", "locationOptions": []}, - {"name": "New Orleans", "value": "NOAM-US-LA-NO", "locationOptions": []}, {"name": - "Shreveport", "value": "NOAM-US-LA-SH", "locationOptions": []}]}]}, {"name": - "MA", "value": "MA", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Chicopee", "value": "NOAM-US-MA-CH", "locationOptions": - []}]}]}, {"name": "MD", "value": "MD", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Bethesda", "value": "NOAM-US-MD-BE", - "locationOptions": []}]}]}, {"name": "ME", "value": "ME", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Portland", "value": - "NOAM-US-ME-PO", "locationOptions": []}]}]}, {"name": "MI", "value": "MI", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Detroit", "value": - "NOAM-US-MI-DE", "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", - "locationOptions": []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": - []}, {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": - "Lansing", "value": "NOAM-US-MI-LA", "locationOptions": []}, {"name": "Saginaw", - "value": "NOAM-US-MI-SA", "locationOptions": []}, {"name": "Sault Ste Marie", - "value": "NOAM-US-MI-SS", "locationOptions": []}, {"name": "Troy", "value": - "NOAM-US-MI-TR", "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Alexandria", - "value": "NOAM-US-MN-AL", "locationOptions": []}, {"name": "Duluth", "value": - "NOAM-US-MN-DU", "locationOptions": []}, {"name": "Minneapolis", "value": "NOAM-US-MN-MI", - "locationOptions": []}, {"name": "St. Paul", "value": "NOAM-US-MN-SP", "locationOptions": - []}]}]}, {"name": "MO", "value": "MO", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Columbia", "value": "NOAM-US-MO-CO", - "locationOptions": []}, {"name": "Kansas City", "value": "NOAM-US-MO-KS", "locationOptions": - []}, {"name": "Marshall", "value": "NOAM-US-MO-MA", "locationOptions": []}, - {"name": "Springfield", "value": "NOAM-US-MO-SP", "locationOptions": []}, {"name": - "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": []}, {"name": "St. - Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, {"name": "MS", - "value": "MS", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": - []}, {"name": "Jackson", "value": "NOAM-US-MS-JA", "locationOptions": []}, {"name": - "Starkville", "value": "NOAM-US-MS-ST", "locationOptions": []}]}]}, {"name": - "MT", "value": "MT", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Billings", "value": "NOAM-US-MT-BI", "locationOptions": - []}]}]}, {"name": "NC", "value": "NC", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Charlotte", "value": "NOAM-US-NC-CH", - "locationOptions": []}, {"name": "Fayetteville", "value": "NOAM-US-NC-FA", "locationOptions": - []}, {"name": "Greensboro", "value": "NOAM-US-NC-GR", "locationOptions": []}, - {"name": "Raleigh", "value": "NOAM-US-NC-RA", "locationOptions": []}]}]}, {"name": - "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": - []}, {"name": "Omaha", "value": "NOAM-US-NE-OM", "locationOptions": []}]}]}, - {"name": "NJ", "value": "NJ", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Atlantic City", "value": "NOAM-US-NJ-AC", "locationOptions": - []}, {"name": "Camden", "value": "NOAM-US-NJ-CA", "locationOptions": []}, {"name": - "Newark", "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", - "value": "NM", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": - []}]}]}, {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", - "locationOptions": []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": - []}]}]}, {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", - "locationOptions": []}, {"name": "Brentwood", "value": "NOAM-US-NY-BR", "locationOptions": - []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": []}, {"name": - "Hempstead", "value": "NOAM-US-NY-HE", "locationOptions": []}, {"name": "Kingston", - "value": "NOAM-US-NY-KI", "locationOptions": []}, {"name": "New York City", - "value": "NOAM-US-NY-NY", "locationOptions": []}, {"name": "Niagara Falls", - "value": "NOAM-US-NY-NF", "locationOptions": []}, {"name": "Rochester", "value": - "NOAM-US-NY-RO", "locationOptions": []}, {"name": "Syracuse", "value": "NOAM-US-NY-SY", - "locationOptions": []}, {"name": "Yonkers", "value": "NOAM-US-NY-YO", "locationOptions": - []}]}]}, {"name": "OH", "value": "OH", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Akron", "value": "NOAM-US-OH-AK", - "locationOptions": []}, {"name": "Cincinnati", "value": "NOAM-US-OH-CI", "locationOptions": - []}, {"name": "Columbus", "value": "NOAM-US-OH-CO", "locationOptions": []}, - {"name": "Dayton", "value": "NOAM-US-OH-DA", "locationOptions": []}, {"name": - "Toledo", "value": "NOAM-US-OH-TO", "locationOptions": []}]}]}, {"name": "OK", - "value": "OK", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Lawton", "value": "NOAM-US-OK-LA", "locationOptions": - []}, {"name": "Oklahoma City", "value": "NOAM-US-OK-OC", "locationOptions": - []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", "locationOptions": []}]}]}, - {"name": "PA", "value": "PA", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Erie", "value": "NOAM-US-PA-ER", "locationOptions": - []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", "locationOptions": []}, - {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": []}, {"name": - "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, {"name": "Pittsburgh", - "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": "Scranton", "value": - "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", "value": "RI", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Providence", - "value": "NOAM-US-RI-PR", "locationOptions": []}]}]}, {"name": "SC", "value": - "SC", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-SC-CH", "locationOptions": []}, {"name": - "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": []}, {"name": "Greenville", - "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, {"name": "SD", "value": - "SD", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": []}]}]}, - {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", "locationOptions": - []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": []}, - {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": - "Knoxville", "value": "NOAM-US-TN-KN", "locationOptions": []}, {"name": "Memphis", - "value": "NOAM-US-TN-ME", "locationOptions": []}, {"name": "Nashville", "value": - "NOAM-US-TN-NA", "locationOptions": []}]}]}, {"name": "TX", "value": "TX", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Austin", "value": - "NOAM-US-TX-AU", "locationOptions": []}, {"name": "Corpus Christi", "value": - "NOAM-US-TX-CC", "locationOptions": []}, {"name": "Denton", "value": "NOAM-US-TX-DE", - "locationOptions": []}, {"name": "El Paso", "value": "NOAM-US-TX-EP", "locationOptions": - []}, {"name": "Fort Worth", "value": "NOAM-US-TX-FW", "locationOptions": []}, - {"name": "Galveston", "value": "NOAM-US-TX-GA", "locationOptions": []}, {"name": - "Houston", "value": "NOAM-US-TX-HO", "locationOptions": []}, {"name": "Lubbock", - "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": "Odessa", "value": - "NOAM-US-TX-OD", "locationOptions": []}, {"name": "Tyler", "value": "NOAM-US-TX-TY", - "locationOptions": []}]}]}, {"name": "UT", "value": "UT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Salt Lake City", - "value": "NOAM-US-UT-SL", "locationOptions": []}, {"name": "St. George", "value": - "NOAM-US-UT-SG", "locationOptions": []}]}]}, {"name": "VA", "value": "VA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lynchburg", - "value": "NOAM-US-VA-LY", "locationOptions": []}, {"name": "Richmond", "value": - "NOAM-US-VA-RI", "locationOptions": []}, {"name": "Virginia Beach", "value": - "NOAM-US-VA-VB", "locationOptions": []}]}]}, {"name": "VT", "value": "VT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Bennington", - "value": "NOAM-US-VT-BE", "locationOptions": []}, {"name": "Brattleboro", "value": - "NOAM-US-VT-BR", "locationOptions": []}, {"name": "Burlington", "value": "NOAM-US-VT-BU", - "locationOptions": []}, {"name": "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": - []}, {"name": "Montpelier", "value": "NOAM-US-VT-MP", "locationOptions": []}, - {"name": "Newport", "value": "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": - "WI", "value": "WI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Green Bay", "value": "NOAM-US-WI-GB", "locationOptions": - []}, {"name": "Kenosha", "value": "NOAM-US-WI-KE", "locationOptions": []}, {"name": - "Madison", "value": "NOAM-US-WI-MA", "locationOptions": []}, {"name": "Milwaukee", - "value": "NOAM-US-WI-MI", "locationOptions": []}]}]}, {"name": "WV", "value": - "WV", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-WV-CH", "locationOptions": []}]}]}, - {"name": "WY", "value": "WY", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Laramie", "value": "NOAM-US-WY-LA", "locationOptions": - []}]}]}]}}' + body: '{}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:41 GMT - ms-cv: 8nUq6GVatEacy/p8kiqRCw.0 + date: Sat, 10 Oct 2020 02:21:06 GMT + ms-cv: axw5l9pmu0WUpVBNnGlKTw.0 transfer-encoding: chunked - x-processing-time: 686ms + x-processing-time: 291ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml index 8c436e502d7..36f7f97e09e 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:42 GMT + - Sat, 10 Oct 2020 02:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -18,10 +18,10 @@ interactions: "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:42 GMT - ms-cv: yVEMC2mXsEyHauZmq0ZFPA.0 + date: Sat, 10 Oct 2020 02:21:06 GMT + ms-cv: hTIL6w4K+kKpJD/7UX86qA.0 transfer-encoding: chunked - x-processing-time: 459ms + x-processing-time: 184ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_search_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_search_by_id.yaml index 2ca06363cb9..1388e70652f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_search_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_search_by_id.yaml @@ -5,25 +5,25 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:43 GMT + - Sat, 10 Oct 2020 02:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "mysearch20200928", "createdAt": - "2020-09-28T23:34:32.3360015+00:00", "description": "mydescription", "phonePlanIds": + "2020-10-02T21:39:32.6878583+00:00", "description": "mydescription", "phonePlanIds": "sanitized", "areaCode": "area_code_for_search", "quantity": 1, "locationOptions": - [], "status": "Reserved", "phoneNumbers": "sanitized", "reservationExpiryDate": - "2020-09-28T23:50:49.3839544+00:00"}' + [], "status": "Success", "phoneNumbers": "sanitized", "reservationExpiryDate": + "2020-10-02T21:55:47.9734151+00:00"}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:43 GMT - ms-cv: P1zGoqpgT06fkeq8C6+pcw.0 + date: Sat, 10 Oct 2020 02:21:06 GMT + ms-cv: KwuxOCXq3UiR9T6nZAR1dg.0 transfer-encoding: chunked - x-processing-time: 742ms + x-processing-time: 285ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml index d7800f27b06..7c096b32221 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:44 GMT + - Sat, 10 Oct 2020 02:21:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -16,10 +16,10 @@ interactions: body: '{"phoneNumbers": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:44 GMT - ms-cv: EH2E1Zka+EGFjbPr6TUNYA.0 + date: Sat, 10 Oct 2020 02:21:07 GMT + ms-cv: 5fxLGNaR30eSY8ZpHa2Gvg.0 transfer-encoding: chunked - x-processing-time: 595ms + x-processing-time: 388ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml index aa78b029dec..0b1d2f0cb58 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:44 GMT + - Sat, 10 Oct 2020 02:21:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -16,10 +16,10 @@ interactions: body: '{"entities": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:45 GMT - ms-cv: II5poJgvcUGGyAE6o/9qOA.0 + date: Sat, 10 Oct 2020 02:21:07 GMT + ms-cv: Gz9tWco3c0uHd7aSpT3jTA.0 transfer-encoding: chunked - x-processing-time: 706ms + x-processing-time: 280ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml index c97cec973db..65b536aaae7 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:45 GMT + - Sat, 10 Oct 2020 02:21:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -18,10 +18,10 @@ interactions: "US"}], "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:46 GMT - ms-cv: CVi9HTPzcEeEqH7obRf9tA.0 + date: Sat, 10 Oct 2020 02:21:08 GMT + ms-cv: gF9777XWbESPdcNTvBiS3A.0 transfer-encoding: chunked - x-processing-time: 901ms + x-processing-time: 425ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml index 1138d961658..f7b576ae26f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:47 GMT + - Sat, 10 Oct 2020 02:21:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -16,10 +16,10 @@ interactions: body: '{"phonePlanGroups": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:47 GMT - ms-cv: 2JfFR8NjR06p3+cz6Rcc4w.0 + date: Sat, 10 Oct 2020 02:21:08 GMT + ms-cv: Vw2Iqu08skG2v/O74FY9yw.0 transfer-encoding: chunked - x-processing-time: 519ms + x-processing-time: 275ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml index 23f01523439..d0ba51d8a1a 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json Date: - - Mon, 28 Sep 2020 23:36:48 GMT + - Sat, 10 Oct 2020 02:21:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: GET @@ -16,10 +16,10 @@ interactions: body: '{"phonePlans": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:48 GMT - ms-cv: qCvIQBx7mEev7YmmcSTSPQ.0 + date: Sat, 10 Oct 2020 02:21:08 GMT + ms-cv: LYylBTuge0eRsiK0bkQK4Q.0 transfer-encoding: chunked - x-processing-time: 583ms + x-processing-time: 347ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_search.yaml index 57b89ebc154..27bc4646cbb 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_search.yaml @@ -3,21 +3,21 @@ interactions: body: '' headers: Date: - - Mon, 28 Sep 2020 23:23:44 GMT + - Sat, 10 Oct 2020 02:21:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id_to_purchase/purchase?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/search_id/purchase?api-version=2020-07-20-preview1 response: body: string: '' headers: content-length: '0' - date: Mon, 28 Sep 2020 23:23:45 GMT - ms-cv: vznK/aE7iECofyT07WWRFQ.0 - x-processing-time: 1402ms + date: Sat, 10 Oct 2020 02:21:09 GMT + ms-cv: Wlw8BZbhUEKUs4LIyPXejA.0 + x-processing-time: 257ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml index 555ece0bf35..c50055ecdc0 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 02 Oct 2020 22:24:33 GMT + - Sat, 10 Oct 2020 02:21:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -20,10 +20,10 @@ interactions: body: '{"releaseId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Fri, 02 Oct 2020 22:24:32 GMT - ms-cv: m6zSFyuKqkaYNOWKqeSZRg.0 + date: Sat, 10 Oct 2020 02:21:09 GMT + ms-cv: euIs+uths0yhC+BHIvQaTA.0 transfer-encoding: chunked - x-processing-time: 606ms + x-processing-time: 592ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml index d851620517b..661fef209e1 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_search4866306": - {"add": []}}}''' + body: '{"phoneNumberCapabilitiesUpdate": "sanitized"}' headers: Accept: - application/json @@ -10,9 +9,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 28 Sep 2020 23:36:48 GMT + - Sat, 10 Oct 2020 02:21:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.8.5 (Linux-5.4.0-48-generic-x86_64-with-glibc2.29) x-ms-return-client-request-id: - 'true' method: POST @@ -21,10 +20,10 @@ interactions: body: '{"capabilitiesUpdateId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Mon, 28 Sep 2020 23:36:49 GMT - ms-cv: 6rr7snA3ek6iPySfBZZvHw.0 + date: Sat, 10 Oct 2020 02:21:10 GMT + ms-cv: ImNidcA74kiZ6Vx2XZs9bA.0 transfer-encoding: chunked - x-processing-time: 1177ms + x-processing-time: 556ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py new file mode 100644 index 00000000000..3d254750f83 --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client.py @@ -0,0 +1,71 @@ +# coding: utf-8 +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +import pytest +from azure.communication.administration import CommunicationIdentityClient +from _shared.helper import URIIdentityReplacer +from _shared.testcase import ( + CommunicationTestCase, + BodyReplacerProcessor +) +from devtools_testutils import ResourceGroupPreparer +from _shared.communication_service_preparer import CommunicationServicePreparer + +class CommunicationIdentityClientTest(CommunicationTestCase): + def setUp(self): + super(CommunicationIdentityClientTest, self).setUp() + self.recording_processors.extend([ + BodyReplacerProcessor(keys=["id", "token"]), + URIIdentityReplacer()]) + + @pytest.mark.live_test_only + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + def test_create_user(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + connection_string) + user = identity_client.create_user() + + assert user.identifier is not None + + @pytest.mark.live_test_only + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + def test_issue_token(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + connection_string) + user = identity_client.create_user() + + token_response = identity_client.issue_token(user, scopes=["chat"]) + + assert user.identifier is not None + assert token_response.token is not None + + @pytest.mark.live_test_only + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + def test_revoke_tokens(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + connection_string) + user = identity_client.create_user() + + token_response = identity_client.issue_token(user, scopes=["chat"]) + identity_client.revoke_tokens(user) + + assert user.identifier is not None + assert token_response.token is not None + + @pytest.mark.live_test_only + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + def test_delete_user(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + connection_string) + user = identity_client.create_user() + + identity_client.delete_user(user) + + assert user.identifier is not None diff --git a/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py new file mode 100644 index 00000000000..f710e546a33 --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/test_communication_identity_client_async.py @@ -0,0 +1,75 @@ +# coding: utf-8 +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +import pytest +from azure.communication.administration.aio import CommunicationIdentityClient +from azure_devtools.scenario_tests import RecordingProcessor +from devtools_testutils import ResourceGroupPreparer +from _shared.helper import URIIdentityReplacer +from _shared.asynctestcase import AsyncCommunicationTestCase +from _shared.testcase import BodyReplacerProcessor +from _shared.communication_service_preparer import CommunicationServicePreparer + +class CommunicationIdentityClientTestAsync(AsyncCommunicationTestCase): + def setUp(self): + super(CommunicationIdentityClientTestAsync, self).setUp() + self.recording_processors.extend([ + BodyReplacerProcessor(keys=["id", "token"]), + URIIdentityReplacer()]) + + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + @pytest.mark.live_test_only + @pytest.mark.asyncio + @AsyncCommunicationTestCase.await_prepared_test + async def test_create_user(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + async with identity_client: + user = await identity_client.create_user() + + assert user.identifier is not None + + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + @pytest.mark.live_test_only + @pytest.mark.asyncio + @AsyncCommunicationTestCase.await_prepared_test + async def test_issue_token(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.issue_token(user, scopes=["chat"]) + + assert user.identifier is not None + assert token_response.token is not None + + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + @pytest.mark.live_test_only + @pytest.mark.asyncio + @AsyncCommunicationTestCase.await_prepared_test + async def test_revoke_tokens(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.issue_token(user, scopes=["chat"]) + await identity_client.revoke_tokens(user) + + assert user.identifier is not None + assert token_response.token is not None + + @ResourceGroupPreparer(random_name_enabled=True) + @CommunicationServicePreparer() + @pytest.mark.live_test_only + @pytest.mark.asyncio + @AsyncCommunicationTestCase.await_prepared_test + async def test_delete_user(self, connection_string): + identity_client = CommunicationIdentityClient.from_connection_string(connection_string) + async with identity_client: + user = await identity_client.create_user() + await identity_client.delete_user(user) + + assert user.identifier is not None diff --git a/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client.py b/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client.py deleted file mode 100644 index 3849c4c36e0..00000000000 --- a/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -import pytest -from azure.communication.administration import CommunicationIdentityClient -from helper import URIIdentityReplacer -from _shared.testcase import ( - CommunicationTestCase, - BodyReplacerProcessor -) - -class CommunicationIdentityClientTest(CommunicationTestCase): - def setUp(self): - super(CommunicationIdentityClientTest, self).setUp() - self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token"]), - URIIdentityReplacer()]) - self.identity_client = CommunicationIdentityClient.from_connection_string( - self.connection_str) - - @pytest.mark.live_test_only - def test_create_user(self): - user = self.identity_client.create_user() - - assert user.identifier is not None - - @pytest.mark.live_test_only - def test_issue_token(self): - user = self.identity_client.create_user() - - token_response = self.identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @pytest.mark.live_test_only - def test_revoke_tokens(self): - user = self.identity_client.create_user() - - token_response = self.identity_client.issue_token(user, scopes=["chat"]) - self.identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @pytest.mark.live_test_only - def test_delete_user(self): - user = self.identity_client.create_user() - - self.identity_client.delete_user(user) - - assert user.identifier is not None diff --git a/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client_async.py b/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client_async.py deleted file mode 100644 index 1ff86a4d2dd..00000000000 --- a/sdk/communication/azure-communication-administration/tests/test_communicatoin_identity_client_async.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -import pytest -from azure.communication.administration.aio import CommunicationIdentityClient -from azure_devtools.scenario_tests import RecordingProcessor -from helper import URIIdentityReplacer -from _shared.asynctestcase import AsyncCommunicationTestCase -from _shared.testcase import BodyReplacerProcessor, ResponseReplacerProcessor - -class CommunicationIdentityClientTestAsync(AsyncCommunicationTestCase): - - def setUp(self): - super(CommunicationIdentityClientTestAsync, self).setUp() - self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token"]), - URIIdentityReplacer(), - ResponseReplacerProcessor(keys=[self._resource_name])]) - - self.identity_client = CommunicationIdentityClient.from_connection_string( - self.connection_str) - - @AsyncCommunicationTestCase.await_prepared_test - @pytest.mark.live_test_only - async def test_create_user(self): - async with self.identity_client: - user = await self.identity_client.create_user() - - assert user.identifier is not None - - @AsyncCommunicationTestCase.await_prepared_test - @pytest.mark.live_test_only - async def test_issue_token(self): - async with self.identity_client: - user = await self.identity_client.create_user() - token_response = await self.identity_client.issue_token(user, scopes=["chat"]) - - assert user.identifier is not None - assert token_response.token is not None - - @AsyncCommunicationTestCase.await_prepared_test - @pytest.mark.live_test_only - async def test_revoke_tokens(self): - async with self.identity_client: - user = await self.identity_client.create_user() - token_response = await self.identity_client.issue_token(user, scopes=["chat"]) - await self.identity_client.revoke_tokens(user) - - assert user.identifier is not None - assert token_response.token is not None - - @AsyncCommunicationTestCase.await_prepared_test - @pytest.mark.live_test_only - async def test_delete_user(self): - async with self.identity_client: - user = await self.identity_client.create_user() - await self.identity_client.delete_user(user) - - assert user.identifier is not None diff --git a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py index 2f09606584a..5964fadd3b2 100644 --- a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py @@ -13,12 +13,10 @@ CreateSearchOptions ) from phone_number_helper import PhoneNumberUriReplacer -from _shared.testcase import ( - CommunicationTestCase, - BodyReplacerProcessor -) +from phone_number_testcase import PhoneNumberCommunicationTestCase +from _shared.testcase import BodyReplacerProcessor -class PhoneNumberAdministrationClientTest(CommunicationTestCase): +class PhoneNumberAdministrationClientTest(PhoneNumberCommunicationTestCase): def setUp(self): super(PhoneNumberAdministrationClientTest, self).setUp() diff --git a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py index f831124390d..06104811e6b 100644 --- a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py @@ -12,13 +12,11 @@ CreateSearchOptions ) from phone_number_helper import PhoneNumberUriReplacer -from _shared.asynctestcase import ( - AsyncCommunicationTestCase -) +from phone_number_testcase_async import AsyncPhoneNumberCommunicationTestCase from _shared.testcase import BodyReplacerProcessor, ResponseReplacerProcessor import os -class PhoneNumberAdministrationClientTestAsync(AsyncCommunicationTestCase): +class PhoneNumberAdministrationClientTestAsync(AsyncPhoneNumberCommunicationTestCase): def setUp(self): super(PhoneNumberAdministrationClientTestAsync, self).setUp() @@ -125,7 +123,7 @@ def setUp(self): self.capabilities_id = "capabilities_id" self.release_id = "release_id" - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_list_all_phone_numbers(self): async with self._phone_number_administration_client: @@ -136,7 +134,7 @@ async def test_list_all_phone_numbers(self): items.append(item) assert len(items) > 0 - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_all_area_codes(self): async with self._phone_number_administration_client: @@ -147,7 +145,7 @@ async def test_get_all_area_codes(self): ) assert area_codes.primary_area_codes - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_capabilities_update(self): async with self._phone_number_administration_client: @@ -156,7 +154,7 @@ async def test_get_capabilities_update(self): ) assert capability_response.capabilities_update_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_update_capabilities(self): update = NumberUpdateCapabilities(add=iter(["InboundCalling"])) @@ -171,7 +169,7 @@ async def test_update_capabilities(self): ) assert capability_response.capabilities_update_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_list_all_supported_countries(self): async with self._phone_number_administration_client: @@ -182,7 +180,7 @@ async def test_list_all_supported_countries(self): self.assertGreater(len(items), 0) assert items[0].localized_name - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_number_configuration(self): async with self._phone_number_administration_client: @@ -191,7 +189,7 @@ async def test_get_number_configuration(self): ) assert phone_number_response.pstn_configuration - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_configure_number(self): pstnConfig = PstnConfiguration( @@ -205,7 +203,7 @@ async def test_configure_number(self): ) assert not configure_number_response - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_list_phone_plan_groups(self): async with self._phone_number_administration_client: @@ -219,7 +217,7 @@ async def test_list_phone_plan_groups(self): assert len(items) > 0 assert items[0].phone_plan_group_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_list_phone_plans(self): async with self._phone_number_administration_client: @@ -234,7 +232,7 @@ async def test_list_phone_plans(self): assert len(items) > 0 assert items[0].phone_plan_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_phone_plan_location_options(self): async with self._phone_number_administration_client: @@ -245,7 +243,7 @@ async def test_get_phone_plan_location_options(self): ) assert location_options_response.location_options.label_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_release_by_id(self): async with self._phone_number_administration_client: @@ -254,7 +252,7 @@ async def test_get_release_by_id(self): ) assert phone_number_release_response.release_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_list_all_releases(self): async with self._phone_number_administration_client: @@ -266,7 +264,7 @@ async def test_list_all_releases(self): self.assertGreater(len(items), 0) assert items[0].id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_release_phone_numbers(self): async with self._phone_number_administration_client: @@ -275,7 +273,7 @@ async def test_release_phone_numbers(self): ) assert releases_response.release_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_get_search_by_id(self): async with self._phone_number_administration_client: @@ -284,7 +282,7 @@ async def test_get_search_by_id(self): ) assert phone_number_search_response.search_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_create_search(self): searchOptions = CreateSearchOptions( @@ -300,7 +298,7 @@ async def test_create_search(self): ) assert search_response.search_id - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_cancel_search(self): async with self._phone_number_administration_client: @@ -309,7 +307,7 @@ async def test_cancel_search(self): ) assert not cancel_search_response - @AsyncCommunicationTestCase.await_prepared_test + @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only async def test_purchase_search(self): async with self._phone_number_administration_client: