From 4c2b70860235729a5be001317e66b6ac2e43bd3c Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 31 May 2022 09:48:31 -0700 Subject: [PATCH 1/4] Fix code style warnings in communication module --- src/communication/HISTORY.rst | 5 ++++ .../test_communication_scenario_coverage.md | 22 +++++++------- .../_communication_service_operations.py | 29 ++++++++++++------- .../aio/operations/_operations.py | 1 + ...ication_service_management_client_enums.py | 5 ++++ .../communication/models/_models_py3.py | 3 +- .../_communication_service_operations.py | 29 ++++++++++++------- .../communication/operations/_operations.py | 1 + src/communication/setup.py | 2 +- 9 files changed, 62 insertions(+), 35 deletions(-) diff --git a/src/communication/HISTORY.rst b/src/communication/HISTORY.rst index fba9fafbe16..8c84af70a8c 100644 --- a/src/communication/HISTORY.rst +++ b/src/communication/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +1.1.1 +++++++ +* Fix codestyle issues in communiction command group. + + 1.1.0 ++++++ * Add communication identity command group. diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md index 53d24e8680b..06244604e28 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md @@ -1,11 +1,11 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2021-07-15 05:28:42.600879|2021-07-15 05:28:44.014667| -|step_show|successed||||2021-07-15 05:28:44.015669|2021-07-15 05:28:44.150585| -|step_list|successed||||2021-07-15 05:28:44.151889|2021-07-15 05:28:44.335519| -|step_list2|successed||||2021-07-15 05:28:44.335519|2021-07-15 05:28:44.479516| -|step_update|successed||||2021-07-15 05:28:44.479516|2021-07-15 05:28:44.628518| -|step_link_notification_hub|successed||||2021-07-15 05:28:44.628518|2021-07-15 05:28:44.841516| -|step_list_key|successed||||2021-07-15 05:28:44.841516|2021-07-15 05:28:44.984517| -|step_regenerate_key|successed||||2021-07-15 05:28:44.985517|2021-07-15 05:28:45.130055| -|step_delete|successed||||2021-07-15 05:28:45.130055|2021-07-15 05:28:45.385899| -Coverage: 9/9 +|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| +|step_create|successed||||2022-05-31 16:47:31.524670|2022-05-31 16:47:31.705575| +|step_show|successed||||2022-05-31 16:47:31.705575|2022-05-31 16:47:31.761352| +|step_list|successed||||2022-05-31 16:47:31.761352|2022-05-31 16:47:31.818778| +|step_list2|successed||||2022-05-31 16:47:31.818778|2022-05-31 16:47:31.875024| +|step_update|successed||||2022-05-31 16:47:31.875024|2022-05-31 16:47:31.932847| +|step_link_notification_hub|successed||||2022-05-31 16:47:31.932847|2022-05-31 16:47:31.989690| +|step_list_key|successed||||2022-05-31 16:47:31.989690|2022-05-31 16:47:32.047531| +|step_regenerate_key|successed||||2022-05-31 16:47:32.047531|2022-05-31 16:47:32.103799| +|step_delete|successed||||2022-05-31 16:47:32.104759|2022-05-31 16:47:32.313940| +Coverage: 9/9 diff --git a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py index 653c522839a..8cb41b97cd1 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py @@ -21,6 +21,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + class CommunicationServiceOperations: """CommunicationServiceOperations async operations. @@ -508,7 +509,7 @@ async def _create_or_update_initial( deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if response.status_code == 201: - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -556,7 +557,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, communication_service_name=communication_service_name, parameters=parameters, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -566,7 +567,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -579,9 +580,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling + if polling is True: + polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = AsyncNoPolling() + else: + polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, @@ -635,7 +639,7 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers['location']=self._deserialize('str', response.headers.get('location')) + response_headers['location'] = self._deserialize('str', response.headers.get('location')) if cls: return cls(pipeline_response, None, response_headers) @@ -677,7 +681,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, communication_service_name=communication_service_name, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -694,9 +698,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling + if polling is True: + polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = AsyncNoPolling() + else: + polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, diff --git a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py index cab8774de0c..f18ef2a950b 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py @@ -19,6 +19,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + class Operations: """Operations async operations. diff --git a/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py b/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py index 6cfd385f1f3..64633bb8010 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py +++ b/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py @@ -9,6 +9,7 @@ from enum import Enum, EnumMeta from six import with_metaclass + class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(self, name): return super().__getitem__(name.upper()) @@ -32,6 +33,7 @@ class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): INTERNAL = "Internal" + class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of identity that created the resource. """ @@ -41,6 +43,7 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" + class KeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). """ @@ -48,6 +51,7 @@ class KeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PRIMARY = "Primary" SECONDARY = "Secondary" + class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" @@ -57,6 +61,7 @@ class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SYSTEM = "system" USER_SYSTEM = "user,system" + class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Provisioning state of the resource. """ diff --git a/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py b/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py index 0fc54319e8a..5796a8cc733 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py +++ b/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py @@ -12,7 +12,8 @@ from azure.core.exceptions import HttpResponseError import msrest.serialization -from ._communication_service_management_client_enums import * +from ._communication_service_management_client_enums import KeyType +from ._communication_service_management_client_enums import CreatedByType class CommunicationServiceKeys(msrest.serialization.Model): diff --git a/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py b/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py index fe42efc70c1..7f8ea4bf5b7 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py @@ -25,6 +25,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + class CommunicationServiceOperations(object): """CommunicationServiceOperations operations. @@ -519,7 +520,7 @@ def _create_or_update_initial( deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if response.status_code == 201: - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -568,7 +569,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, communication_service_name=communication_service_name, parameters=parameters, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -578,7 +579,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -591,9 +592,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling + if polling is True: + polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = NoPolling() + else: + polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, @@ -648,7 +652,7 @@ def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers['location']=self._deserialize('str', response.headers.get('location')) + response_headers['location'] = self._deserialize('str', response.headers.get('location')) if cls: return cls(pipeline_response, None, response_headers) @@ -691,7 +695,7 @@ def begin_delete( raw_result = self._delete_initial( resource_group_name=resource_group_name, communication_service_name=communication_service_name, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -708,9 +712,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling + if polling is True: + polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = NoPolling() + else: + polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, diff --git a/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py b/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py index 703916fa8c0..bab4b88f962 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py @@ -23,6 +23,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + class Operations(object): """Operations operations. diff --git a/src/communication/setup.py b/src/communication/setup.py index 772b8164543..7a843d03f66 100644 --- a/src/communication/setup.py +++ b/src/communication/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '1.1.0' +VERSION = '1.1.1' try: from azext_communication.manual.version import VERSION except ImportError: From add63e5ca163d73a2a1ddf6b92e10f48e805b2cd Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 31 May 2022 23:50:58 -0700 Subject: [PATCH 2/4] Allow large response for CommunicationScenarioTest --- .../latest/test_communication_scenario.py | 2 ++ .../test_communication_scenario_coverage.md | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_scenario.py index 1fafcaaf46f..5f217a7c9e4 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -11,6 +11,7 @@ import os from azure.cli.testsdk import ScenarioTest from azure.cli.testsdk import ResourceGroupPreparer +from azure.cli.testsdk.scenario_tests import AllowLargeResponse from .example_steps import step_create from .example_steps import step_show from .example_steps import step_list @@ -90,6 +91,7 @@ def __init__(self, *args, **kwargs): }) + @AllowLargeResponse() @ResourceGroupPreparer(name_prefix='clitestcommunication_MyOtherResourceGroup'[:7], key='rg_2', parameter_name='rg_2') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md index 06244604e28..0364f3d3918 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md @@ -1,11 +1,11 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2022-05-31 16:47:31.524670|2022-05-31 16:47:31.705575| -|step_show|successed||||2022-05-31 16:47:31.705575|2022-05-31 16:47:31.761352| -|step_list|successed||||2022-05-31 16:47:31.761352|2022-05-31 16:47:31.818778| -|step_list2|successed||||2022-05-31 16:47:31.818778|2022-05-31 16:47:31.875024| -|step_update|successed||||2022-05-31 16:47:31.875024|2022-05-31 16:47:31.932847| -|step_link_notification_hub|successed||||2022-05-31 16:47:31.932847|2022-05-31 16:47:31.989690| -|step_list_key|successed||||2022-05-31 16:47:31.989690|2022-05-31 16:47:32.047531| -|step_regenerate_key|successed||||2022-05-31 16:47:32.047531|2022-05-31 16:47:32.103799| -|step_delete|successed||||2022-05-31 16:47:32.104759|2022-05-31 16:47:32.313940| +|step_create|successed||||2022-06-01 06:49:39.802749|2022-06-01 06:49:40.008298| +|step_show|successed||||2022-06-01 06:49:40.008298|2022-06-01 06:49:40.069486| +|step_list|successed||||2022-06-01 06:49:40.069486|2022-06-01 06:49:40.134996| +|step_list2|successed||||2022-06-01 06:49:40.134996|2022-06-01 06:49:40.213260| +|step_update|successed||||2022-06-01 06:49:40.213260|2022-06-01 06:49:40.274204| +|step_link_notification_hub|successed||||2022-06-01 06:49:40.274204|2022-06-01 06:49:40.336787| +|step_list_key|successed||||2022-06-01 06:49:40.336787|2022-06-01 06:49:40.404786| +|step_regenerate_key|successed||||2022-06-01 06:49:40.404786|2022-06-01 06:49:40.470810| +|step_delete|successed||||2022-06-01 06:49:40.470810|2022-06-01 06:49:40.638865| Coverage: 9/9 From 4f3326e21e6d2a2ab7c2f12d52f81702de925a1a Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 7 Jun 2022 09:56:55 -0700 Subject: [PATCH 3/4] fix communication live tests, update test recordings --- .../tests/latest/recording_processors.py | 2 + .../test_communication_Scenario.yaml | 1449 +++++++++-------- .../recordings/test_issue_access_token.yaml | 110 +- .../test_issue_access_token_with_id.yaml | 214 +-- .../recordings/test_list_phonenumbers.yaml | 693 ++++---- .../latest/recordings/test_send_sms.yaml | 367 ++++- .../recordings/test_show_phonenumbers.yaml | 372 ++++- .../latest/test_communication_scenario.py | 3 - .../test_communication_scenario_coverage.md | 19 +- .../azext_communication/tests/latest/utils.py | 8 +- 10 files changed, 1924 insertions(+), 1313 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/recording_processors.py b/src/communication/azext_communication/tests/latest/recording_processors.py index 49c274d7f8d..7286235e088 100644 --- a/src/communication/azext_communication/tests/latest/recording_processors.py +++ b/src/communication/azext_communication/tests/latest/recording_processors.py @@ -69,6 +69,8 @@ def __init__(self, keys=None, replacement="sanitized"): def process_request(self, request): import json try: + if request.body is None: + return request body = json.loads(request.body.decode()) if 'smsRecipients' in body: for item in body["smsRecipients"]: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml index cca240ef61c..87e78d74854 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml @@ -1,660 +1,789 @@ -interactions: -- request: - body: '{"location": "Global", "properties": {"dataLocation": "United States"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - Content-Length: - - '71' - Content-Type: - - application/json - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"dataLocation":"United - States","provisioningState":"Accepted"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23?api-version=2020-08-20 - cache-control: - - no-cache - content-length: - - '646' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:11:33 GMT - etag: - - '"4800c903-0000-0700-0000-60efc3840000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23?api-version=2020-08-20 - response: - body: - string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23","name":"bb56224b-5c9b-45cd-a4f0-83d12887bd23","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2021-07-15T05:11:31.3597706Z","properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '482' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:03 GMT - etag: - - '"1c006a18-0000-0800-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:04 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication wait - Connection: - - keep-alive - ParameterSetName: - - --created --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:05 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:06 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '781' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '781' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: '{"tags": {"newTag": "newVal"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication update - Connection: - - keep-alive - Content-Length: - - '30' - Content-Type: - - application/json - ParameterSetName: - - --name --tags --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:12:11.1294403Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '796' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:15 GMT - etag: - - '"48000f04-0000-0700-0000-60efc3ac0000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", - "connectionString": "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication link-notification-hub - Connection: - - keep-alive - Content-Length: - - '341' - Content-Type: - - application/json - ParameterSetName: - - --name --connection-string --resource-id --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/linkNotificationHub?api-version=2020-08-20 - response: - body: - string: '{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub"}' - headers: - cache-control: - - no-cache - content-length: - - '242' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:17 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list-key - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/listKeys?api-version=2020-08-20 - response: - body: - string: '{"primaryKey":"XXXXXXXX","secondaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX","secondaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX"}' - headers: - cache-control: - - no-cache - content-length: - - '599' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "Primary"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication regenerate-key - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - ParameterSetName: - - --name --key-type --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/regenerateKey?api-version=2020-08-20 - response: - body: - string: '{"primaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX"}' - headers: - cache-control: - - no-cache - content-length: - - '298' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:21 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: 'null' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:23 GMT - etag: - - '"48003104-0000-0700-0000-60efc3b70000"' - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication delete - Connection: - - keep-alive - ParameterSetName: - - -y --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - response: - body: - string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db","name":"0e4b1591-b06e-478d-91e6-5ed141c710db","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2021-07-15T05:12:23.1447165Z","endTime":"2021-07-15T05:12:25.5840953Z","percentComplete":100.0,"properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '547' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:54 GMT - etag: - - '"1c00a018-0000-0800-0000-60efc3b90000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 \ No newline at end of file +interactions: +- request: + body: '{"location": "Global", "properties": {"dataLocation": "United States"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"dataLocation":"United + States","provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:17 GMT + etag: + - '"7100c0fd-0000-0700-0000-629f818d0000"' + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-07T16:49:17.2722113Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:48 GMT + etag: + - '"4000822b-0000-0800-0000-629f818d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-07T16:49:17.2722113Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:18 GMT + etag: + - '"4000822b-0000-0800-0000-629f818d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-07T16:49:17.2722113Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:48 GMT + etag: + - '"40002b2c-0000-0800-0000-629f81cf0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '701' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:48 GMT + etag: + - '"7100d4fd-0000-0700-0000-629f81950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication wait + Connection: + - keep-alive + ParameterSetName: + - --created --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '701' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:49 GMT + etag: + - '"7100d4fd-0000-0700-0000-629f81950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '701' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:49 GMT + etag: + - '"7100d4fd-0000-0700-0000-629f81950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + States"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '713' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"tags": {"newTag": "newVal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication update + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - --name --tags --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:50:51.2658203Z"},"properties":{"hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + States","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '728' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:51 GMT + etag: + - '"710024ff-0000-0700-0000-629f81eb0000"' + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", + "connectionString": "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication link-notification-hub + Connection: + - keep-alive + Content-Length: + - '279' + Content-Type: + - application/json + ParameterSetName: + - --name --connection-string --resource-id --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/linkNotificationHub?api-version=2020-08-20 + response: + body: + string: '{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub"}' + headers: + cache-control: + - no-cache + content-length: + - '180' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication list-key + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/listKeys?api-version=2020-08-20 + response: + body: + string: '{"primaryKey":"5WX1X2MM3QmyjisEKbI2uHqliJXeLr32pi0ljVtxVyqM+shici4+C6q87q5k+ZiuMELTYO5UhNqKEFMp1RVflA==","secondaryKey":"PbIbjtJEB5lkDI8N4sHxeFP/29twvkHG+FQ64RKaKcYZap31eky2UmGZRmnAa99dOqAgiiR342whU1K5NLs7xA==","primaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=5WX1X2MM3QmyjisEKbI2uHqliJXeLr32pi0ljVtxVyqM+shici4+C6q87q5k+ZiuMELTYO5UhNqKEFMp1RVflA==","secondaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=PbIbjtJEB5lkDI8N4sHxeFP/29twvkHG+FQ64RKaKcYZap31eky2UmGZRmnAa99dOqAgiiR342whU1K5NLs7xA=="}' + headers: + cache-control: + - no-cache + content-length: + - '599' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:53 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"keyType": "Primary"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication regenerate-key + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --key-type --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/regenerateKey?api-version=2020-08-20 + response: + body: + string: '{"primaryKey":"6Gc/9VkjpWPyxLZwWKZFu6ELttHHZECxJz/WlSncoLN4VIhme0NNoxzlVUJYlu83xH26YGVY8wm0f7Qy0IwbLQ==","primaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=6Gc/9VkjpWPyxLZwWKZFu6ELttHHZECxJz/WlSncoLN4VIhme0NNoxzlVUJYlu83xH26YGVY8wm0f7Qy0IwbLQ=="}' + headers: + cache-control: + - no-cache + content-length: + - '298' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:54 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:55 GMT + etag: + - '"71002dff-0000-0700-0000-629f81ef0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-07T16:50:55.8571096Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:51:25 GMT + etag: + - '"4000642c-0000-0800-0000-629f81ef0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-07T16:50:55.8571096Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:51:55 GMT + etag: + - '"4000642c-0000-0800-0000-629f81ef0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-07T16:50:55.8571096Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:52:25 GMT + etag: + - '"4000152d-0000-0800-0000-629f82310000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml index a2b2a920eaf..b0826a8b1e9 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml @@ -1,54 +1,56 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:12 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-12-07T14:07:13.468764+00:00"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '919' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:12 GMT - ms-cv: - - lVPrNvJU5EaYuMAuqOGE7g.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0EBmuYQAAAAB2qxxHbORwTbng1P82bMArREVMMDFFREdFMDYxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 53ms - status: - code: 201 - message: Created -version: 1 +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:11 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-06-08T16:49:12.6695223+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + connection: + - keep-alive + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:12 GMT + ms-cv: + - LQ6WMYcBn0ig4zoeKIY52w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164912Z-hvd910aqfh5ndcxfskqx25gszs00000003h0000000005uhs + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 179ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml index 2dc0b23389a..83936d4a323 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml @@ -1,104 +1,110 @@ -interactions: -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:15 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 - response: - body: - string: '{"identity": {"id": "sanitized"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '101' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:17 GMT - ms-cv: - - db5x9gldH0Oox282mizq9A.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0ExmuYQAAAAD3Vfx251tyRo6XckH+lfvVREVMMDFFREdFMDUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 42ms - status: - code: 201 - message: Created -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:17 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - response: - body: - string: '{"token": "sanitized", "expiresOn": "2021-12-07T14:07:19.6772889+00:00"}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '804' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:18 GMT - ms-cv: - - ZeXdP0jb4kO0WUp2B31C7g.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0FhmuYQAAAAC/PBbMDZ7pSZFPgP+KVjugREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 47ms - status: - code: 200 - message: OK -version: 1 +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:11 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + connection: + - keep-alive + content-length: + - '33' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:12 GMT + ms-cv: + - if3J/NFyhkuOG1Fz3h6a9w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164912Z-hvd910aqfh5ndcxfskqx25gszs00000003h0000000005uhp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 157ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:11 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-06-08T16:49:13.3457508+00:00"}' + headers: + accept-ranges: + - bytes + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + connection: + - keep-alive + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:13 GMT + ms-cv: + - y9g0XHg6nEOyGDutl+L3gA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164912Z-76susvty6h4ebcz5yzy7p7ka2g00000003fg00000000sy74 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 179ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml index 535c4011638..3ab80488d57 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml @@ -1,373 +1,320 @@ -interactions: -- request: - body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": - {"calling": "inbound", "sms": "inbound+outbound"}, "areaCode": "833"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '150' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:58:52 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - k+8I+2XWVv8hfjOcXxUS3pkWDzlyAVYSAkE9keeVQKQ= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Location,Operation-Location,operation-id,search-id - api-supported-versions: - - '2021-03-07' - content-length: - - '0' - date: - - Mon, 06 Dec 2021 14:58:55 GMT - location: - - /availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - ms-cv: - - TphBgYsAx0mhayt5jm5ydg.0 - operation-id: - - search_5198a1ca-73d6-4fc9-a435-2d6fab200026 - operation-location: - - /phoneNumbers/operations/search_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - request-context: - - appId= - search-id: - - 5198a1ca-73d6-4fc9-a435-2d6fab200026 - x-azure-ref: - - 0LSWuYQAAAACXHITBS5tiQrnS4SHxO5R+REVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 2154ms - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:26 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07", - "createdDateTime": "2021-12-06T14:58:55.7391553+00:00", "id": "sanitized", - "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' - headers: - access-control-expose-headers: - - Location - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:26 GMT - location: - - /availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - ms-cv: - - ueyyTekDV0q7YM6o4Wk8dg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0TiWuYQAAAAAEK1xXX1leSL0ZN+EYgzEKREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 247ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:26 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"searchId": "5198a1ca-73d6-4fc9-a435-2d6fab200026", "phoneNumbers": - ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", - "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2021-12-06T15:14:58.1021432+00:00"}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:27 GMT - ms-cv: - - Qkkas7hLjUyZ2Jn2Eyz/8w.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0TiWuYQAAAADGQyi9ZfamToBHfKhv/uwdREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 843ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: '{"searchId": "5198a1ca-73d6-4fc9-a435-2d6fab200026"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '52' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:59:27 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - q7k7dQmReElvco5HyMOMKjtmo0X24DIPCWqYL6+MTkY= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Operation-Location,operation-id,purchase-id - api-supported-versions: - - '2021-03-07' - content-length: - - '0' - date: - - Mon, 06 Dec 2021 14:59:29 GMT - ms-cv: - - KkJTT8iP0UmCc629ExcpNA.0 - operation-id: - - purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026 - operation-location: - - /phoneNumbers/operations/purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - purchase-id: - - 5198a1ca-73d6-4fc9-a435-2d6fab200026 - request-context: - - appId= - x-azure-ref: - - 0TyWuYQAAAAA5ywhIx0IDRoxWDL+wDJJWREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 1808ms - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:59 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2021-12-06T14:58:55.7391553+00:00", "id": "sanitized", - "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:59 GMT - ms-cv: - - 1e34DE/Vck60Ag439mDuGg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0cCWuYQAAAAA28NbjrOS4QJ2nZdv5YJOuREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 308ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 15:00:00 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 - response: - body: - string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": - "US", "phoneNumberType": "geographic", "capabilities": {"calling": "inbound+outbound", - "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-08T17:35:37.4352574+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-11-17T11:47:47.2286877+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:48:37.2341582+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:59:45.3037046+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:38:13.1987611+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-08-04T09:49:45.3765116+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:29:30.1082746+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:23:21.6246128+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:23:49.1286852+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T08:20:46.6769231+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T13:14:11.6087977+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-12T13:18:16.5746747+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T15:41:20.7171509+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-13T12:13:04.2873741+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-13T12:15:50.8017707+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:42:54.2122448+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:54:33.3820288+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 15:00:05 GMT - ms-cv: - - /ussJzn8ckSzlBOSdDRu5g.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0cCWuYQAAAABQVtDD6YS/T7TMIoPNqdu9REVMMDFFREdFMDYxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 4648ms - status: - code: 200 - message: OK - url: sanitized -version: 1 +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:16 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:49:21 GMT + location: + - /availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + ms-cv: + - NI5ZXWIF4kWkvN9kEw/vBQ.0 + operation-id: + - search_f6eca54e-d1d8-4b41-9263-6d71c4a58335 + operation-location: + - /phoneNumbers/operations/search_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + search-id: + - f6eca54e-d1d8-4b41-9263-6d71c4a58335 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164917Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001q2s2 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 4398ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:49:51 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07", + "createdDateTime": "2022-06-07T16:49:21.4366953+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:52 GMT + location: + - /availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + ms-cv: + - OOQtzINlXkSjNxVK7L1utQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T164951Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qanz + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 492ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:49:51 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + response: + body: + string: '{"searchId": "f6eca54e-d1d8-4b41-9263-6d71c4a58335", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-07T17:05:23.7441024+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:53 GMT + ms-cv: + - NsfDAzJg0E+WdL17+1mZWA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T164952Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qasz + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1140ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "f6eca54e-d1d8-4b41-9263-6d71c4a58335"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:52 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - d2B1AS+/fJ/RmUnc3tEWblSSmHGVzYMsWDuxLa36Zdo= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:49:56 GMT + ms-cv: + - Uum/odE22k+Bvp1JCft9dQ.0 + operation-id: + - purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335 + operation-location: + - /phoneNumbers/operations/purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + purchase-id: + - f6eca54e-d1d8-4b41-9263-6d71c4a58335 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164953Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qb33 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2319ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:50:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-07T16:49:21.4366953+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:26 GMT + ms-cv: + - aL0ztid9jkO29MA3wf/s1Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T165026Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qhr8 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 488ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:50:26 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 + response: + body: + string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": + "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", + "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": + "2022-06-07T16:50:11.1922472+00:00", "cost": {"amount": 2.0, "currencyCode": + "USD", "billingFrequency": "monthly"}}]}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:28 GMT + ms-cv: + - p6AdsMrVpkeq/hQvP7QTig.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 004GfYgAAAADAVw8yrkE/SK3iJQXSnesIWVZSMzExMDAwMTE1MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1577ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml index d51f151c947..76448d89e81 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml @@ -1,54 +1,313 @@ -interactions: -- request: - body: '{"from": "sanitized", "smsRecipients": [{"to": "sanitized", "repeatabilityRequestId": - "sanitized", "repeatabilityFirstSent": "sanitized"}], "message": "Hello there!!", - "smsSendOptions": {"enableDeliveryReport": false}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '272' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 15:36:19 GMT - User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - sbLx+oenggMafURnlxO00AGzgCK+WSJHuexmoPo3DyA= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 - response: - body: - string: '{"value": [{"to": "sanitized", "messageId": "sanitized", "httpStatusCode": - 202, "repeatabilityResult": "accepted", "successful": true}]}' - headers: - api-supported-versions: - - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 15:36:20 GMT - ms-cv: - - Ughjm5n6kEilMk/999Ucjg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 08y2uYQAAAAAV31ZEY/dhTpUOlNFrXq3mREVMMDFFREdFMDYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 442ms - status: - code: 202 - message: Accepted - url: sanitized -version: 1 +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:50:48 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:50:53 GMT + location: + - /availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + ms-cv: + - iYwl/ejm80qtndsUERhu6A.0 + operation-id: + - search_ee9cca71-855c-4633-bf39-53a6012dafd7 + operation-location: + - /phoneNumbers/operations/search_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + search-id: + - ee9cca71-855c-4633-bf39-53a6012dafd7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 06oGfYgAAAAAl2RttIh9iQamwT6eORoZaWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3447ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:51:23 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07", + "createdDateTime": "2022-06-07T16:50:53.3910602+00:00", "id": "search_ee9cca71-855c-4633-bf39-53a6012dafd7", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:51:24 GMT + location: + - /availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + ms-cv: + - UngkBA2rBkKc8tRbfelKzA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0C4KfYgAAAAAngTTKb3pUTqEAXfVdVM/7WVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 829ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:51:23 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + response: + body: + string: '{"searchId": "ee9cca71-855c-4633-bf39-53a6012dafd7", "phoneNumbers": + ["+18772134052"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-07T17:06:55.6396441+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:51:26 GMT + ms-cv: + - ALx0yJdkekWwufMIMSGqWQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0DIKfYgAAAABvcMhLYmg5QYUx12/W060BWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1550ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "ee9cca71-855c-4633-bf39-53a6012dafd7"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:51:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 5yw4kaI6G0V6H2Gs3qfS3+QcyR8ogW3Dg/Zh+i2YqiU= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:51:33 GMT + ms-cv: + - temtoeOn30ewsj/QYbulYw.0 + operation-id: + - purchase_ee9cca71-855c-4633-bf39-53a6012dafd7 + operation-location: + - /phoneNumbers/operations/purchase_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + purchase-id: + - ee9cca71-855c-4633-bf39-53a6012dafd7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0DoKfYgAAAABHbdbb7zp4RoN3QW0OCRqHWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 7016ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:52:02 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-07T16:50:53.3910602+00:00", "id": "purchase_ee9cca71-855c-4633-bf39-53a6012dafd7", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:52:03 GMT + ms-cv: + - JvabvPlMikKmJC5phR0GzQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0M4KfYgAAAAAB2n89vjlHSYFwyLVPy3+WWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 509ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"from": "sanitized", "smsRecipients": [{"to": "sanitized", "repeatabilityRequestId": + "sanitized", "repeatabilityFirstSent": "sanitized"}], "message": "Hello there!!", + "smsSendOptions": {"enableDeliveryReport": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '218' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:52:03 GMT + User-Agent: + - azsdk-python-communication-sms/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 8IqErFZJO03++b6Ig5TBjgSWsq/79CpHr8d0f0mWR+s= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 + response: + body: + string: '{"value": [{"to": "sanitized", "messageId": "sanitized", "httpStatusCode": + 202, "repeatabilityResult": "accepted", "successful": true}]}' + headers: + api-supported-versions: + - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:52:04 GMT + ms-cv: + - ztjfcQ4AvEGtZodYweSVFQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0NIKfYgAAAABQ2L2NGqyDQJDughSay9HBWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 276ms + status: + code: 202 + message: Accepted + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml index 7604e85beb3..0e509d35c6e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml @@ -1,51 +1,321 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Fri, 10 Dec 2021 13:47:18 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 - response: - body: - string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", - "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound+outbound", - "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2021-04-06T23:29:30.1082746+00:00", "cost": {"amount": 2.0, "currencyCode": - "USD", "billingFrequency": "monthly"}}' - headers: - api-supported-versions: - - 2021-03-07, 2022-01-11-preview - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Dec 2021 13:47:20 GMT - ms-cv: - - t1sLcRKtiEafCidj5PG1hQ.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0ZlqzYQAAAADKZ2o7XZjuRb2RbOfSdZtpREVMMDFFREdFMDUyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 1311ms - status: - code: 200 - message: OK - url: sanitized -version: 1 \ No newline at end of file +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:11 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:49:16 GMT + location: + - /availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + ms-cv: + - ldrH6ivgTEGIlFc6j7M2/Q.0 + operation-id: + - search_ea524178-f91a-46ba-abf5-3953c481498d + operation-location: + - /phoneNumbers/operations/search_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + search-id: + - ea524178-f91a-46ba-abf5-3953c481498d + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164912Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000ubsv + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3832ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:49:45 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07", + "createdDateTime": "2022-06-07T16:49:16.0554878+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:46 GMT + location: + - /availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + ms-cv: + - IPxaddVdDkOB6pkCBKRl6w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T164946Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000umy5 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 329ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:49:46 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + response: + body: + string: '{"searchId": "ea524178-f91a-46ba-abf5-3953c481498d", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-07T17:05:18.8626438+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:49:48 GMT + ms-cv: + - a/OKCyFxFUatgfrToBqq9w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T164946Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000un1y + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1028ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "ea524178-f91a-46ba-abf5-3953c481498d"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 07 Jun 2022 16:49:47 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - uj5IDWPgHmy6kj1kn5ZgfunuOxtJ/TvQyWwxP2vEb3U= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 07 Jun 2022 16:49:50 GMT + ms-cv: + - A866GpEUKkqvfbaSS7fywg.0 + operation-id: + - purchase_ea524178-f91a-46ba-abf5-3953c481498d + operation-location: + - /phoneNumbers/operations/purchase_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + purchase-id: + - ea524178-f91a-46ba-abf5-3953c481498d + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220607T164948Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000unc7 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1959ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:50:19 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-07T16:49:16.0554878+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:20 GMT + ms-cv: + - PeocuSA5EUKdwPvhl/ogFg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T165020Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000uvra + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 416ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 07 Jun 2022 16:50:19 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 + response: + body: + string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", + "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-06-07T16:50:04.9740502+00:00", + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Jun 2022 16:50:23 GMT + ms-cv: + - pS4NwAC+p0aV0WwyRKlU8w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220607T165021Z-wx0fan7kkh6m1e83y5n99ure5n00000003eg00000000rwkx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1889ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_scenario.py index 5f217a7c9e4..4f9661e2a60 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -60,9 +60,6 @@ def call_scenario(test, rg_2, rg): step_list(test, rg_2, rg, checks=[ test.check('length(@)', 1), ]) - step_list2(test, rg_2, rg, checks=[ - test.check('length(@)', 1), - ]) step_update(test, rg_2, rg, checks=[ test.check("name", "{myCommunicationService}", case_sensitive=False), test.check("location", "Global", case_sensitive=False), diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md index 0364f3d3918..d0cadd511f8 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md @@ -1,11 +1,10 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2022-06-01 06:49:39.802749|2022-06-01 06:49:40.008298| -|step_show|successed||||2022-06-01 06:49:40.008298|2022-06-01 06:49:40.069486| -|step_list|successed||||2022-06-01 06:49:40.069486|2022-06-01 06:49:40.134996| -|step_list2|successed||||2022-06-01 06:49:40.134996|2022-06-01 06:49:40.213260| -|step_update|successed||||2022-06-01 06:49:40.213260|2022-06-01 06:49:40.274204| -|step_link_notification_hub|successed||||2022-06-01 06:49:40.274204|2022-06-01 06:49:40.336787| -|step_list_key|successed||||2022-06-01 06:49:40.336787|2022-06-01 06:49:40.404786| -|step_regenerate_key|successed||||2022-06-01 06:49:40.404786|2022-06-01 06:49:40.470810| -|step_delete|successed||||2022-06-01 06:49:40.470810|2022-06-01 06:49:40.638865| -Coverage: 9/9 +|step_create|successed||||2022-06-07 16:53:32.143302|2022-06-07 16:53:32.338883| +|step_show|successed||||2022-06-07 16:53:32.339865|2022-06-07 16:53:32.407601| +|step_list|successed||||2022-06-07 16:53:32.408601|2022-06-07 16:53:32.473460| +|step_update|successed||||2022-06-07 16:53:32.474483|2022-06-07 16:53:32.539061| +|step_link_notification_hub|successed||||2022-06-07 16:53:32.540152|2022-06-07 16:53:32.614876| +|step_list_key|successed||||2022-06-07 16:53:32.614876|2022-06-07 16:53:32.691045| +|step_regenerate_key|successed||||2022-06-07 16:53:32.692047|2022-06-07 16:53:32.781656| +|step_delete|successed||||2022-06-07 16:53:32.781656|2022-06-07 16:53:33.222283| +Coverage: 8/8 diff --git a/src/communication/azext_communication/tests/latest/utils.py b/src/communication/azext_communication/tests/latest/utils.py index 73edf756d13..fb1d112b021 100644 --- a/src/communication/azext_communication/tests/latest/utils.py +++ b/src/communication/azext_communication/tests/latest/utils.py @@ -53,8 +53,8 @@ def get_test_recipient_phonenumber(is_live, in_recording): def get_new_phonenumber(connection_string): try: - phone_numbers_client = PhoneNumbersClient.from_connection_string( - connection_string) + phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_string) + capabilities = PhoneNumberCapabilities( calling=PhoneNumberCapabilityType.INBOUND, sms=PhoneNumberCapabilityType.INBOUND_OUTBOUND @@ -64,7 +64,6 @@ def get_new_phonenumber(connection_string): PhoneNumberType.TOLL_FREE, PhoneNumberAssignmentType.APPLICATION, capabilities, - area_code="833", polling=True ) search_result = search_poller.result() @@ -72,7 +71,8 @@ def get_new_phonenumber(connection_string): purchase_poller = phone_numbers_client.begin_purchase_phone_numbers( search_result.search_id, polling=True) purchase_poller.result() - if(purchase_poller.status() == 'succeeded'): + + if (purchase_poller.status() == 'succeeded'): phone_number_list = search_result.phone_numbers for phone_number in phone_number_list: return phone_number From b731ae8414fbebb22af816c969f3a5423b894cb5 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Wed, 8 Jun 2022 11:05:35 -0700 Subject: [PATCH 4/4] Updated recordings --- .../test_communication_Scenario.yaml | 192 +++++++++++------- .../recordings/test_issue_access_token.yaml | 18 +- .../test_issue_access_token_with_id.yaml | 32 ++- .../recordings/test_list_phonenumbers.yaml | 120 +++++------ .../latest/recordings/test_send_sms.yaml | 112 +++++----- .../recordings/test_show_phonenumbers.yaml | 122 +++++------ .../test_communication_scenario_coverage.md | 16 +- 7 files changed, 314 insertions(+), 298 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml index 87e78d74854..f451e81f600 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml @@ -17,26 +17,26 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"dataLocation":"United + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"dataLocation":"United States","provisioningState":"Accepted"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 cache-control: - no-cache content-length: - - '578' + - '580' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:17 GMT + - Wed, 08 Jun 2022 18:00:56 GMT etag: - - '"7100c0fd-0000-0700-0000-629f818d0000"' + - '"75002503-0000-0700-0000-62a0e3d80000"' expires: - '-1' pragma: @@ -68,12 +68,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-07T16:49:17.2722113Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-08T18:00:56.1908518Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:48 GMT + - Wed, 08 Jun 2022 18:01:26 GMT etag: - - '"4000822b-0000-0800-0000-629f818d0000"' + - '"4200fb9d-0000-0800-0000-62a0e3d80000"' expires: - '-1' pragma: @@ -114,12 +114,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-07T16:49:17.2722113Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-08T18:00:56.1908518Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:18 GMT + - Wed, 08 Jun 2022 18:01:56 GMT etag: - - '"4000822b-0000-0800-0000-629f818d0000"' + - '"4200fb9d-0000-0800-0000-62a0e3d80000"' expires: - '-1' pragma: @@ -160,12 +160,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"d5b2e496-1f61-44ef-9709-580904f8c239*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-07T16:49:17.2722113Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:00:56.1908518Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:48 GMT + - Wed, 08 Jun 2022 18:02:26 GMT etag: - - '"40002b2c-0000-0800-0000-629f81cf0000"' + - '"4200339e-0000-0800-0000-62a0e41a0000"' expires: - '-1' pragma: @@ -206,24 +206,24 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '703' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:48 GMT + - Wed, 08 Jun 2022 18:02:26 GMT etag: - - '"7100d4fd-0000-0700-0000-629f81950000"' + - '"75004b03-0000-0700-0000-62a0e3de0000"' expires: - '-1' pragma: @@ -255,24 +255,24 @@ interactions: ParameterSetName: - --created --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '703' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:49 GMT + - Wed, 08 Jun 2022 18:02:27 GMT etag: - - '"7100d4fd-0000-0700-0000-629f81950000"' + - '"75004b03-0000-0700-0000-62a0e3de0000"' expires: - '-1' pragma: @@ -304,24 +304,24 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '703' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:49 GMT + - Wed, 08 Jun 2022 18:02:28 GMT etag: - - '"7100d4fd-0000-0700-0000-629f81950000"' + - '"75004b03-0000-0700-0000-62a0e3de0000"' expires: - '-1' pragma: @@ -353,22 +353,22 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:49:16.8901767Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '713' + - '715' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:50 GMT + - Wed, 08 Jun 2022 18:02:28 GMT expires: - '-1' pragma: @@ -404,24 +404,24 @@ interactions: ParameterSetName: - --name --tags --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-06-07T16:49:16.8901767Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-07T16:50:51.2658203Z"},"properties":{"hostName":"mycommunica5amquot2utf2.communication.azure.com","immutableResourceId":"8032cbdb-a596-4de1-8bf4-dbca64e5b048","dataLocation":"United + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:02:29.625223Z"},"properties":{"hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '728' + - '729' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:51 GMT + - Wed, 08 Jun 2022 18:02:29 GMT etag: - - '"710024ff-0000-0700-0000-629f81eb0000"' + - '"75006104-0000-0700-0000-62a0e4360000"' expires: - '-1' pragma: @@ -462,7 +462,7 @@ interactions: ParameterSetName: - --name --connection-string --resource-id --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/linkNotificationHub?api-version=2020-08-20 response: @@ -476,7 +476,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:52 GMT + - Wed, 08 Jun 2022 18:02:31 GMT expires: - '-1' pragma: @@ -514,12 +514,12 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/listKeys?api-version=2020-08-20 response: body: - string: '{"primaryKey":"5WX1X2MM3QmyjisEKbI2uHqliJXeLr32pi0ljVtxVyqM+shici4+C6q87q5k+ZiuMELTYO5UhNqKEFMp1RVflA==","secondaryKey":"PbIbjtJEB5lkDI8N4sHxeFP/29twvkHG+FQ64RKaKcYZap31eky2UmGZRmnAa99dOqAgiiR342whU1K5NLs7xA==","primaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=5WX1X2MM3QmyjisEKbI2uHqliJXeLr32pi0ljVtxVyqM+shici4+C6q87q5k+ZiuMELTYO5UhNqKEFMp1RVflA==","secondaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=PbIbjtJEB5lkDI8N4sHxeFP/29twvkHG+FQ64RKaKcYZap31eky2UmGZRmnAa99dOqAgiiR342whU1K5NLs7xA=="}' + string: '{"primaryKey":"XXXXXXXX","secondaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX","secondaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' headers: cache-control: - no-cache @@ -528,7 +528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:53 GMT + - Wed, 08 Jun 2022 18:02:32 GMT expires: - '-1' pragma: @@ -568,12 +568,12 @@ interactions: ParameterSetName: - --name --key-type --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/regenerateKey?api-version=2020-08-20 response: body: - string: '{"primaryKey":"6Gc/9VkjpWPyxLZwWKZFu6ELttHHZECxJz/WlSncoLN4VIhme0NNoxzlVUJYlu83xH26YGVY8wm0f7Qy0IwbLQ==","primaryConnectionString":"endpoint=https://mycommunica5amquot2utf2.communication.azure.com/;accesskey=6Gc/9VkjpWPyxLZwWKZFu6ELttHHZECxJz/WlSncoLN4VIhme0NNoxzlVUJYlu83xH26YGVY8wm0f7Qy0IwbLQ=="}' + string: '{"primaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' headers: cache-control: - no-cache @@ -582,7 +582,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:54 GMT + - Wed, 08 Jun 2022 18:02:33 GMT expires: - '-1' pragma: @@ -620,7 +620,7 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 response: @@ -628,7 +628,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -636,13 +636,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:55 GMT + - Wed, 08 Jun 2022 18:02:34 GMT etag: - - '"71002dff-0000-0700-0000-629f81ef0000"' + - '"75007304-0000-0700-0000-62a0e43a0000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -670,12 +670,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-07T16:50:55.8571096Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' headers: cache-control: - no-cache @@ -684,9 +684,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:51:25 GMT + - Wed, 08 Jun 2022 18:03:04 GMT etag: - - '"4000642c-0000-0800-0000-629f81ef0000"' + - '"4200689e-0000-0800-0000-62a0e43a0000"' expires: - '-1' pragma: @@ -712,12 +712,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-07T16:50:55.8571096Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' headers: cache-control: - no-cache @@ -726,9 +726,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:51:55 GMT + - Wed, 08 Jun 2022 18:03:34 GMT etag: - - '"4000642c-0000-0800-0000-629f81ef0000"' + - '"4200689e-0000-0800-0000-62a0e43a0000"' expires: - '-1' pragma: @@ -754,12 +754,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","name":"5cd1e520-3d76-42c1-9efd-2bcda010dbfb*FAC752D5DD7BF4296D35BE5C29F927BF9A86CE35DE7533754E4857A6476B9E62","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-07T16:50:55.8571096Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:02:34.5102735Z","properties":null}' headers: cache-control: - no-cache @@ -768,9 +768,55 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:52:25 GMT + - Wed, 08 Jun 2022 18:04:04 GMT etag: - - '"4000152d-0000-0800-0000-629f82310000"' + - '"4200b59e-0000-0800-0000-62a0e47c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:02:34.5102735Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:04:04 GMT + etag: + - '"4200b59e-0000-0800-0000-62a0e47c0000"' expires: - '-1' pragma: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml index b0826a8b1e9..39de6eeaae6 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:11 GMT + - Wed, 08 Jun 2022 18:00:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-return-client-request-id: @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-06-08T16:49:12.6695223+00:00"}}' + "expiresOn": "2022-06-09T18:00:51.176298+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01 - connection: - - keep-alive content-length: - - '122' + - '121' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:12 GMT + - Wed, 08 Jun 2022 18:00:50 GMT ms-cv: - - LQ6WMYcBn0ig4zoeKIY52w.0 + - eElIgNeTt0O5mbftDOJZFQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164912Z-hvd910aqfh5ndcxfskqx25gszs00000003h0000000005uhs + - 00uOgYgAAAAANw4rItbYIRri9LyqlAuPbWVZSMzExMDAwMTE2MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 179ms + - 186ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml index 83936d4a323..ef861c00c3e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:11 GMT + - Wed, 08 Jun 2022 18:00:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-return-client-request-id: @@ -29,26 +29,24 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01 - connection: - - keep-alive content-length: - '33' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:12 GMT + - Wed, 08 Jun 2022 18:00:51 GMT ms-cv: - - if3J/NFyhkuOG1Fz3h6a9w.0 + - l2JTnDME60aMsbUTOQuXKQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164912Z-hvd910aqfh5ndcxfskqx25gszs00000003h0000000005uhp + - 00uOgYgAAAADuzh9y4GprTpDLQ3dRPhyNWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 157ms + - 109ms status: code: 201 message: Created @@ -66,9 +64,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:11 GMT + - Wed, 08 Jun 2022 18:00:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-return-client-request-id: @@ -77,33 +75,29 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-06-08T16:49:13.3457508+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-06-09T18:00:51.9039474+00:00"}' headers: - accept-ranges: - - bytes api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01 - connection: - - keep-alive content-length: - '72' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:13 GMT + - Wed, 08 Jun 2022 18:00:51 GMT ms-cv: - - y9g0XHg6nEOyGDutl+L3gA.0 + - dusEax8NZ0mpZZ9E46pR+A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164912Z-76susvty6h4ebcz5yzy7p7ka2g00000003fg00000000sy74 + - 00+OgYgAAAAAcpqvANpg0SbG1xR0iRxwxWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 179ms + - 183ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml index 3ab80488d57..5611221923d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:16 GMT + - Wed, 08 Jun 2022 18:00:51 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -31,30 +31,28 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-length: - '0' date: - - Tue, 07 Jun 2022 16:49:21 GMT + - Wed, 08 Jun 2022 18:00:54 GMT location: - - /availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 ms-cv: - - NI5ZXWIF4kWkvN9kEw/vBQ.0 + - tNidcKnOGk6i8nmozvpySA.0 operation-id: - - search_f6eca54e-d1d8-4b41-9263-6d71c4a58335 + - search_57ed2b65-3611-40b9-aa38-0df5f4291b2a operation-location: - - /phoneNumbers/operations/search_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + - /phoneNumbers/operations/search_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 search-id: - - f6eca54e-d1d8-4b41-9263-6d71c4a58335 + - 57ed2b65-3611-40b9-aa38-0df5f4291b2a strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164917Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001q2s2 + - 00uOgYgAAAACESRSYtxqFTLkpacwwIWI8WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 4398ms + - 3948ms status: code: 202 message: Accepted @@ -68,46 +66,44 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:49:51 GMT + - Wed, 08 Jun 2022 18:01:25 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07", - "createdDateTime": "2022-06-07T16:49:21.4366953+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: - Location api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:52 GMT + - Wed, 08 Jun 2022 18:01:24 GMT location: - - /availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 ms-cv: - - OOQtzINlXkSjNxVK7L1utQ.0 + - 4rhhQFobjU+zNfd6nPVCnw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T164951Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qanz + - 09eOgYgAAAABx7MvFB/xvQJOu2thlMlzYWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 492ms + - 391ms status: code: 200 message: OK @@ -122,49 +118,47 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:49:51 GMT + - Wed, 08 Jun 2022 18:01:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 response: body: - string: '{"searchId": "f6eca54e-d1d8-4b41-9263-6d71c4a58335", "phoneNumbers": + string: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-07T17:05:23.7441024+00:00"}' + "2022-06-08T18:17:00.3072592+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:53 GMT + - Wed, 08 Jun 2022 18:01:26 GMT ms-cv: - - NsfDAzJg0E+WdL17+1mZWA.0 + - /P7NTDCbcEe4V+EvxJ70wA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T164952Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qasz + - 09eOgYgAAAACgNKZXbd/LSKRjj7kCjtS7WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1140ms + - 1061ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "f6eca54e-d1d8-4b41-9263-6d71c4a58335"}' + body: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a"}' headers: Accept: - application/json @@ -177,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:52 GMT + - Wed, 08 Jun 2022 18:01:27 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - - d2B1AS+/fJ/RmUnc3tEWblSSmHGVzYMsWDuxLa36Zdo= + - 4ztvkrPnGXN1Lms0ny44NvlCOk0qMW2/GAFb7Vkvy+k= x-ms-return-client-request-id: - 'true' method: POST @@ -194,28 +188,26 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-length: - '0' date: - - Tue, 07 Jun 2022 16:49:56 GMT + - Wed, 08 Jun 2022 18:01:28 GMT ms-cv: - - Uum/odE22k+Bvp1JCft9dQ.0 + - gHSQLQB3o0qiHLYLQoaB/Q.0 operation-id: - - purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335 + - purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a operation-location: - - /phoneNumbers/operations/purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 purchase-id: - - f6eca54e-d1d8-4b41-9263-6d71c4a58335 + - 57ed2b65-3611-40b9-aa38-0df5f4291b2a strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164953Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qb33 + - 09uOgYgAAAABcg5WUapHtS5XQnLop0wq3WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2319ms + - 2399ms status: code: 202 message: Accepted @@ -229,41 +221,39 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:50:25 GMT + - Wed, 08 Jun 2022 18:01:59 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f6eca54e-d1d8-4b41-9263-6d71c4a58335?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-07T16:49:21.4366953+00:00", "id": "sanitized", + null, "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:26 GMT + - Wed, 08 Jun 2022 18:02:02 GMT ms-cv: - - aL0ztid9jkO29MA3wf/s1Q.0 + - 2MSgGRW+s0K8inmJxei0UQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T165026Z-sestwahv8t79zcvfazbahkxzq400000003eg00000001qhr8 + - 0F+SgYgAAAACt2WMAMGD7TJzFt5Xpb/jUWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 488ms + - 3376ms status: code: 200 message: OK @@ -278,9 +268,9 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:50:26 GMT + - Wed, 08 Jun 2022 18:02:03 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -292,7 +282,7 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-06-07T16:50:11.1922472+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-06-08T18:01:43.7922431+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: @@ -300,19 +290,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:28 GMT + - Wed, 08 Jun 2022 18:02:05 GMT ms-cv: - - p6AdsMrVpkeq/hQvP7QTig.0 + - yeu88UFdLEOXJ3RhBiPLPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 004GfYgAAAADAVw8yrkE/SK3iJQXSnesIWVZSMzExMDAwMTE1MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0G+SgYgAAAAAqDZN2dXA/SbZVXPJGmxDTWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1577ms + - 2066ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml index 76448d89e81..c18496a0724 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:50:48 GMT + - Wed, 08 Jun 2022 18:02:28 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -34,25 +34,25 @@ interactions: content-length: - '0' date: - - Tue, 07 Jun 2022 16:50:53 GMT + - Wed, 08 Jun 2022 18:02:30 GMT location: - - /availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 ms-cv: - - iYwl/ejm80qtndsUERhu6A.0 + - wc/MCoMN1keywSc8+QuPsg.0 operation-id: - - search_ee9cca71-855c-4633-bf39-53a6012dafd7 + - search_2d19903b-7822-4be9-86f8-377c31f6ebd8 operation-location: - - /phoneNumbers/operations/search_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + - /phoneNumbers/operations/search_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 search-id: - - ee9cca71-855c-4633-bf39-53a6012dafd7 + - 2d19903b-7822-4be9-86f8-377c31f6ebd8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 06oGfYgAAAAAl2RttIh9iQamwT6eORoZaWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0NOSgYgAAAAC68Dpsh9UXQpx3Q4xyPfU5WVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3447ms + - 3153ms status: code: 202 message: Accepted @@ -66,20 +66,20 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:51:23 GMT + - Wed, 08 Jun 2022 18:03:01 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07", - "createdDateTime": "2022-06-07T16:50:53.3910602+00:00", "id": "search_ee9cca71-855c-4633-bf39-53a6012dafd7", + "/availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:02:30.9157918+00:00", "id": "search_2d19903b-7822-4be9-86f8-377c31f6ebd8", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -89,21 +89,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:51:24 GMT + - Wed, 08 Jun 2022 18:03:01 GMT location: - - /availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 ms-cv: - - UngkBA2rBkKc8tRbfelKzA.0 + - BkOg+uQH/0+c8J3mWA1Ntw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0C4KfYgAAAAAngTTKb3pUTqEAXfVdVM/7WVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0VeSgYgAAAACdaRoazdmkRIwEjtG5OEeUWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 829ms + - 440ms status: code: 200 message: OK @@ -118,47 +118,47 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:51:23 GMT + - Wed, 08 Jun 2022 18:03:02 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 response: body: - string: '{"searchId": "ee9cca71-855c-4633-bf39-53a6012dafd7", "phoneNumbers": - ["+18772134052"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8", "phoneNumbers": + ["+18772136127"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-07T17:06:55.6396441+00:00"}' + "2022-06-08T18:18:34.2527577+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:51:26 GMT + - Wed, 08 Jun 2022 18:03:02 GMT ms-cv: - - ALx0yJdkekWwufMIMSGqWQ.0 + - KftmnlmZCEuRQXGSAKSWew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0DIKfYgAAAABvcMhLYmg5QYUx12/W060BWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0VuSgYgAAAACzQX6HdkuVQo9jpwDikjNSWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1550ms + - 1351ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "ee9cca71-855c-4633-bf39-53a6012dafd7"}' + body: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8"}' headers: Accept: - application/json @@ -171,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:51:25 GMT + - Wed, 08 Jun 2022 18:03:03 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - - 5yw4kaI6G0V6H2Gs3qfS3+QcyR8ogW3Dg/Zh+i2YqiU= + - 6KqXgRvvk0OY7unyaDWoIwxdZiw3zPrEZA+ZxnoQtiE= x-ms-return-client-request-id: - 'true' method: POST @@ -191,23 +191,23 @@ interactions: content-length: - '0' date: - - Tue, 07 Jun 2022 16:51:33 GMT + - Wed, 08 Jun 2022 18:03:05 GMT ms-cv: - - temtoeOn30ewsj/QYbulYw.0 + - cFfdSeiOBkCKoxwWgQ7Tvg.0 operation-id: - - purchase_ee9cca71-855c-4633-bf39-53a6012dafd7 + - purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8 operation-location: - - /phoneNumbers/operations/purchase_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 purchase-id: - - ee9cca71-855c-4633-bf39-53a6012dafd7 + - 2d19903b-7822-4be9-86f8-377c31f6ebd8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0DoKfYgAAAABHbdbb7zp4RoN3QW0OCRqHWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0V+SgYgAAAAC7WoZTMar7SbFI/I34BaOPWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 7016ms + - 2356ms status: code: 202 message: Accepted @@ -221,19 +221,19 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:52:02 GMT + - Wed, 08 Jun 2022 18:03:36 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ee9cca71-855c-4633-bf39-53a6012dafd7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-07T16:50:53.3910602+00:00", "id": "purchase_ee9cca71-855c-4633-bf39-53a6012dafd7", + null, "createdDateTime": "2022-06-08T18:02:30.9157918+00:00", "id": "purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -241,19 +241,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:52:03 GMT + - Wed, 08 Jun 2022 18:03:35 GMT ms-cv: - - JvabvPlMikKmJC5phR0GzQ.0 + - yK2hANyhFEWAxcVDTeQ+gw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0M4KfYgAAAAAB2n89vjlHSYFwyLVPy3+WWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0d+SgYgAAAACkf6llJn4PRJ7zBU8vQCrqWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 509ms + - 605ms status: code: 200 message: OK @@ -274,11 +274,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:52:03 GMT + - Wed, 08 Jun 2022 18:03:37 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - - 8IqErFZJO03++b6Ig5TBjgSWsq/79CpHr8d0f0mWR+s= + - MHxiUlyEp5c1qcJx+CiIZ0pGD9nPTrRNrJLpmTrI9fE= x-ms-return-client-request-id: - 'true' method: POST @@ -293,19 +293,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:52:04 GMT + - Wed, 08 Jun 2022 18:03:37 GMT ms-cv: - - ztjfcQ4AvEGtZodYweSVFQ.0 + - caOZFxgqzEq0S5SXOsANOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0NIKfYgAAAABQ2L2NGqyDQJDughSay9HBWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0eOSgYgAAAADLZumqCoXoRL4bqT/E1BTrWVZSMzExMDAwMTE1MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 276ms + - 147ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml index 0e509d35c6e..d924533ff31 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:11 GMT + - Wed, 08 Jun 2022 18:00:50 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -31,30 +31,28 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-length: - '0' date: - - Tue, 07 Jun 2022 16:49:16 GMT + - Wed, 08 Jun 2022 18:00:54 GMT location: - - /availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 ms-cv: - - ldrH6ivgTEGIlFc6j7M2/Q.0 + - +95abflzOUmlk3tSLWhRLQ.0 operation-id: - - search_ea524178-f91a-46ba-abf5-3953c481498d + - search_1a2d9e4f-67ac-4504-8085-bf164927bab1 operation-location: - - /phoneNumbers/operations/search_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + - /phoneNumbers/operations/search_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 search-id: - - ea524178-f91a-46ba-abf5-3953c481498d + - 1a2d9e4f-67ac-4504-8085-bf164927bab1 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164912Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000ubsv + - 00uOgYgAAAAAS+y0Jx9PyRprYYcDyXUEjWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3832ms + - 4165ms status: code: 202 message: Accepted @@ -68,46 +66,44 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:49:45 GMT + - Wed, 08 Jun 2022 18:01:25 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07", - "createdDateTime": "2022-06-07T16:49:16.0554878+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: - Location api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:46 GMT + - Wed, 08 Jun 2022 18:01:24 GMT location: - - /availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 ms-cv: - - IPxaddVdDkOB6pkCBKRl6w.0 + - 9+nN/zPYvEyJH6ULvl7dvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T164946Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000umy5 + - 09eOgYgAAAACO5C35sAplQrhPfjRIIIDkWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 439ms status: code: 200 message: OK @@ -122,49 +118,47 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:49:46 GMT + - Wed, 08 Jun 2022 18:01:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 response: body: - string: '{"searchId": "ea524178-f91a-46ba-abf5-3953c481498d", "phoneNumbers": + string: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-07T17:05:18.8626438+00:00"}' + "2022-06-08T18:16:56.9281142+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:49:48 GMT + - Wed, 08 Jun 2022 18:01:26 GMT ms-cv: - - a/OKCyFxFUatgfrToBqq9w.0 + - DfhdOwAgzkuRawjRAras0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T164946Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000un1y + - 09eOgYgAAAACzzt9J629RQ4ozG60tJ887WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1028ms + - 945ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "ea524178-f91a-46ba-abf5-3953c481498d"}' + body: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1"}' headers: Accept: - application/json @@ -177,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 07 Jun 2022 16:49:47 GMT + - Wed, 08 Jun 2022 18:01:27 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - - uj5IDWPgHmy6kj1kn5ZgfunuOxtJ/TvQyWwxP2vEb3U= + - v84BmvdsKwYRawMlPEH3VbuI+187cFdqCQSoJro/11E= x-ms-return-client-request-id: - 'true' method: POST @@ -194,28 +188,26 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-length: - '0' date: - - Tue, 07 Jun 2022 16:49:50 GMT + - Wed, 08 Jun 2022 18:01:28 GMT ms-cv: - - A866GpEUKkqvfbaSS7fywg.0 + - /O20/K3SKkeqgSvN2PRshw.0 operation-id: - - purchase_ea524178-f91a-46ba-abf5-3953c481498d + - purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1 operation-location: - - /phoneNumbers/operations/purchase_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 purchase-id: - - ea524178-f91a-46ba-abf5-3953c481498d + - 1a2d9e4f-67ac-4504-8085-bf164927bab1 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220607T164948Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000unc7 + - 09uOgYgAAAADXwQN7buKLTqLYWJYgXcY2WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1959ms + - 2091ms status: code: 202 message: Accepted @@ -229,41 +221,39 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:50:19 GMT + - Wed, 08 Jun 2022 18:01:59 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ea524178-f91a-46ba-abf5-3953c481498d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-07T16:49:16.0554878+00:00", "id": "sanitized", + null, "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:20 GMT + - Wed, 08 Jun 2022 18:01:59 GMT ms-cv: - - PeocuSA5EUKdwPvhl/ogFg.0 + - cx4cPLs0bEmoRvdTGlJGYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T165020Z-z9usm0frm93kzc2pnxcrfe5upw00000003fg00000000uvra + - 0F+SgYgAAAADOic9R8uaWTJ/mL8KB/xBVWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 416ms + - 384ms status: code: 200 message: OK @@ -278,9 +268,9 @@ interactions: Connection: - keep-alive Date: - - Tue, 07 Jun 2022 16:50:19 GMT + - Wed, 08 Jun 2022 18:02:00 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.10.4 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -291,29 +281,27 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-06-07T16:50:04.9740502+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-06-08T18:01:44.9739305+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 07 Jun 2022 16:50:23 GMT + - Wed, 08 Jun 2022 18:02:01 GMT ms-cv: - - pS4NwAC+p0aV0WwyRKlU8w.0 + - p1Tqe4PGSUyRGbMpaAW3xg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220607T165021Z-wx0fan7kkh6m1e83y5n99ure5n00000003eg00000000rwkx + - 0F+SgYgAAAAA7kwsqPWzWR4qQCGjVjRalWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1889ms + - 2459ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md index d0cadd511f8..d2842a5aca3 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md @@ -1,10 +1,10 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2022-06-07 16:53:32.143302|2022-06-07 16:53:32.338883| -|step_show|successed||||2022-06-07 16:53:32.339865|2022-06-07 16:53:32.407601| -|step_list|successed||||2022-06-07 16:53:32.408601|2022-06-07 16:53:32.473460| -|step_update|successed||||2022-06-07 16:53:32.474483|2022-06-07 16:53:32.539061| -|step_link_notification_hub|successed||||2022-06-07 16:53:32.540152|2022-06-07 16:53:32.614876| -|step_list_key|successed||||2022-06-07 16:53:32.614876|2022-06-07 16:53:32.691045| -|step_regenerate_key|successed||||2022-06-07 16:53:32.692047|2022-06-07 16:53:32.781656| -|step_delete|successed||||2022-06-07 16:53:32.781656|2022-06-07 16:53:33.222283| +|step_create|successed||||2022-06-08 18:52:11.409628|2022-06-08 18:52:11.498719| +|step_show|successed||||2022-06-08 18:52:11.498719|2022-06-08 18:52:11.517137| +|step_list|successed||||2022-06-08 18:52:11.517137|2022-06-08 18:52:11.533773| +|step_update|successed||||2022-06-08 18:52:11.533773|2022-06-08 18:52:11.565078| +|step_link_notification_hub|successed||||2022-06-08 18:52:11.565078|2022-06-08 18:52:11.581173| +|step_list_key|successed||||2022-06-08 18:52:11.581173|2022-06-08 18:52:11.596888| +|step_regenerate_key|successed||||2022-06-08 18:52:11.596888|2022-06-08 18:52:11.612457| +|step_delete|successed||||2022-06-08 18:52:11.612457|2022-06-08 18:52:12.310677| Coverage: 8/8