From f12443e519f351609c8bb1bf8e2c67ef8fe6bb00 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Wed, 27 Jul 2022 14:39:44 -0700 Subject: [PATCH 01/26] Added initial acs auth commands --- .../azext_communication/manual/_params.py | 3 + .../azext_communication/manual/commands.py | 3 +- .../azext_communication/manual/custom.py | 6 +- .../recordings/test_revoke_access_tokens.yaml | 150 ++++++++++++++++++ .../test_communication_identity_scenario.py | 19 ++- .../latest/test_communication_scenario.py | 2 +- .../test_communication_scenario_coverage.md | 16 +- 7 files changed, 186 insertions(+), 13 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index eb085b6a3f1..f2f3f27ef8f 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -12,6 +12,9 @@ def load_arguments(self, _): c.argument('userid', options_list=['--userid', '-u'], type=str, help='ACS identifier') c.argument('scopes', options_list=[ '--scope', '-s'], nargs='+', help='list of scopes for an access token ex: chat/voip') + + with self.argument_context('communication identity revoke-access-tokens') as c: + c.argument('userid', options_list=['--userid', '-u'], type=str, help='ACS identifier') with self.argument_context('communication sms send-sms') as c: c.argument('sender', options_list=['--sender', '-s'], type=str, help='The sender of the SMS') diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index 063ddaadfb6..fabe3cb41c9 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -12,7 +12,8 @@ def load_command_table(self, _): with self.command_group('communication identity', client_factory=cf_communication_identity) as g: - g.communication_custom_command('issue-access-token', "issue_access_token", client_factory=cf_communication_identity) + g.communication_custom_command('issue-access-token', "communication_issue_access_token") + g.communication_custom_command('revoke-access-tokens', "communication_revoke_access_tokens") with self.command_group('communication sms', client_factory=cf_communication_sms) as g: g.communication_custom_command('send-sms', 'communication_send_sms') diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index 1ea75facdb1..9a6127a70e9 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -7,7 +7,7 @@ from azure.communication.identity import CommunicationUserIdentifier -def issue_access_token(client, scopes, userid=None): +def communication_issue_access_token(client, scopes, userid=None): user_token_data = {"user_id": userid, "token": "", "expires_on": ""} if userid is not None: user = CommunicationUserIdentifier(userid) @@ -24,6 +24,10 @@ def issue_access_token(client, scopes, userid=None): return user_token_data +def communication_revoke_access_tokens(client, userid): + return client.revoke_tokens(CommunicationUserIdentifier(userid)) + + def communication_send_sms(client, sender, recipients, message): return client.send(from_=sender, to=recipients, message=message) diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml new file mode 100644 index 00000000000..07b69015e9c --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -0,0 +1,150 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Wed, 27 Jul 2022 21:39:47 GMT + User-Agent: + - 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: + - '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 + content-length: + - '33' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 21:39:45 GMT + ms-cv: + - TwnPFR8x6Ue+TvkID+dBww.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0orDhYgAAAAAyfKTO1tl1T6z3y+f02TItU0pDRURHRTA1MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 44ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Wed, 27 Jul 2022 21:39:47 GMT + User-Agent: + - 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: + - '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-07-28T21:39:47.113019+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 + content-length: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 21:39:46 GMT + ms-cv: + - s0N75TDNcEmawjMAFlRzFQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0o7DhYgAAAABbkxVg+vhLTait6F8rANmLU0pDRURHRTA1MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 53ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Wed, 27 Jul 2022 21:39:47 GMT + User-Agent: + - azsdk-python-communication-identity/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: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + date: + - Wed, 27 Jul 2022 21:39:47 GMT + ms-cv: + - sfkN3e8U4keoJa0u0hw+lg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0o7DhYgAAAAD88sIbUttsR5bYmBCvq0QwU0pDRURHRTA1MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 43ms + status: + code: 204 + message: No Content +version: 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index 3c5649ab9f1..21af38d351d 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -36,7 +36,7 @@ def test_issue_access_token(self, communication_resource_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_issue_access_token_with_id(self, communication_resource_info): - + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) @@ -54,4 +54,19 @@ def test_issue_access_token_with_multiple_scopes(self, communication_resource_in val = self.cmd( 'az communication identity issue-access-token --scope voip chat').get_output_in_json() - self.assertIsNotNone(val['token']) \ No newline at end of file + self.assertIsNotNone(val['token']) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_revoke_access_tokens(self, communication_resource_info): + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) + self.kwargs.update({'id': id}) + + val = self.cmd( + 'az communication identity issue-access-token --scope chat').get_output_in_json() + self.assertIsNotNone(val['token']) + + self.cmd( + 'az communication identity revoke-access-tokens --userid {id}') 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 4f9661e2a60..656598d03ec 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -73,7 +73,7 @@ def call_scenario(test, rg_2, rg): cleanup_scenario(test, rg_2, rg) -# Test class for Scenario +# # Test class for Scenario @try_manual class CommunicationScenarioTest(ScenarioTest): 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 010115e5b32..84d80f490a6 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-14 20:22:12.670095|2022-06-14 20:22:13.070010| -|step_show|successed||||2022-06-14 20:22:13.070010|2022-06-14 20:22:13.220678| -|step_list|successed||||2022-06-14 20:22:13.220678|2022-06-14 20:22:13.369475| -|step_update|successed||||2022-06-14 20:22:13.369475|2022-06-14 20:22:13.486456| -|step_link_notification_hub|successed||||2022-06-14 20:22:13.486456|2022-06-14 20:22:13.603087| -|step_list_key|successed||||2022-06-14 20:22:13.603087|2022-06-14 20:22:13.734181| -|step_regenerate_key|successed||||2022-06-14 20:22:13.734181|2022-06-14 20:22:13.847652| -|step_delete|successed||||2022-06-14 20:22:13.847652|2022-06-14 20:22:14.507921| +|step_create|successed||||2022-07-27 21:16:59.856147|2022-07-27 21:18:33.495744| +|step_show|successed||||2022-07-27 21:18:33.495744|2022-07-27 21:18:34.334230| +|step_list|successed||||2022-07-27 21:18:34.335242|2022-07-27 21:18:34.908548| +|step_update|successed||||2022-07-27 21:18:34.909546|2022-07-27 21:18:37.471386| +|step_link_notification_hub|successed||||2022-07-27 21:18:37.472387|2022-07-27 21:18:39.016204| +|step_list_key|successed||||2022-07-27 21:18:39.017211|2022-07-27 21:18:40.006551| +|step_regenerate_key|successed||||2022-07-27 21:18:40.006551|2022-07-27 21:18:41.130284| +|step_delete|successed||||2022-07-27 21:18:41.130284|2022-07-27 21:20:13.496139| Coverage: 8/8 From f3d67e50aa12fb40242dc137357136d5995fe889 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Wed, 3 Aug 2022 10:33:57 -0700 Subject: [PATCH 02/26] [Communication] add chat command group in preview mode. --- src/communication/HISTORY.rst | 5 + src/communication/README.md | 60 ++++++++ .../azext_communication/__init__.py | 29 +++- .../manual/_client_factory.py | 9 ++ .../azext_communication/manual/_params.py | 134 ++++++++++++++++-- .../azext_communication/manual/_validators.py | 16 +++ .../azext_communication/manual/commands.py | 34 ++++- .../azext_communication/manual/custom.py | 100 ++++++++++++- src/communication/setup.py | 5 +- 9 files changed, 367 insertions(+), 25 deletions(-) diff --git a/src/communication/HISTORY.rst b/src/communication/HISTORY.rst index 3ea0b309ff8..b6d4892ff4e 100644 --- a/src/communication/HISTORY.rst +++ b/src/communication/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +1.2.0 +++++++ +* Add communication chat command group in preview mode. + + 1.1.2 ++++++ * Add support for multiple SMS recipients. diff --git a/src/communication/README.md b/src/communication/README.md index ca5cb804b7f..43b97ee4cc8 100644 --- a/src/communication/README.md +++ b/src/communication/README.md @@ -9,6 +9,10 @@ az extension add --name communication Then set the `AZURE_COMMUNICATION_CONNECTION_STRING` environment variable with your ACS connection string. +For chat module, set both `AZURE_COMMUNICAITON_ENDPOINT` and `AZURE_COMMUNICATION_ACCESS_TOKEN` environment variables. +You can find your endpoint from your in Azure Portal under your communication resource, and an access token can be created with +```az communication identity issue-access-token --scope chat```. + ### Included Features ### ##### Create ##### @@ -70,3 +74,59 @@ az communication phonenumbers list-phonenumbers ``` az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx" ``` +##### List-Threads ##### +``` +az communication chat list-threads --start-time "2022-07-14T10:20:30" +``` +##### Create-Thread ##### +``` +az communication chat create-thread --topic "New Topic for Chat!" --idempotency-token "abc187xxxxxx" +``` +##### Delete-Thread ##### +``` +az communication chat delete-thread --thread-id "19:xxxxxx" +``` +##### List-Participants ##### +``` +az communication chat list-participants --thread-id "19:xxxxxx" --skip "5" +``` +##### Add-Participant ##### +``` +az communication chat add-participant --thread-id "19:xxxxxx" --user-id "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-06-30T00:00:00" +``` +##### Remove-Participant ##### +``` +az communication chat remove-participant --thread-id "19:xxxxxx" --user-id "8:acs:xxxxxx" +``` +##### Send-Message ##### +``` +az communication chat send-message --thread-id "19:xxxxxx" --display-name "John Doe" --content "Hello there!" --message-type "text" +``` +##### List-Messages ##### +``` +az communication chat list-messages --thread-id "19:xxxxxx" --start-time "2022-07-14T10:20:30" +``` +##### Get-Message ##### +``` +az communication chat get-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" +``` +##### Update-Message ##### +``` +az communication chat update-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" --message_content "Hello there, again!" +``` +##### Delete-Message ##### +``` +az communication chat delete-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" +``` +##### Update Topic ##### +``` +az communication chat update-topic --thread-id "19:xxxxxx" --topic "New topic!" +``` +##### List-Read-Receipts ##### +``` +az communication chat list-read-receipts --thread-id "19:xxxxxx" --skip "5" +``` +##### Send-Read-Receipt ##### +``` +az communication chat send-read-receipt --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" +``` diff --git a/src/communication/azext_communication/__init__.py b/src/communication/azext_communication/__init__.py index cc078cff820..92b97658278 100644 --- a/src/communication/azext_communication/__init__.py +++ b/src/communication/azext_communication/__init__.py @@ -51,13 +51,15 @@ def load_arguments(self, command): class CommunicationCommandGroup(AzCommandGroup): - def communication_custom_command(self, name, method_name, **kwargs): + def communication_custom_command(self, name, method_name, arguments, **kwargs): command_name = self.custom_command(name, method_name, **kwargs) - self._register_data_plane_account_arguments(command_name) + self._register_data_plane_account_arguments(command_name, arguments) - def _register_data_plane_account_arguments(self, command_name): + def _register_data_plane_account_arguments(self, command_name, arguments): """ Add parameters required to create a communication client """ from .manual._validators import validate_client_parameters + from .manual._validators import validate_endpoint + from .manual._validators import validate_access_token command = self.command_loader.command_table.get(command_name, None) @@ -65,10 +67,23 @@ def _register_data_plane_account_arguments(self, command_name): return group_name = 'communication' - command.add_argument('connection_string', '--connection-string', required=False, default=None, - validator=validate_client_parameters, arg_group=group_name, - help='Communication connection string. Environment variable: ' - 'AZURE_COMMUNICATION_CONNECTION_STRING') + if 'connection_string' in arguments: + command.add_argument('connection_string', '--connection-string', required=False, default=None, + validator=validate_client_parameters, arg_group=group_name, + help='Communication connection string. Environment variable: ' + 'AZURE_COMMUNICATION_CONNECTION_STRING') + + if 'endpoint' in arguments: + command.add_argument('endpoint', '--endpoint', required=False, default=None, + validator=validate_endpoint, arg_group=group_name, + help='Communication endpoint. Environment variable: ' + 'AZURE_COMMUNICATION_ENDPOINT') + + if 'access_token' in arguments: + command.add_argument('access_token', '--access-token', required=False, default=None, + validator=validate_access_token, arg_group=group_name, + help='Communication access token. Environment variable: ' + 'AZURE_COMMUNICATION_ACCESS_TOKEN') COMMAND_LOADER_CLS = CommunicationServiceManagementClientCommandsLoader diff --git a/src/communication/azext_communication/manual/_client_factory.py b/src/communication/azext_communication/manual/_client_factory.py index ca095c3502f..17c77307e8d 100644 --- a/src/communication/azext_communication/manual/_client_factory.py +++ b/src/communication/azext_communication/manual/_client_factory.py @@ -5,6 +5,7 @@ # pylint: disable=unused-argument + def cf_communication_identity(cli_ctx, kwargs): from azure.communication.identity import CommunicationIdentityClient connection_string = kwargs.pop('connection_string', None) @@ -24,3 +25,11 @@ def cf_communication_phonenumbers(cli_ctx, kwargs): connection_string = kwargs.pop('connection_string', None) client = PhoneNumbersClient.from_connection_string(connection_string) return client + + +def cf_communication_chat(cli_ctx, kwargs): + from azure.communication.chat import ChatClient, CommunicationTokenCredential + endpoint = kwargs.pop('endpoint', None) + token = kwargs.pop('access_token', None) + client = ChatClient(endpoint, CommunicationTokenCredential(token)) + return client diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index eb085b6a3f1..e37ab236d12 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -8,17 +8,133 @@ def load_arguments(self, _): with self.argument_context('communication update') as c: c.argument('location', validator=None) + _load_identity_arguments(self) + _load_sms_arguments(self) + _load_phonenumber_arguments(self) + _load_chat_arguments(self) + + +def _load_identity_arguments(self): with self.argument_context('communication identity issue-access-token') as c: - c.argument('userid', options_list=['--userid', '-u'], type=str, help='ACS identifier') - c.argument('scopes', options_list=[ - '--scope', '-s'], nargs='+', help='list of scopes for an access token ex: chat/voip') + c.argument('userid', options_list=['--userid', '-u'], + type=str, help='ACS identifier') + c.argument('scopes', options_list=['--scope', '-s'], + nargs='+', help='list of scopes for an access token ex: chat/voip') + +def _load_sms_arguments(self): with self.argument_context('communication sms send-sms') as c: - c.argument('sender', options_list=['--sender', '-s'], type=str, help='The sender of the SMS') - c.argument('recipients', options_list=[ - '--recipient', '-r'], nargs='+', help='The recipient(s) of the SMS') - c.argument('message', options_list=['--message', '-m'], type=str, help='The message in the SMS') + c.argument('sender', options_list=['--sender', '-s'], + type=str, help='The sender of the SMS') + c.argument('recipients', options_list=['--recipient', '-r'], + nargs='+', help='The recipient(s) of the SMS') + c.argument('message', options_list=['--message', '-m'], + type=str, help='The message in the SMS') + +def _load_phonenumber_arguments(self): with self.argument_context('communication phonenumbers show-phonenumber') as c: - c.argument('phonenumber', options_list=[ - '--phonenumber', '-p'], type=str, help='Phone number to get information about') + c.argument('phonenumber', options_list=['--phonenumber', '-p'], + type=str, help='Phone number to get information about') + + +def _load_chat_arguments(self): + _load_chat_thread_management(self) + _load_chat_participant_management(self) + _load_chat_message_management(self) + + +def _load_chat_thread_management(self): + with self.argument_context('communication chat list-threads') as c: + c.argument('start_time', options_list=['--start-time', '-s'], + type=str, help='Start time in ISO8601 format, ex: 2022-07-14T10:21') + + with self.argument_context('communication chat create-thread') as c: + c.argument('topic', options_list=['--topic', '-p'], + type=str, help='Chat topic') + c.argument('idempotency_token', options_list=['--idempotency-token'], + type=str, help='Idempotency token') + + with self.argument_context('communication chat delete-thread') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + + +def _load_chat_participant_management(self): + with self.argument_context('communication chat list-participants') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('skip', options_list=['--skip'], + type=str, help='Number of participants to skip') + + with self.argument_context('communication chat add-participant') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('user_id', options_list=['--user-id', '-u'], + type=str, help='Chat participant identifier') + c.argument('display_name', options_list=['--display-name', '-d'], + type=str, help='Chat participant display name') + c.argument('start_time', options_list=['--start-time', '-s'], + type=str, help='Start time to share history in ISO8601 format, ex: 2022-07-14T10:21') + + with self.argument_context('communication chat remove-participant') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('user_id', options_list=['--user-id', '-u'], + type=str, help='Chat participant identifier') + + +def _load_chat_message_management(self): + with self.argument_context('communication chat send-message') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('display_name', options_list=['--display-name', '-d'], + type=str, help='Sender''s display name') + c.argument('message_content', options_list=['--content', '-c'], + type=str, help='Chat message content') + c.argument('message_type', options_list=['--message-type', '-y'], + type=str, help='Content type, can be text or html') + + with self.argument_context('communication chat list-messages') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('start_time', options_list=['--start-time', '-s'], + type=str, help='Start time in ISO8601 format, ex: 2022-07-14T10:21') + + with self.argument_context('communication chat get-message') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('message_id', options_list=['--message-id', '-i'], + type=str, help='Message id') + + with self.argument_context('communication chat update-message') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('message_id', options_list=['--message-id', '-i'], + type=str, help='Message id') + c.argument('message_content', options_list=['--content', '-c'], + type=str, help='Chat message content') + + with self.argument_context('communication chat delete-message') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('message_id', options_list=['--message-id', '-i'], + type=str, help='Message id') + + with self.argument_context('communication chat update-topic') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('topic', options_list=['--topic', '-p'], + type=str, help='Chat topic') + + with self.argument_context('communication chat list-read-receipts') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('skip', options_list=['--skip'], + type=str, help='Number of read receipts to skip') + + with self.argument_context('communication chat send-read-receipt') as c: + c.argument('thread_id', options_list=['--thread-id', '-t'], + type=str, help='Thread id') + c.argument('message_id', options_list=['--message-id', '-i'], + type=str, help='Message id') diff --git a/src/communication/azext_communication/manual/_validators.py b/src/communication/azext_communication/manual/_validators.py index b277561b571..f6bbcda1078 100644 --- a/src/communication/azext_communication/manual/_validators.py +++ b/src/communication/azext_communication/manual/_validators.py @@ -15,3 +15,19 @@ def validate_client_parameters(cmd, namespace): if not n.connection_string: n.connection_string = get_config_value(cmd, 'communication', 'connection_string', None) + + +def validate_endpoint(cmd, namespace): + """ Retrieves communication connection parameters from environment variables """ + n = namespace + + if not n.endpoint: + n.endpoint = get_config_value(cmd, 'communication', 'endpoint', None) + + +def validate_access_token(cmd, namespace): + """ Retrieves communication connection parameters from environment variables """ + n = namespace + + if not n.access_token: + n.access_token = get_config_value(cmd, 'communication', 'access_token', None) diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index 063ddaadfb6..a48cecdfd4e 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -7,16 +7,42 @@ from azext_communication.manual._client_factory import cf_communication_identity from azext_communication.manual._client_factory import cf_communication_sms from azext_communication.manual._client_factory import cf_communication_phonenumbers +from azext_communication.manual._client_factory import cf_communication_chat def load_command_table(self, _): + identity_arguments = ['connection_string'] with self.command_group('communication identity', client_factory=cf_communication_identity) as g: - g.communication_custom_command('issue-access-token', "issue_access_token", client_factory=cf_communication_identity) + g.communication_custom_command('issue-access-token', "issue_access_token", identity_arguments, client_factory=cf_communication_identity) + sms_arguments = ['connection_string'] with self.command_group('communication sms', client_factory=cf_communication_sms) as g: - g.communication_custom_command('send-sms', 'communication_send_sms') + g.communication_custom_command('send-sms', 'communication_send_sms', sms_arguments) + phonenumber_arguments = ['connection_string'] with self.command_group('communication phonenumbers', client_factory=cf_communication_phonenumbers) as g: - g.communication_custom_command('list-phonenumbers', 'communication_list_phonenumbers') - g.communication_custom_command('show-phonenumber', 'communication_show_phonenumber') + g.communication_custom_command('list-phonenumbers', 'communication_list_phonenumbers', phonenumber_arguments) + g.communication_custom_command('show-phonenumber', 'communication_show_phonenumber', phonenumber_arguments) + + chat_arguments = ['endpoint', 'access_token'] + with self.command_group('communication chat', client_factory=cf_communication_chat) as g: + # thread management + g.communication_custom_command('list-threads', 'communication_chat_list_threads', chat_arguments) + g.communication_custom_command('create-thread', 'communication_chat_create_thread', chat_arguments) + g.communication_custom_command('delete-thread', 'communication_chat_delete_thread', chat_arguments) + + # participant management + g.communication_custom_command('list-participants', 'communication_chat_list_participants', chat_arguments) + g.communication_custom_command('add-participant', 'communication_chat_add_participant', chat_arguments) + g.communication_custom_command('remove-participant', 'communication_chat_remove_participant', chat_arguments) + + # message management + g.communication_custom_command('list-messages', 'communication_chat_list_messages', chat_arguments) + g.communication_custom_command('send-message', 'communication_chat_send_message', chat_arguments) + g.communication_custom_command('get-message', 'communication_chat_get_message', chat_arguments) + g.communication_custom_command('update-message', 'communication_chat_update_message', chat_arguments) + g.communication_custom_command('delete-message', 'communication_chat_delete_message', chat_arguments) + g.communication_custom_command('update-topic', 'communication_chat_update_topic', chat_arguments) + g.communication_custom_command('list-read-receipts', 'communication_chat_list_read_receipts', chat_arguments) + g.communication_custom_command('send-read-receipt', 'communication_chat_send_read_receipt', chat_arguments) diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index 1ea75facdb1..887345189da 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -4,10 +4,8 @@ # -------------------------------------------------------------------------------------------- -from azure.communication.identity import CommunicationUserIdentifier - - def issue_access_token(client, scopes, userid=None): + from azure.communication.identity import CommunicationUserIdentifier user_token_data = {"user_id": userid, "token": "", "expires_on": ""} if userid is not None: user = CommunicationUserIdentifier(userid) @@ -34,3 +32,99 @@ def communication_list_phonenumbers(client): def communication_show_phonenumber(client, phonenumber): return client.get_purchased_phone_number(phonenumber) + + +def communication_chat_list_threads(client, start_time=None): + args = { + 'start_time': start_time, + } + return client.list_chat_threads(**args) + + +def communication_chat_create_thread(client, topic, idempotency_token=None): + args = { + 'idempotency_token': idempotency_token + } + return client.create_chat_thread(topic, **args) + + +def communication_chat_delete_thread(client, thread_id): + return client.delete_chat_thread(thread_id) + + +def communication_chat_list_participants(client, thread_id, skip=None): + args = { + 'skip': skip + } + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.list_participants(**args) + + +def communication_chat_add_participant(client, thread_id, user_id, display_name=None, start_time=None): + from azure.communication.chat import ChatParticipant + from azure.communication.identity import CommunicationUserIdentifier + + chat_thread_client = client.get_chat_thread_client(thread_id) + participant = ChatParticipant( + identifier=CommunicationUserIdentifier(user_id), + display_name=display_name, + share_history_time=start_time + ) + res = chat_thread_client.add_participants([participant]) + return [r[1] for r in res] + + +def communication_chat_remove_participant(client, thread_id, user_id): + from azure.communication.identity import CommunicationUserIdentifier + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.remove_participant(CommunicationUserIdentifier(user_id)) + + +def communication_chat_send_message(client, thread_id, message_content, message_type=None, display_name=None): + args = { + 'chat_message_type': message_type, + 'sender_display_name': display_name + } + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.send_message(message_content, **args) + + +def communication_chat_list_messages(client, thread_id, start_time=None): + args = { + 'start_time': start_time + } + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.list_messages(**args) + + +def communication_chat_get_message(client, thread_id, message_id): + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.get_message(message_id) + + +def communication_chat_update_message(client, thread_id, message_id, message_content): + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.update_message(message_id, message_content) + + +def communication_chat_delete_message(client, thread_id, message_id): + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.update_message(message_id) + + +def communication_chat_update_topic(client, thread_id, topic): + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.update_topic(topic) + + +def communication_chat_list_read_receipts(client, thread_id, skip=None): + args = { + 'skip': skip + } + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.list_read_receipts(**args) + + +def communication_chat_send_read_receipt(client, thread_id, message_id): + chat_thread_client = client.get_chat_thread_client(thread_id) + return chat_thread_client.send_read_receipt(message_id) diff --git a/src/communication/setup.py b/src/communication/setup.py index b58174c0e5e..ed9db695f4e 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.2' +VERSION = '1.2.0' try: from azext_communication.manual.version import VERSION except ImportError: @@ -31,7 +31,8 @@ ] DEPENDENCIES = ['azure-core', 'azure-communication-identity', - 'azure-communication-phonenumbers', 'azure-communication-sms'] + 'azure-communication-phonenumbers', 'azure-communication-sms', + 'azure-communication-chat'] try: from azext_communication.manual.dependency import DEPENDENCIES From 358374d1926d90b682b65fde8400f3b5e78b8cb9 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Wed, 3 Aug 2022 12:47:32 -0700 Subject: [PATCH 03/26] [Communication] fix revoke-access-tokens test --- .../latest/test_communication_identity_scenario.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index 21af38d351d..2cfafc8061d 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -26,7 +26,6 @@ def __init__(self, method_name): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_issue_access_token(self, communication_resource_info): - os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] val = self.cmd( @@ -60,13 +59,6 @@ def test_issue_access_token_with_multiple_scopes(self, communication_resource_in @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_revoke_access_tokens(self, communication_resource_info): os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] - id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) self.kwargs.update({'id': id}) - - val = self.cmd( - 'az communication identity issue-access-token --scope chat').get_output_in_json() - self.assertIsNotNone(val['token']) - - self.cmd( - 'az communication identity revoke-access-tokens --userid {id}') + self.cmd('az communication identity revoke-access-tokens --userid {id}') From 1b3266c7cb17079d529d28ea4b0ee7f11c7bfb4c Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 00:15:29 -0700 Subject: [PATCH 04/26] [Communication] add tests for chat command group --- .../tests/latest/preparers.py | 29 +- .../tests/latest/recording_processors.py | 12 +- .../recordings/test_chat_add_participant.yaml | 151 +++++ .../test_chat_add_participant_bad_user.yaml | 144 +++++ ...hat_add_participant_with_display_name.yaml | 152 +++++ ...hat_add_participant_with_history_time.yaml | 152 +++++ .../recordings/test_chat_create_thread.yaml | 52 ++ .../recordings/test_chat_delete_message.yaml | 138 +++++ .../recordings/test_chat_get_message.yaml | 141 +++++ .../recordings/test_chat_list_messages.yaml | 103 ++++ .../test_chat_list_participants.yaml | 94 ++++ ..._chat_list_participants_bad_thread_id.yaml | 42 ++ ...t_chat_list_threads_with_cmdline_auth.yaml | 42 ++ .../test_chat_list_threads_with_env_auth.yaml | 42 ++ .../recordings/test_chat_read_receipts.yaml | 229 ++++++++ .../test_chat_remove_participants.yaml | 318 +++++++++++ .../test_chat_send_html_message.yaml | 94 ++++ .../recordings/test_chat_send_message.yaml | 94 ++++ ...est_chat_send_message_without_content.yaml | 52 ++ .../test_chat_send_text_message.yaml | 98 ++++ .../recordings/test_chat_update_message.yaml | 136 +++++ .../recordings/test_chat_update_topic.yaml | 92 ++++ .../test_communication_Scenario.yaml | 160 +++--- .../recordings/test_issue_access_token.yaml | 18 +- .../test_issue_access_token_with_id.yaml | 32 +- ...sue_access_token_with_multiple_scopes.yaml | 110 ++-- .../recordings/test_list_phonenumbers.yaml | 132 ++--- .../recordings/test_revoke_access_tokens.yaml | 252 ++++----- .../latest/recordings/test_send_sms.yaml | 132 ++--- .../test_send_sms_n_recipients.yaml | 316 +++++------ .../recordings/test_show_phonenumbers.yaml | 134 ++--- .../test_communication_chat_scenario.py | 518 ++++++++++++++++++ 32 files changed, 3565 insertions(+), 646 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml create mode 100644 src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py diff --git a/src/communication/azext_communication/tests/latest/preparers.py b/src/communication/azext_communication/tests/latest/preparers.py index e41da6543ac..2989e38b985 100644 --- a/src/communication/azext_communication/tests/latest/preparers.py +++ b/src/communication/azext_communication/tests/latest/preparers.py @@ -34,7 +34,6 @@ def create_resource(self, name, **kwargs): group = self._get_resource_group(**kwargs) if not self.dev_setting_name: - template = 'az communication create --name {} --location {} --data-location "{}" --resource-group {} ' self.live_only_execute(self.cli_ctx, template.format( name, self.location, self.data_location, group)) @@ -45,12 +44,38 @@ def create_resource(self, name, **kwargs): account_key = self.live_only_execute(self.cli_ctx, 'az communication list-key --name {} --resource-group {} --query "primaryConnectionString" -otsv' .format(name, group)).output.strip() + endpoint_str = account_key.split(';')[0] + endpoint = endpoint_str.split('=')[1] except AttributeError: # live only execute returns None if playing from record account_key = None + endpoint = None + + try: + access_token_response = self.live_only_execute(self.cli_ctx, 'az communication identity issue-access-token --scope chat --query [user_id,token]') + res = access_token_response.get_output_in_json() + userid = res[0] + access_token = res[1] + except AttributeError: # live only execute returns None if playing from record + userid = None + access_token = None self.test_class_instance.kwargs[self.key] = name + + # header is encoded form of {"alg":"sanitized","kid":"1","x5t":"sanitized","typ":"sanitized"} + header = 'eyJhbGciOiJzYW5pdGl6ZWQiLCJraWQiOiIxIiwieDV0Ijoic2FuaXRpemVkIiwidHlwIjoic2FuaXRpemVkIn0=' + # payload is encoded form of {"skypeid":"acs:sanitized","scp":1792,"csi":"1657788332","exp":1657874732,"acsScope":"chat","resourceId":"sanitized","iat":1657788332} + payload = 'eyJza3lwZWlkIjoiYWNzOnNhbml0aXplZCIsInNjcCI6MTc5MiwiY3NpIjoiMTY1Nzc4ODMzMiIsImV4cCI6MTY1Nzg3NDczMiwiYWNzU2NvcGUiOiJjaGF0IiwicmVzb3VyY2VJZCI6InNhbml0aXplZCIsImlhdCI6MTY1Nzc4ODMzMn0=' + signature = '1234' + sanitized_token = '{header}.{payload}.{signature}'.format(header=header, payload=payload, signature=signature) + return {self.parameter_name: name, - self.parameter_name + '_info': (name, account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake===')} + self.parameter_name + '_info': (name, account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake==='), + self.parameter_name + '_chat_info': + (name, + endpoint or 'https://sanitized.communication.azure.com/', + userid or '8:fake===', + access_token or sanitized_token, + account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake===')} def remove_resource(self, name, **kwargs): if not self.skip_delete and not self.dev_setting_name: diff --git a/src/communication/azext_communication/tests/latest/recording_processors.py b/src/communication/azext_communication/tests/latest/recording_processors.py index 7286235e088..41b097c13fa 100644 --- a/src/communication/azext_communication/tests/latest/recording_processors.py +++ b/src/communication/azext_communication/tests/latest/recording_processors.py @@ -22,15 +22,19 @@ class URIIdentityReplacer(RecordingProcessor): def process_request(self, request): resource = (urlparse(request.uri).netloc).split('.')[0] - request.uri = re.sub('phoneNumbers/[%2B\d]+', 'phoneNumbers/sanitized', request.uri) - request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) + request.uri = re.sub('/phoneNumbers/[%2B\d]+', '/phoneNumbers/sanitized', request.uri) + request.uri = re.sub('/identities/([^/?]+)', '/identities/sanitized', request.uri) + request.uri = re.sub('/chat/threads/([^/?]+)', '/chat/threads/sanitized', request.uri) + request.uri = re.sub('/chat/threads/([^/?]+)/messages/([^/?]+)', '/chat/threads/sanitized/messages/sanitized', request.uri) request.uri = re.sub(resource, 'sanitized', request.uri) return request def process_response(self, response): if 'url' in response: - response['url'] = re.sub('phoneNumbers/[%2B\d]+', 'phoneNumbers/sanitized', response['url']) + response['url'] = re.sub('/phoneNumbers/[%2B\d]+', '/phoneNumbers/sanitized', response['url']) response['url'] = re.sub('/identities/([^/?]+)', '/identities/sanitized', response['url']) + response['url'] = re.sub('/chat/threads/([^/?]+)', '/chat/threads/sanitized', response['url']) + response['url'] = re.sub('/chat/threads/([^/?]+)/messages/([^/?]+)', '/chat/threads/sanitized/messages/sanitized', response['url']) return response @@ -146,4 +150,4 @@ def _replace_recursively(dictionary): except (KeyError, ValueError): return body - return json.dumps(body) \ No newline at end of file + return json.dumps(body) diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml new file mode 100644 index 00000000000..5949bd3e2fa --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -0,0 +1,151 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:39:33 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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-08-05T03:39:34.7847112+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: + - Thu, 04 Aug 2022 03:39:34 GMT + ms-cv: + - sPV7Pk7AK02nNd9uty4JBg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T033934Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000000kwtq + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 119ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - c5ff836e-0341-4f65-94bd-a70d5cd9f20b + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-04T03:39:35Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:36 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3ALpGBMaSPZ-oks8DOOeYYbHRQRd9AUOTYrqd87aM_f7g1@thread.v2 + ms-cv: + - CwrWzTB9RkeuwjR0LOooIA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033935Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000010thw + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 793ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8bfa-80f5-8b3a0d002bc7"}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:36 GMT + ms-cv: + - UxM7ntBg60GqCJA8Y70Tgw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033936Z-afb852g2vh6591nsqudzty20xs00000001n0000000009e1w + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 327ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml new file mode 100644 index 00000000000..2b818164fa7 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -0,0 +1,144 @@ +interactions: +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 597b6758-8cb1-43ce-baf4-c6b2e72a26e8 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:34 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AA4vKcuig2UksBOy7yIYC6WBzouKPIG8IYEayPuoLTMI1@thread.v2 + ms-cv: + - Awu1kQJXEEGmvyoF02zqEg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033934Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000034qu3 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 686ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{"invalidParticipants": [{"code": "403", "message": "Permissions check + failed", "target": "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:35 GMT + ms-cv: + - tIsW5/pa7UOZvXOzGhh69w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033934Z-k97maztpax51x2ee2r7vqbw7wg00000001m000000000rc1d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 193ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:fakeid==="}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{"CommunicationError": {"Code": "BadRequest", "Message": "Identifier + format is invalid (8:acs:fakeid===).", "Details": []}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json + date: + - Thu, 04 Aug 2022 03:39:35 GMT + ms-cv: + - N+GfRb0kf0uNdLVeSx3oCg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033935Z-q1z3stmybd47948vv0qhv9299w00000001ng0000000020mn + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 22ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml new file mode 100644 index 00000000000..c4094696ddd --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -0,0 +1,152 @@ +interactions: +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 74163ff9-f050-47b7-b382-7ca98c5b00b9 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:34 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Ab184IJl5_7Vn_zHHXGXksTSf9m0KkIt0ntRvyEW00SY1@thread.v2 + ms-cv: + - chJzC1SNLEqVvKZ7A23H5A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033934Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k0000000017y9t + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 467ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:39:34 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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-08-05T03:39:35.064655+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: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:35 GMT + ms-cv: + - hq3BVYoTIU+BU2JhQaeBKg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T033934Z-k97maztpax51x2ee2r7vqbw7wg00000001n000000000558a + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 114ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8d14-1252-573a0d007209"}}, + "displayName": "John Doe"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '188' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:35 GMT + ms-cv: + - EsHp8TgP+EOq9kipq1wW8A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033935Z-tur6dybg817yr054hm9efewep800000000ug00000002qd7d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 295ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml new file mode 100644 index 00000000000..fde368e25c8 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -0,0 +1,152 @@ +interactions: +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - d037c3fe-026d-4288-9cd2-f2442cf5c018 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:34 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3ADuYoApbcAIQgbOsAuC-MKfhUkxQc-KU74A6CSaEoGlA1@thread.v2 + ms-cv: + - va4OzUsjqEak5tn5k0ZeQw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033934Z-afb852g2vh6591nsqudzty20xs00000001k00000000140z7 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 580ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:39:34 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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-08-05T03:39:35.2497635+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: + - Thu, 04 Aug 2022 03:39:35 GMT + ms-cv: + - FzgHHGhRiE2pCsOnYiUhhA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T033934Z-nntkv2q0nd3zt4kemgcvznhu2400000001n000000000zmn6 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 112ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8dcb-fa5d-573a0d002b58"}}, + "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '209' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:39:36 GMT + ms-cv: + - tvmllXrYR0W82DVwIq9mPQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T033935Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001kg00000002m5t1 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 370ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml new file mode 100644 index 00000000000..bb119cb5bbf --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: '{"topic": "some-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 39674429-e5ab-4826-927b-01c574f23f17 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": + "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:12 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3APKBfWL4BkxLYVa1wNvlniDpHMcOef7ZFj_wDzMbD7vk1@thread.v2 + ms-cv: + - qYhC6cIbWk+hdiUTN9E2fQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034112Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001mg00000000g4a2 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 549ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml new file mode 100644 index 00000000000..988e9f7d0d7 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -0,0 +1,138 @@ +interactions: +- request: + body: '{"topic": "some-other-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '49' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 44285506-82a8-4a68-a2d8-75e286e0f7dd + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": + "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:12 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AzD2Ih_I95XLbfhEqpE3JSlK7OB4EWMiLYmTNd1S70D01@thread.v2 + ms-cv: + - SOUykXOVAkq/Nj+iDJ9YRg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034112Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000033k73 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 820ms + status: + code: 201 + message: Created +- request: + body: '{"content": "Hello!", "type": "text"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '37' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:13 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AzD2Ih_I95XLbfhEqpE3JSlK7OB4EWMiLYmTNd1S70D01@thread.v2/messages/1659584473244 + ms-cv: + - uQmrrD0hfkK8ItN4nkhcYw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034113Z-tur6dybg817yr054hm9efewep800000000ug00000003hr6b + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 239ms + status: + code: 201 + message: Created +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + date: + - Thu, 04 Aug 2022 03:41:14 GMT + ms-cv: + - HSr+6o/pNkCFIDpNVb6eVQ.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034113Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000033kh6 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 362ms + status: + code: 204 + message: No Content +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml new file mode 100644 index 00000000000..528af496c43 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -0,0 +1,141 @@ +interactions: +- request: + body: '{"topic": "new-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '42' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - d279fb36-514a-42fd-b1bd-e5ec23b92904 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": + "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:13 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AKba5UW5r8zwRP1ri4piJLRKDkFW2ZgRxGRNLyjrCDI41@thread.v2 + ms-cv: + - 6j08xkFGrU25fsqiTI0SwA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034112Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002792v + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1175ms + status: + code: 201 + message: Created +- request: + body: '{"content": "hello!", "type": "html"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '37' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:13 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AKba5UW5r8zwRP1ri4piJLRKDkFW2ZgRxGRNLyjrCDI41@thread.v2/messages/1659584473684 + ms-cv: + - stYTpYbpLUWs1z2xlpFnMQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034113Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k0000000018yng + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 130ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659584473684", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-04T03:41:13Z", + "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": + {"id": "sanitized"}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:41:14 GMT + ms-cv: + - A+8SPSASrkOr/icgBT5avQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034113Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000000mc02 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 195ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml new file mode 100644 index 00000000000..c8bf043871e --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -0,0 +1,103 @@ +interactions: +- request: + body: '{"topic": "another-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 37e3ceb2-4421-494d-a8a1-7f07c226cefd + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": + "2022-08-04T03:42:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:42:51 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AWuhQKCMkg2Eo5eD776lvzz5lolz0HdHVAe9M_NfnFvQ1@thread.v2 + ms-cv: + - cXOp/Gx7R02Y8cdsN9J8ig.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034250Z-91tba13kdd5mrb8h3w91379wbg00000001k000000000ymkf + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 634ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 + response: + body: + string: '{"value": [{"id": "1659584570901", "type": "topicUpdated", "sequenceId": + "2", "version": "1659584570901", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}}, + "createdOn": "2022-08-04T03:42:50Z"}, {"id": "1659584570875", "type": "participantAdded", + "sequenceId": "1", "version": "1659584570875", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}, + "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}}, + "createdOn": "2022-08-04T03:42:50Z"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:42:51 GMT + ms-cv: + - RccMmjCZf0mz29CBummeqg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034251Z-q1z3stmybd47948vv0qhv9299w00000001kg00000000xba8 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 159ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml new file mode 100644 index 00000000000..f4a44fb5430 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -0,0 +1,94 @@ +interactions: +- request: + body: '{"topic": "some-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 44af2bfb-2f61-4219-b0d5-597e4c759458 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": + "2022-08-04T03:42:48Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:42:49 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AlxBvVxD1YkjBGWIIQl6XgmHyG-DLHMsxHBFf73L5hFk1@thread.v2 + ms-cv: + - Bj5+ChcjDUGVHmU9Nx9eOg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034248Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000012t7t + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 531ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 + response: + body: + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-7e9b-eef0-8b3a0d00da54", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-7e9b-eef0-8b3a0d00da54"}}, + "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:42:49 GMT + ms-cv: + - 1xQ0Gno14Uq62JqZJfj4SQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034249Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000001090y + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 126ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml new file mode 100644 index 00000000000..6e9b7ec90ed --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -0,0 +1,42 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 + response: + body: + string: '{"CommunicationError": {"Code": "BadRequest", "Details": []}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json + date: + - Thu, 04 Aug 2022 03:42:50 GMT + ms-cv: + - vTqDxyEiGUSGJJSQTtmiDQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034250Z-kpegq6a2qh4nr419q7tfax5sn400000001kg000000010z1h + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 369ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml new file mode 100644 index 00000000000..9451a83a5fe --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -0,0 +1,42 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"value": []}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:42:49 GMT + ms-cv: + - 41sx+jjFaEeTelkO++DHSQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034248Z-tur6dybg817yr054hm9efewep800000000ug00000003kva0 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 77ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml new file mode 100644 index 00000000000..dffda32450a --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -0,0 +1,42 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"value": []}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:25 GMT + ms-cv: + - 7sONMtBSV06tiKQ8qVNjiw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034425Z-afb852g2vh6591nsqudzty20xs00000001k0000000016pg2 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 70ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml new file mode 100644 index 00000000000..5b7b0b45918 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -0,0 +1,229 @@ +interactions: +- request: + body: '{"topic": "thread-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '45' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - d0aa1591-0ea2-4d41-80e2-b980ae270763 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": + "2022-08-04T03:44:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:28 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Ac9iLvy0xKJV1K8Adyv-8E5W_ySgpi4DlxIOrgKJ_Ccw1@thread.v2 + ms-cv: + - obRPDZcGf0690brVJ0XfFw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034427Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k000000001b02f + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 853ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 + response: + body: + string: '{"value": []}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:29 GMT + ms-cv: + - GHDh9pm8DUu7vtZDYCcSzg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034428Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000037qnp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 92ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"value": [{"id": "1659584668572", "type": "topicUpdated", "sequenceId": + "2", "version": "1659584668572", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}}, + "createdOn": "2022-08-04T03:44:28Z"}, {"id": "1659584668528", "type": "participantAdded", + "sequenceId": "1", "version": "1659584668528", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}, + "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}}, + "createdOn": "2022-08-04T03:44:28Z"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:29 GMT + ms-cv: + - U5LH/JjSnU+Vp2nMVzArRQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034429Z-afb852g2vh6591nsqudzty20xs00000001kg000000010g4h + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 157ms + status: + code: 200 + message: OK +- request: + body: '{"chatMessageId": "1659584668572"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 + response: + body: + string: '' + headers: + accept-ranges: + - bytes + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-length: + - '0' + date: + - Thu, 04 Aug 2022 03:44:29 GMT + ms-cv: + - HQFKR3uKh0O5NBjsXRZxsQ.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034429Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000140dt + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 127ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 + response: + body: + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}, + "chatMessageId": "1659584668572", "readOn": "2022-08-04T03:44:29Z"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:30 GMT + ms-cv: + - aP/F1PneQkib0FoiNhe+TA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034430Z-afb852g2vh6591nsqudzty20xs00000001kg000000010gcf + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 43ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml new file mode 100644 index 00000000000..46adb493f7e --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -0,0 +1,318 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:44:25 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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-08-05T03:44:26.6959575+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:26 GMT + ms-cv: + - GZT7OU2S+E+DxrE5ch/0Sg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0mkDrYgAAAAANkOIhxM2STZH7tjeSKRqYWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 98ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - f5303164-8eb3-42dd-92b2-5d0c6d1636fc + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-04T03:44:27Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:27 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3A8uFNjzwjGX3MtDMs4i5aXqnostkQj9W25XEsoX1Cbdc1@thread.v2 + ms-cv: + - qx+im2C8YUSda7AXDPo/GQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0m0DrYgAAAAAEgUiVeJCCQ7mZ98uCQEMHWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 837ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-0043-655d-573a0d00debe"}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:44:28 GMT + ms-cv: + - Y8NOcexCr0OZo0yn7ZSqvQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034428Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000021y92 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 184ms + status: + code: 201 + message: Created +- request: + body: '{"communicationUser": {"id": "sanitized"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '42' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + date: + - Thu, 04 Aug 2022 03:44:29 GMT + ms-cv: + - ZgeJRgD+S021aMSGmDkJ3w.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034429Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001k000000002syew + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 266ms + status: + code: 204 + message: No Content +- request: + body: '{"communicationUser": {"id": "sanitized"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '42' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 + response: + body: + string: '{"CommunicationError": {"Code": "BadRequest", "Message": "Identifier + format is invalid (8:acs:fakeid).", "Details": []}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json + date: + - Thu, 04 Aug 2022 03:44:29 GMT + ms-cv: + - XlL6v9eDMke+lGEbLKCCSg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034429Z-afb852g2vh6591nsqudzty20xs00000001n000000000abye + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2ms + status: + code: 400 + message: Bad Request +- request: + body: '{"communicationUser": {"id": "sanitized"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '42' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + date: + - Thu, 04 Aug 2022 03:44:30 GMT + ms-cv: + - n1XMZj36J0+21RNc+Zm13A.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034430Z-afb852g2vh6591nsqudzty20xs00000001k0000000016qxt + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 404ms + status: + code: 204 + message: No Content +- request: + body: '{"communicationUser": {"id": "sanitized"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '42' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 + response: + body: + string: '{"CommunicationError": {"Code": "Forbidden", "Message": "The initiator + doesn''t have the permission to perform the requested operation.", "Details": + []}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json + date: + - Thu, 04 Aug 2022 03:44:30 GMT + ms-cv: + - bwrXt/CuKki27ZOFrTlZow.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034430Z-tur6dybg817yr054hm9efewep800000000ug00000003n11d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 158ms + status: + code: 403 + message: Forbidden +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml new file mode 100644 index 00000000000..69d90a04454 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -0,0 +1,94 @@ +interactions: +- request: + body: '{"topic": "yet-another-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 28054b8b-63ad-4bab-811a-02e58d41dd43 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": + "2022-08-04T03:46:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:02 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AutrLVLV-ywd6u_Yr5yOjBzbeoPqIq5le3nEI4KMpIpQ1@thread.v2 + ms-cv: + - CJJUHjx/TU2JwOlCGNiqHQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0+UDrYgAAAACGjD/eMEdFRqQwZDh2lscwWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 668ms + status: + code: 201 + message: Created +- request: + body: '{"content": "
hello!
", "type": "html"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '45' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:02 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AutrLVLV-ywd6u_Yr5yOjBzbeoPqIq5le3nEI4KMpIpQ1@thread.v2/messages/1659584763450 + ms-cv: + - /l2SS7OzX0qTazJjY2cCPQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0+0DrYgAAAAAsv5qd76g3Qqm/Aan2tHORWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 178ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml new file mode 100644 index 00000000000..5f9838605e5 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -0,0 +1,94 @@ +interactions: +- request: + body: '{"topic": "some-other-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '49' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 48044364-06b9-4029-8019-357bea400ccc + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": + "2022-08-04T03:46:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:01 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3A1QBQmCtlz09UQZYgg_V64Wv7iRyD-yBW6YKEUraEMCo1@thread.v2 + ms-cv: + - niDm6Ep51kymLRZY+7KAUw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0+UDrYgAAAAA1VXpWqc+8SZClT6Px53faWVZSMzExMDAwMTE1MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 409ms + status: + code: 201 + message: Created +- request: + body: '{"content": "Hello!", "type": "text"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '37' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:02 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3A1QBQmCtlz09UQZYgg_V64Wv7iRyD-yBW6YKEUraEMCo1@thread.v2/messages/1659584762678 + ms-cv: + - n1pHiy3wwEmc4KSWF14Gew.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0+kDrYgAAAAA1TSuRTGOqQbASXFAstOF/WVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 213ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml new file mode 100644 index 00000000000..f51dd441c37 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: '{"topic": "yet-another-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - e5a9e374-5ca9-4dfb-b440-f5e62f44e06b + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": + "2022-08-04T03:46:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:07 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Awzc1Ezwq3szwDQWUtccR671_H1jh12SdurW71yfP0cs1@thread.v2 + ms-cv: + - 6zVBQ4DyQUyCjbjZT4AFfQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034606Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001m000000001sefc + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 665ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml new file mode 100644 index 00000000000..f6b3a8fa9ae --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -0,0 +1,98 @@ +interactions: +- request: + body: '{"topic": "yet-another-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - cf7825f4-f8aa-4b87-909f-04bc26cadf98 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": + "2022-08-04T03:46:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:07 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Aswtap6pLnipMjjs5edcRI85MywGxsqIyT3BrrBWitaY1@thread.v2 + ms-cv: + - 9DbZgMhyUUWmkOln/jaKiA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034606Z-q1z3stmybd47948vv0qhv9299w00000001k000000001bbha + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 636ms + status: + code: 201 + message: Created +- request: + body: '{"content": "Hello!", "type": "text"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '37' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:46:07 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Aswtap6pLnipMjjs5edcRI85MywGxsqIyT3BrrBWitaY1@thread.v2/messages/1659584767556 + ms-cv: + - +RnXtsptSUihdivAH6zOPA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034607Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000022fhf + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 227ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml new file mode 100644 index 00000000000..91991a2f713 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -0,0 +1,136 @@ +interactions: +- request: + body: '{"topic": "thread-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '45' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 1f3c9091-7fef-4f98-a7d6-fa219019db0a + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": + "2022-08-04T03:47:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:47:40 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AlIrVdxkyYQJXFGXSqXbvbK1_v4fVrUB75rf4nL0De3c1@thread.v2 + ms-cv: + - 0wd5aDA6Q0+Wqp5dgV8SEg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034739Z-tur6dybg817yr054hm9efewep800000000ug00000003q20q + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 772ms + status: + code: 201 + message: Created +- request: + body: '{"content": "Hello!", "type": "text"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '37' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 + response: + body: + string: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:47:40 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AlIrVdxkyYQJXFGXSqXbvbK1_v4fVrUB75rf4nL0De3c1@thread.v2/messages/1659584860476 + ms-cv: + - QA1/WkWnzkqgVLfOEkpU3Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034740Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002ad9r + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 183ms + status: + code: 201 + message: Created +- request: + body: '{"content": "Hello there!"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + date: + - Thu, 04 Aug 2022 03:47:41 GMT + ms-cv: + - ZnlX8P4p8UKh/DcJ4QlbdQ.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0XUHrYgAAAAA+8KVukpPmSaocYflB8S/IWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 207ms + status: + code: 204 + message: No Content +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml new file mode 100644 index 00000000000..a4ea90eb7d4 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -0,0 +1,92 @@ +interactions: +- request: + body: '{"topic": "thread-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '45' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 586244a9-6090-44b5-9463-f87386842961 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": + "2022-08-04T03:47:38Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 03:47:39 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AW-dPjDBTmf-1GXBQBP-v1nOn6TanObGvVUPTKJcPBYw1@thread.v2 + ms-cv: + - HG5GK8jJIUexkHojtSt4xw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220804T034738Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001kg00000003a01p + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 886ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "new-topic!"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + date: + - Thu, 04 Aug 2022 03:47:40 GMT + ms-cv: + - 6IaAs3iLC02rPOEP2jjnNQ.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034740Z-kpegq6a2qh4nr419q7tfax5sn400000001kg000000013e8b + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 278ms + status: + code: 204 + message: No Content +version: 1 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 f451e81f600..e9bc240a101 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,28 +17,30 @@ interactions: ParameterSetName: - --name --location --data-location --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"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/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 cache-control: - no-cache content-length: - - '580' + - '578' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:00:56 GMT + - Thu, 04 Aug 2022 03:49:21 GMT etag: - - '"75002503-0000-0700-0000-62a0e3d80000"' + - '"0400e3ae-0000-0700-0000-62eb41c10000"' expires: - '-1' + mise-correlation-id: + - 2e5ede31-923b-420a-a48f-5e81d2035bcf pragma: - no-cache request-context: @@ -68,12 +70,12 @@ interactions: ParameterSetName: - --name --location --data-location --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - 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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 response: body: - 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"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T03:49:21.2836012Z"}' headers: cache-control: - no-cache @@ -82,9 +84,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:26 GMT + - Thu, 04 Aug 2022 03:49:51 GMT etag: - - '"4200fb9d-0000-0800-0000-62a0e3d80000"' + - '"0b0023ae-0000-0800-0000-62eb41c10000"' expires: - '-1' pragma: @@ -114,12 +116,12 @@ interactions: ParameterSetName: - --name --location --data-location --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - 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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 response: body: - 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"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T03:49:21.2836012Z"}' headers: cache-control: - no-cache @@ -128,9 +130,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:56 GMT + - Thu, 04 Aug 2022 03:50:21 GMT etag: - - '"4200fb9d-0000-0800-0000-62a0e3d80000"' + - '"0b0023ae-0000-0800-0000-62eb41c10000"' expires: - '-1' pragma: @@ -160,12 +162,12 @@ interactions: ParameterSetName: - --name --location --data-location --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - 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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 response: body: - 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}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:49:21.2836012Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +176,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:26 GMT + - Thu, 04 Aug 2022 03:50:50 GMT etag: - - '"4200339e-0000-0800-0000-62a0e41a0000"' + - '"2c004080-0000-0100-0000-62eb42030000"' expires: - '-1' pragma: @@ -206,24 +208,24 @@ interactions: ParameterSetName: - --name --location --data-location --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '703' + - '701' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:26 GMT + - Thu, 04 Aug 2022 03:50:51 GMT etag: - - '"75004b03-0000-0700-0000-62a0e3de0000"' + - '"040005af-0000-0700-0000-62eb41c90000"' expires: - '-1' pragma: @@ -255,24 +257,24 @@ interactions: ParameterSetName: - --created --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '703' + - '701' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:27 GMT + - Thu, 04 Aug 2022 03:50:52 GMT etag: - - '"75004b03-0000-0700-0000-62a0e3de0000"' + - '"040005af-0000-0700-0000-62eb41c90000"' expires: - '-1' pragma: @@ -304,24 +306,24 @@ interactions: ParameterSetName: - --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '703' + - '701' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:28 GMT + - Thu, 04 Aug 2022 03:50:52 GMT etag: - - '"75004b03-0000-0700-0000-62a0e3de0000"' + - '"040005af-0000-0700-0000-62eb41c90000"' expires: - '-1' pragma: @@ -353,22 +355,22 @@ interactions: ParameterSetName: - --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '715' + - '713' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:28 GMT + - Thu, 04 Aug 2022 03:50:53 GMT expires: - '-1' pragma: @@ -404,24 +406,24 @@ interactions: ParameterSetName: - --name --tags --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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":"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 + 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:50:54.1403116Z"},"properties":{"hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '729' + - '728' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:29 GMT + - Thu, 04 Aug 2022 03:50:54 GMT etag: - - '"75006104-0000-0700-0000-62a0e4360000"' + - '"04003bb0-0000-0700-0000-62eb421e0000"' expires: - '-1' pragma: @@ -439,7 +441,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -462,7 +464,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.6.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 +478,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:31 GMT + - Thu, 04 Aug 2022 03:50:55 GMT expires: - '-1' pragma: @@ -514,12 +516,12 @@ interactions: ParameterSetName: - --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX","secondaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' + string: '{"primaryKey":"kWjPuZCTEpNNKpc/7ssnw7lkr7u489pJUHJSy6CSmU16ufUBb0kShPMfm0jirB9dHhMphOTyIzYqWfu7OMO7xA==","secondaryKey":"fSGWHK6iSccsilUnaCn10l3qhCksRIC2hXS17Bkqx1OMpsnGAaM47fCv9rFjJtdK7qEjMBNLJv4seQ8dNmBBuA==","primaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=kWjPuZCTEpNNKpc/7ssnw7lkr7u489pJUHJSy6CSmU16ufUBb0kShPMfm0jirB9dHhMphOTyIzYqWfu7OMO7xA==","secondaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=fSGWHK6iSccsilUnaCn10l3qhCksRIC2hXS17Bkqx1OMpsnGAaM47fCv9rFjJtdK7qEjMBNLJv4seQ8dNmBBuA=="}' headers: cache-control: - no-cache @@ -528,7 +530,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:32 GMT + - Thu, 04 Aug 2022 03:50:56 GMT expires: - '-1' pragma: @@ -568,12 +570,12 @@ interactions: ParameterSetName: - --name --key-type --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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' + string: '{"primaryKey":"IbpXi0Q6UIL12LrPdJhfwB2VMlZZBlalunlBK+3DRLgjCEFAgYvIpifudWfvUB5rShvfzhG481tMqGoUMqcEFg==","primaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=IbpXi0Q6UIL12LrPdJhfwB2VMlZZBlalunlBK+3DRLgjCEFAgYvIpifudWfvUB5rShvfzhG481tMqGoUMqcEFg=="}' headers: cache-control: - no-cache @@ -582,7 +584,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:33 GMT + - Thu, 04 Aug 2022 03:50:56 GMT expires: - '-1' pragma: @@ -620,7 +622,7 @@ interactions: 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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 +630,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - 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 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -636,13 +638,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:34 GMT + - Thu, 04 Aug 2022 03:50:57 GMT etag: - - '"75007304-0000-0700-0000-62a0e43a0000"' + - '"040043b0-0000-0700-0000-62eb42210000"' expires: - '-1' location: - - 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 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -670,12 +672,12 @@ interactions: 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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?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":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T03:50:57.8044092Z"}' headers: cache-control: - no-cache @@ -684,9 +686,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:04 GMT + - Thu, 04 Aug 2022 03:51:27 GMT etag: - - '"4200689e-0000-0800-0000-62a0e43a0000"' + - '"0b0046af-0000-0800-0000-62eb42210000"' expires: - '-1' pragma: @@ -712,12 +714,12 @@ interactions: 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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?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":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T03:50:57.8044092Z"}' headers: cache-control: - no-cache @@ -726,9 +728,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:34 GMT + - Thu, 04 Aug 2022 03:51:57 GMT etag: - - '"4200689e-0000-0800-0000-62a0e43a0000"' + - '"0b0046af-0000-0800-0000-62eb42210000"' expires: - '-1' pragma: @@ -754,12 +756,12 @@ interactions: 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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?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}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:50:57.8044092Z","properties":null}' headers: cache-control: - no-cache @@ -768,9 +770,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:04:04 GMT + - Thu, 04 Aug 2022 03:52:28 GMT etag: - - '"4200b59e-0000-0800-0000-62a0e47c0000"' + - '"0b00dbaf-0000-0800-0000-62eb42630000"' expires: - '-1' pragma: @@ -800,12 +802,12 @@ interactions: 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) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?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}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:50:57.8044092Z","properties":null}' headers: cache-control: - no-cache @@ -814,9 +816,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:04:04 GMT + - Thu, 04 Aug 2022 03:52:28 GMT etag: - - '"4200b59e-0000-0800-0000-62a0e47c0000"' + - '"0b00dbaf-0000-0800-0000-62eb42630000"' 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 39de6eeaae6..36f1f0309eb 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: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:47:42 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-return-client-request-id: @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-06-09T18:00:51.176298+00:00"}}' + "expiresOn": "2022-08-05T03:47:43.7572702+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: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:00:50 GMT + - Thu, 04 Aug 2022 03:47:43 GMT ms-cv: - - eElIgNeTt0O5mbftDOJZFQ.0 + - dLwhy/U2kEG5PlRDBrgmug.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 00uOgYgAAAAANw4rItbYIRri9LyqlAuPbWVZSMzExMDAwMTE2MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034743Z-q1z3stmybd47948vv0qhv9299w00000001mg0000000092vv x-cache: - CONFIG_NOCACHE x-processing-time: - - 186ms + - 121ms 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 ef861c00c3e..21109d3654c 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: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:47:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-return-client-request-id: @@ -29,24 +29,26 @@ 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: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:47:43 GMT ms-cv: - - l2JTnDME60aMsbUTOQuXKQ.0 + - BoqzZ/4MH0qe4TnD+pX1RQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 00uOgYgAAAADuzh9y4GprTpDLQ3dRPhyNWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034743Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000039fbb x-cache: - CONFIG_NOCACHE x-processing-time: - - 109ms + - 116ms status: code: 201 message: Created @@ -64,9 +66,9 @@ interactions: Content-Type: - application/json Date: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:47:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-return-client-request-id: @@ -75,29 +77,33 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-06-09T18:00:51.9039474+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-05T03:47:44.2477153+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: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:47:44 GMT ms-cv: - - dusEax8NZ0mpZZ9E46pR+A.0 + - 0LOgw40mhkWJVTOInSd3SA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 00+OgYgAAAAAcpqvANpg0SbG1xR0iRxwxWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034744Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000039fex x-cache: - CONFIG_NOCACHE x-processing-time: - - 183ms + - 161ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index 6a6489c4863..07b6fa7d424 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -1,54 +1,56 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["voip", "chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - Date: - - Tue, 14 Jun 2022 20:12:00 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= - 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-15T20:12:00.1595868+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 - content-length: - - '122' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 14 Jun 2022 20:11:59 GMT - ms-cv: - - AJY7HIYAo0ugHKY2dt0zDw.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0kOuoYgAAAABGWOKFW6mDQJSUI52TlUl/U0pDRURHRTAzMTcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 51ms - status: - code: 201 - message: Created -version: 1 +interactions: +- request: + body: '{"createTokenWithScopes": ["voip", "chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:49:15 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= + 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-08-05T03:49:16.4078509+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: + - Thu, 04 Aug 2022 03:49:16 GMT + ms-cv: + - WPAovhNH+E2TZ7mrBqc7Xw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034916Z-tur6dybg817yr054hm9efewep800000000ug00000003r33e + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 135ms + status: + code: 201 + message: Created +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 5611221923d..27cc98a0d53 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: - - Wed, 08 Jun 2022 18:00:51 GMT + - Thu, 04 Aug 2022 03:49:18 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -30,29 +30,31 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:00:54 GMT + - Thu, 04 Aug 2022 03:49:23 GMT location: - - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 ms-cv: - - tNidcKnOGk6i8nmozvpySA.0 + - i9gcfKK2vEK2J8cy44pgCQ.0 operation-id: - - search_57ed2b65-3611-40b9-aa38-0df5f4291b2a + - search_5b601c15-dbf0-4a76-ace5-9a128060c9d6 operation-location: - - /phoneNumbers/operations/search_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + - /phoneNumbers/operations/search_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 search-id: - - 57ed2b65-3611-40b9-aa38-0df5f4291b2a + - 5b601c15-dbf0-4a76-ace5-9a128060c9d6 strict-transport-security: - max-age=2592000 x-azure-ref: - - 00uOgYgAAAACESRSYtxqFTLkpacwwIWI8WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034919Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zatm x-cache: - CONFIG_NOCACHE x-processing-time: - - 3948ms + - 3723ms status: code: 202 message: Accepted @@ -66,44 +68,46 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:25 GMT + - Thu, 04 Aug 2022 03:49:53 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07", - "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:49:22.9801005+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:24 GMT + - Thu, 04 Aug 2022 03:49:53 GMT location: - - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 ms-cv: - - 4rhhQFobjU+zNfd6nPVCnw.0 + - SsXndxcE00KzxYosWvjKoQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 09eOgYgAAAABx7MvFB/xvQJOu2thlMlzYWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034953Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zn0y x-cache: - CONFIG_NOCACHE x-processing-time: - - 391ms + - 338ms status: code: 200 message: OK @@ -118,47 +122,49 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:26 GMT + - Thu, 04 Aug 2022 03:49:53 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 response: body: - string: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a", "phoneNumbers": + string: '{"searchId": "5b601c15-dbf0-4a76-ace5-9a128060c9d6", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-08T18:17:00.3072592+00:00"}' + "2022-08-04T04:05:25.3160904+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:26 GMT + - Thu, 04 Aug 2022 03:49:54 GMT ms-cv: - - /P7NTDCbcEe4V+EvxJ70wA.0 + - dP/rsseNg0S5urWQMUD/6Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 09eOgYgAAAACgNKZXbd/LSKRjj7kCjtS7WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034953Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zn45 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1061ms + - 852ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a"}' + body: '{"searchId": "5b601c15-dbf0-4a76-ace5-9a128060c9d6"}' headers: Accept: - application/json @@ -171,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 08 Jun 2022 18:01:27 GMT + - Thu, 04 Aug 2022 03:49:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 4ztvkrPnGXN1Lms0ny44NvlCOk0qMW2/GAFb7Vkvy+k= + - OHWTDHz/rtJoKZ/FNUNm1vZwZd1IjgkHpwk5Tb/3dKY= x-ms-return-client-request-id: - 'true' method: POST @@ -187,27 +193,29 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:01:28 GMT + - Thu, 04 Aug 2022 03:49:56 GMT ms-cv: - - gHSQLQB3o0qiHLYLQoaB/Q.0 + - tlyABeuDaUuBrLNx7kxLGg.0 operation-id: - - purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a + - purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6 operation-location: - - /phoneNumbers/operations/purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 purchase-id: - - 57ed2b65-3611-40b9-aa38-0df5f4291b2a + - 5b601c15-dbf0-4a76-ace5-9a128060c9d6 strict-transport-security: - max-age=2592000 x-azure-ref: - - 09uOgYgAAAABcg5WUapHtS5XQnLop0wq3WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034954Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zncx x-cache: - CONFIG_NOCACHE x-processing-time: - - 2399ms + - 1632ms status: code: 202 message: Accepted @@ -221,39 +229,41 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:59 GMT + - Thu, 04 Aug 2022 03:50:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-04T03:49:22.9801005+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:02 GMT + - Thu, 04 Aug 2022 03:50:27 GMT ms-cv: - - 2MSgGRW+s0K8inmJxei0UQ.0 + - 98sWRzI1dkKVsxIRNe59Bg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0F+SgYgAAAACt2WMAMGD7TJzFt5Xpb/jUWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035026Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zvre x-cache: - CONFIG_NOCACHE x-processing-time: - - 3376ms + - 332ms status: code: 200 message: OK @@ -268,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:02:03 GMT + - Thu, 04 Aug 2022 03:50:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -282,27 +292,27 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-06-08T18:01:43.7922431+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-04T03:50:12.3665766+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:05 GMT + - Thu, 04 Aug 2022 03:50:28 GMT ms-cv: - - yeu88UFdLEOXJ3RhBiPLPQ.0 + - 0BtcQ1JZq0aXPbDxmBxuXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0G+SgYgAAAAAqDZN2dXA/SbZVXPJGmxDTWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0A0LrYgAAAAD7ttSjYuFVSomFEXeVqA9TWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2066ms + - 2190ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index 07b69015e9c..3da8f6385a2 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -1,150 +1,102 @@ -interactions: -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - Date: - - Wed, 27 Jul 2022 21:39:47 GMT - User-Agent: - - 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: - - '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 - content-length: - - '33' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 27 Jul 2022 21:39:45 GMT - ms-cv: - - TwnPFR8x6Ue+TvkID+dBww.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0orDhYgAAAAAyfKTO1tl1T6z3y+f02TItU0pDRURHRTA1MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 44ms - status: - code: 201 - message: Created -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - Date: - - Wed, 27 Jul 2022 21:39:47 GMT - User-Agent: - - 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: - - '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-07-28T21:39:47.113019+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 - content-length: - - '121' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 27 Jul 2022 21:39:46 GMT - ms-cv: - - s0N75TDNcEmawjMAFlRzFQ.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0o7DhYgAAAABbkxVg+vhLTait6F8rANmLU0pDRURHRTA1MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 53ms - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 27 Jul 2022 21:39:47 GMT - User-Agent: - - azsdk-python-communication-identity/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: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 - date: - - Wed, 27 Jul 2022 21:39:47 GMT - ms-cv: - - sfkN3e8U4keoJa0u0hw+lg.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0o7DhYgAAAAD88sIbUttsR5bYmBCvq0QwU0pDRURHRTA1MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 43ms - status: - code: 204 - message: No Content -version: 1 +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Thu, 04 Aug 2022 03:49:16 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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: + - Thu, 04 Aug 2022 03:49:17 GMT + ms-cv: + - vDsqV7Kk3kepQdeNc7a08w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034917Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000037fsz + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 04 Aug 2022 03:49:17 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + connection: + - keep-alive + date: + - Thu, 04 Aug 2022 03:49:17 GMT + ms-cv: + - 1tUq3wG1PkGAtEBAtR3SAw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220804T034917Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002b5hp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 103ms + status: + code: 204 + message: No Content +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 c18496a0724..ab541e247f9 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: - - Wed, 08 Jun 2022 18:02:28 GMT + - Thu, 04 Aug 2022 03:50:53 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -30,29 +30,31 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:02:30 GMT + - Thu, 04 Aug 2022 03:50:57 GMT location: - - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 ms-cv: - - wc/MCoMN1keywSc8+QuPsg.0 + - sFrbejqL1USou/Ci0iDKfQ.0 operation-id: - - search_2d19903b-7822-4be9-86f8-377c31f6ebd8 + - search_e4f037c6-9807-4cee-82cb-557937312e81 operation-location: - - /phoneNumbers/operations/search_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + - /phoneNumbers/operations/search_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 search-id: - - 2d19903b-7822-4be9-86f8-377c31f6ebd8 + - e4f037c6-9807-4cee-82cb-557937312e81 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0NOSgYgAAAAC68Dpsh9UXQpx3Q4xyPfU5WVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035054Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013a3k x-cache: - CONFIG_NOCACHE x-processing-time: - - 3153ms + - 2738ms status: code: 202 message: Accepted @@ -66,44 +68,46 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:03:01 GMT + - Thu, 04 Aug 2022 03:51:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/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", + "/availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:50:56.8342128+00:00", "id": "search_e4f037c6-9807-4cee-82cb-557937312e81", "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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:01 GMT + - Thu, 04 Aug 2022 03:51:28 GMT location: - - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 ms-cv: - - BkOg+uQH/0+c8J3mWA1Ntw.0 + - MakVbuwsSUekwZp6n/LitA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0VeSgYgAAAACdaRoazdmkRIwEjtG5OEeUWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035127Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013n4m x-cache: - CONFIG_NOCACHE x-processing-time: - - 440ms + - 498ms status: code: 200 message: OK @@ -118,47 +122,49 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:03:02 GMT + - Thu, 04 Aug 2022 03:51:27 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 response: body: - string: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8", "phoneNumbers": - ["+18772136127"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "e4f037c6-9807-4cee-82cb-557937312e81", "phoneNumbers": + ["+18443190536"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-08T18:18:34.2527577+00:00"}' + "2022-08-04T04:06:58.5859252+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:02 GMT + - Thu, 04 Aug 2022 03:51:29 GMT ms-cv: - - KftmnlmZCEuRQXGSAKSWew.0 + - cStmbJQXVkO4Ixp6R8QTbg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0VuSgYgAAAACzQX6HdkuVQo9jpwDikjNSWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035128Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013nbq x-cache: - CONFIG_NOCACHE x-processing-time: - - 1351ms + - 1282ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8"}' + body: '{"searchId": "e4f037c6-9807-4cee-82cb-557937312e81"}' headers: Accept: - application/json @@ -171,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 08 Jun 2022 18:03:03 GMT + - Thu, 04 Aug 2022 03:51:29 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 6KqXgRvvk0OY7unyaDWoIwxdZiw3zPrEZA+ZxnoQtiE= + - egjfiMwFLxnitk05VNDyEuyP9sWgSlIYngB9rFkf2z4= x-ms-return-client-request-id: - 'true' method: POST @@ -187,27 +193,29 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:03:05 GMT + - Thu, 04 Aug 2022 03:51:31 GMT ms-cv: - - cFfdSeiOBkCKoxwWgQ7Tvg.0 + - 6gOVorEb+0GB9R7dWneGuQ.0 operation-id: - - purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8 + - purchase_e4f037c6-9807-4cee-82cb-557937312e81 operation-location: - - /phoneNumbers/operations/purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 purchase-id: - - 2d19903b-7822-4be9-86f8-377c31f6ebd8 + - e4f037c6-9807-4cee-82cb-557937312e81 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0V+SgYgAAAAC7WoZTMar7SbFI/I34BaOPWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035129Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013nuh x-cache: - CONFIG_NOCACHE x-processing-time: - - 2356ms + - 1728ms status: code: 202 message: Accepted @@ -221,39 +229,41 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:03:36 GMT + - Thu, 04 Aug 2022 03:52:01 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-08T18:02:30.9157918+00:00", "id": "purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8", + null, "createdDateTime": "2022-08-04T03:50:56.8342128+00:00", "id": "purchase_e4f037c6-9807-4cee-82cb-557937312e81", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:35 GMT + - Thu, 04 Aug 2022 03:52:02 GMT ms-cv: - - yK2hANyhFEWAxcVDTeQ+gw.0 + - HYvPEN3ihUyMDk68Nt6DRA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0d+SgYgAAAACkf6llJn4PRJ7zBU8vQCrqWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035201Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013ys5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 605ms + - 378ms status: code: 200 message: OK @@ -274,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 08 Jun 2022 18:03:37 GMT + - Thu, 04 Aug 2022 03:52:02 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - MHxiUlyEp5c1qcJx+CiIZ0pGD9nPTrRNrJLpmTrI9fE= + - uAl9x+P5Ju0WI8FPuiV0OT2c3qVRtcUZglcz+zWKcO8= x-ms-return-client-request-id: - 'true' method: POST @@ -293,19 +303,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:03:37 GMT + - Thu, 04 Aug 2022 03:52:02 GMT ms-cv: - - caOZFxgqzEq0S5SXOsANOQ.0 + - mPcH5VdNT0u4gP6EoRM3XA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0eOSgYgAAAADLZumqCoXoRL4bqT/E1BTrWVZSMzExMDAwMTE1MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0YkLrYgAAAAAGET+8MFg1Sqi1K/B6y7VxWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 147ms + - 311ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index ceba458eb35..4430720dedd 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:30:17 GMT + - Thu, 04 Aug 2022 03:52:13 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -30,31 +30,31 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 connection: - keep-alive content-length: - '0' date: - - Fri, 10 Jun 2022 00:30:22 GMT + - Thu, 04 Aug 2022 03:52:16 GMT location: - - /availablePhoneNumbers/searchResults/2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 ms-cv: - - +fn8wM5+S0q51QDBzbKCog.0 + - jFU/T/Tl802xnbqPlt7PqA.0 operation-id: - - search_2a77a8fc-7ce6-4772-a73f-032383693ea4 + - search_68e64321-4243-4fc8-97ed-f6ccdcc42004 operation-location: - - /phoneNumbers/operations/search_2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + - /phoneNumbers/operations/search_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 search-id: - - 2a77a8fc-7ce6-4772-a73f-032383693ea4 + - 68e64321-4243-4fc8-97ed-f6ccdcc42004 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220610T003017Z-vkhs01dsad2yh0kuygqupe3vh400000000yg00000003quhm + - 20220804T035213Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000018ydp x-cache: - CONFIG_NOCACHE x-processing-time: - - 4685ms + - 2695ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:30:52 GMT + - Thu, 04 Aug 2022 03:52:46 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,38 +76,38 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07", - "createdDateTime": "2022-06-10T00:30:21.7878417+00:00", "id": "search_2a77a8fc-7ce6-4772-a73f-032383693ea4", + "/availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:52:16.2579265+00:00", "id": "search_68e64321-4243-4fc8-97ed-f6ccdcc42004", "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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 connection: - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:30:52 GMT + - Thu, 04 Aug 2022 03:52:47 GMT location: - - /availablePhoneNumbers/searchResults/2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 ms-cv: - - DBDSfYSCMkSu6H6XS2h1YA.0 + - TUNv8aB5H0+W28v75dT4Qw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220610T003052Z-vkhs01dsad2yh0kuygqupe3vh400000000yg00000003r5ww + - 20220804T035246Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000198ap x-cache: - CONFIG_NOCACHE x-processing-time: - - 354ms + - 335ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:30:53 GMT + - Thu, 04 Aug 2022 03:52:46 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,41 +130,41 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 response: body: - string: '{"searchId": "2a77a8fc-7ce6-4772-a73f-032383693ea4", "phoneNumbers": - ["+18772141103"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "68e64321-4243-4fc8-97ed-f6ccdcc42004", "phoneNumbers": + ["+18335022104"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-10T00:46:24.0376156+00:00"}' + "2022-08-04T04:08:18.2017052+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 connection: - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:30:53 GMT + - Thu, 04 Aug 2022 03:52:49 GMT ms-cv: - - MXztCMP7xkK/bAxKlAOoXw.0 + - L21+h2I5JEOu9MHiO7b7Sg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220610T003052Z-vkhs01dsad2yh0kuygqupe3vh400000000yg00000003r60n + - 20220804T035247Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000198gc x-cache: - CONFIG_NOCACHE x-processing-time: - - 996ms + - 2208ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "2a77a8fc-7ce6-4772-a73f-032383693ea4"}' + body: '{"searchId": "68e64321-4243-4fc8-97ed-f6ccdcc42004"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:30:54 GMT + - Thu, 04 Aug 2022 03:52:49 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - BV6FA4pfi1Zv445E+sTv+/uYtzt/J9dNJciBRr+jECw= + - yf/VnfZWPtQyuAWGCnr/PTDvbFz924yWVUQEoi4Snw4= x-ms-return-client-request-id: - 'true' method: POST @@ -193,29 +193,29 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 connection: - keep-alive content-length: - '0' date: - - Fri, 10 Jun 2022 00:30:56 GMT + - Thu, 04 Aug 2022 03:52:51 GMT ms-cv: - - tuLIr2lQ30eN1mBmaF5S9Q.0 + - FDd/TmpKp02bNWaQuH+d4Q.0 operation-id: - - purchase_2a77a8fc-7ce6-4772-a73f-032383693ea4 + - purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004 operation-location: - - /phoneNumbers/operations/purchase_2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 purchase-id: - - 2a77a8fc-7ce6-4772-a73f-032383693ea4 + - 68e64321-4243-4fc8-97ed-f6ccdcc42004 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220610T003053Z-vkhs01dsad2yh0kuygqupe3vh400000000yg00000003r68w + - 20220804T035249Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k000000001999s x-cache: - CONFIG_NOCACHE x-processing-time: - - 2014ms + - 1755ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:31:26 GMT + - Thu, 04 Aug 2022 03:53:21 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,33 +237,33 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_2a77a8fc-7ce6-4772-a73f-032383693ea4?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-10T00:30:21.7878417+00:00", "id": "purchase_2a77a8fc-7ce6-4772-a73f-032383693ea4", + null, "createdDateTime": "2022-08-04T03:52:16.2579265+00:00", "id": "purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 connection: - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:31:26 GMT + - Thu, 04 Aug 2022 03:53:22 GMT ms-cv: - - VVi5q8hRtkWAs7yT+fXhQw.0 + - ZFPX3QNl+E2zSMT6r56MbQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220610T003126Z-vkhs01dsad2yh0kuygqupe3vh400000000yg00000003re3t + - 20220804T035321Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000019kdx x-cache: - CONFIG_NOCACHE x-processing-time: - - 352ms + - 388ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:31:26 GMT + - Thu, 04 Aug 2022 03:53:22 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -299,29 +299,31 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Fri, 10 Jun 2022 00:31:30 GMT + - Thu, 04 Aug 2022 03:53:26 GMT location: - - /availablePhoneNumbers/searchResults/9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 ms-cv: - - CTvU+d3B10OAyDyimusTQQ.0 + - akFd6Q6YVUiAHJeg68E0Ag.0 operation-id: - - search_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8 + - search_f5a95cfe-08aa-403e-858f-66bf391c956d operation-location: - - /phoneNumbers/operations/search_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + - /phoneNumbers/operations/search_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 search-id: - - 9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8 + - f5a95cfe-08aa-403e-858f-66bf391c956d strict-transport-security: - max-age=2592000 x-azure-ref: - - 03pCiYgAAAABym+z6OLdtRIXte0D3bHvjWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035322Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039fqh x-cache: - CONFIG_NOCACHE x-processing-time: - - 3465ms + - 3803ms status: code: 202 message: Accepted @@ -335,7 +337,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:32:00 GMT + - Thu, 04 Aug 2022 03:53:56 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -343,36 +345,38 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07", - "createdDateTime": "2022-06-10T00:31:29.987717+00:00", "id": "search_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8", + "/availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:53:26.3306167+00:00", "id": "search_f5a95cfe-08aa-403e-858f-66bf391c956d", "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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:32:00 GMT + - Thu, 04 Aug 2022 03:53:57 GMT location: - - /availablePhoneNumbers/searchResults/9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 ms-cv: - - RnwSeXFQAk65AzAjyoCW0A.0 + - k0cVoBO50U2syzeaP0FYBw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0AJGiYgAAAADePP3btPsUQZRuiXVk38L0WVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035356Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039rzz x-cache: - CONFIG_NOCACHE x-processing-time: - - 419ms + - 592ms status: code: 200 message: OK @@ -387,7 +391,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:32:01 GMT + - Thu, 04 Aug 2022 03:53:57 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -395,39 +399,41 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 response: body: - string: '{"searchId": "9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8", "phoneNumbers": - ["+18772140942"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "f5a95cfe-08aa-403e-858f-66bf391c956d", "phoneNumbers": + ["+18443185426"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-10T00:47:31.6891869+00:00"}' + "2022-08-04T04:09:28.5394891+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:32:01 GMT + - Thu, 04 Aug 2022 03:53:59 GMT ms-cv: - - mJ+J5laoIEaklSxJkTT0dA.0 + - gNRaDPszMEml8Mtc0X421g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0AJGiYgAAAAAemXn6XSbjSI3mk2hCOnoiWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035357Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039s6y x-cache: - CONFIG_NOCACHE x-processing-time: - - 1318ms + - 1121ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8"}' + body: '{"searchId": "f5a95cfe-08aa-403e-858f-66bf391c956d"}' headers: Accept: - application/json @@ -440,11 +446,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:32:02 GMT + - Thu, 04 Aug 2022 03:53:58 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 4gT6hwYkybeyRb/nFizXtBsR2Z5JTg6RrOJHob619C8= + - zlhSzRY1+ggCfhTlX6/t1mcLYkM/BI6g+c4JYFIOWJo= x-ms-return-client-request-id: - 'true' method: POST @@ -456,27 +462,29 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Fri, 10 Jun 2022 00:32:04 GMT + - Thu, 04 Aug 2022 03:54:02 GMT ms-cv: - - kvuFUQZsIEe8U5kL4tYXkQ.0 + - dxWtJIUe30SBNxkptE3eFQ.0 operation-id: - - purchase_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8 + - purchase_f5a95cfe-08aa-403e-858f-66bf391c956d operation-location: - - /phoneNumbers/operations/purchase_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 purchase-id: - - 9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8 + - f5a95cfe-08aa-403e-858f-66bf391c956d strict-transport-security: - max-age=2592000 x-azure-ref: - - 0ApGiYgAAAAAi+0TobkonSaHUuNJUrsN2WVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035359Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039sgw x-cache: - CONFIG_NOCACHE x-processing-time: - - 2577ms + - 2899ms status: code: 202 message: Accepted @@ -490,7 +498,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:32:35 GMT + - Thu, 04 Aug 2022 03:54:32 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -498,31 +506,33 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-10T00:31:29.987717+00:00", "id": "purchase_9ee520b5-b3e2-4d78-a93e-9ce72f84a2d8", + null, "createdDateTime": "2022-08-04T03:53:26.3306167+00:00", "id": "purchase_f5a95cfe-08aa-403e-858f-66bf391c956d", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:32:35 GMT + - Thu, 04 Aug 2022 03:54:33 GMT ms-cv: - - t7E+qYnrZUqhlNUAgurExw.0 + - uWGH9zzdvkuA7gSTqaKnTg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0I5GiYgAAAABVAffr+9LHSJGE79ONoYv7WVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035432Z-nntkv2q0nd3zt4kemgcvznhu2400000001m000000003a1z6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 523ms + - 391ms status: code: 200 message: OK @@ -542,7 +552,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:32:36 GMT + - Thu, 04 Aug 2022 03:54:32 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -558,29 +568,29 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-length: - '0' date: - - Fri, 10 Jun 2022 00:32:39 GMT + - Thu, 04 Aug 2022 03:54:36 GMT location: - - /availablePhoneNumbers/searchResults/ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 ms-cv: - - mHXHn77MrUq/c5IGFEXqTw.0 + - NFFuVjzD4UC4q2RZ+eSK5Q.0 operation-id: - - search_ae35ad5e-1138-47ef-b1b6-ce579796d10f + - search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 operation-location: - - /phoneNumbers/operations/search_ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + - /phoneNumbers/operations/search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 search-id: - - ae35ad5e-1138-47ef-b1b6-ce579796d10f + - 497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0JJGiYgAAAAAzHwJIGxcORrGdtKls3X2FWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0+ULrYgAAAACmyebb0NARSp3edEsCa/OrWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3047ms + - 3282ms status: code: 202 message: Accepted @@ -594,7 +604,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:33:09 GMT + - Thu, 04 Aug 2022 03:55:06 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -602,36 +612,36 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07", - "createdDateTime": "2022-06-10T00:32:39.0104623+00:00", "id": "search_ae35ad5e-1138-47ef-b1b6-ce579796d10f", + "/availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:54:36.2086963+00:00", "id": "search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", "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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:33:09 GMT + - Thu, 04 Aug 2022 03:55:06 GMT location: - - /availablePhoneNumbers/searchResults/ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 ms-cv: - - /h9iuNBSuEOBdmP5q3GFMw.0 + - Guey+FnVa0yiJQ3D8nH8SA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0RZGiYgAAAADN8MXhG+tMTJdoN3ugIt6vWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0GkPrYgAAAACkmzWaDpS/R7Zmn4Sr/ZVaWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 383ms + - 329ms status: code: 200 message: OK @@ -646,7 +656,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:33:10 GMT + - Thu, 04 Aug 2022 03:55:06 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -654,39 +664,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 response: body: - string: '{"searchId": "ae35ad5e-1138-47ef-b1b6-ce579796d10f", "phoneNumbers": - ["+18772141128"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", "phoneNumbers": + ["+18335022070"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-10T00:48:41.0192184+00:00"}' + "2022-08-04T04:10:38.8316849+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:33:10 GMT + - Thu, 04 Aug 2022 03:55:07 GMT ms-cv: - - 34BG4q70TEqPdoVVeDvQtA.0 + - M3lbj2cXmkaC9cc66feydw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0RZGiYgAAAAAaTb4eRjM+QbswrRpuXUc3WVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0G0PrYgAAAAD9ncITpvyfQInktUTLAgiuWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1052ms + - 1079ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "ae35ad5e-1138-47ef-b1b6-ce579796d10f"}' + body: '{"searchId": "497bf24c-0c4f-4769-b0ea-8e16d4efd9f3"}' headers: Accept: - application/json @@ -699,11 +709,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:33:11 GMT + - Thu, 04 Aug 2022 03:55:07 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - xb/h6KWvvBXU4pGpU9/e+VsfP1lIoCTUmlHew4CxKew= + - MWYJrSR/ceYtdmgpBIRMJCvhezHJ14t6KzRI8zDybko= x-ms-return-client-request-id: - 'true' method: POST @@ -715,27 +725,27 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-length: - '0' date: - - Fri, 10 Jun 2022 00:33:12 GMT + - Thu, 04 Aug 2022 03:55:09 GMT ms-cv: - - r2McfMGad0m6O0OfTjpfYQ.0 + - f9QAjYXRxEqmwaB+/5g4Aw.0 operation-id: - - purchase_ae35ad5e-1138-47ef-b1b6-ce579796d10f + - purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 operation-location: - - /phoneNumbers/operations/purchase_ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 purchase-id: - - ae35ad5e-1138-47ef-b1b6-ce579796d10f + - 497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0R5GiYgAAAACKOcURNINHS6oLMXoBnxZOWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0HEPrYgAAAABnMKmiuN1sQKixVMAx1aznWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1932ms + - 1740ms status: code: 202 message: Accepted @@ -749,7 +759,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 10 Jun 2022 00:33:43 GMT + - Thu, 04 Aug 2022 03:55:39 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -757,31 +767,31 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ae35ad5e-1138-47ef-b1b6-ce579796d10f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-10T00:32:39.0104623+00:00", "id": "purchase_ae35ad5e-1138-47ef-b1b6-ce579796d10f", + null, "createdDateTime": "2022-08-04T03:54:36.2086963+00:00", "id": "purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:33:43 GMT + - Thu, 04 Aug 2022 03:55:39 GMT ms-cv: - - bCvrtDlNo061lBh9dwzOfA.0 + - 2nOl511cG0eXVxZxHQ/c3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0Z5GiYgAAAAAUai8L+74jRLA3CpgNyTtZWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0PEPrYgAAAAB8kLCWl1KuSbevxPZB9uaOWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 505ms + - 294ms status: code: 200 message: OK @@ -803,11 +813,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 10 Jun 2022 00:33:44 GMT + - Thu, 04 Aug 2022 03:55:40 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 6RZC16+wt2HTn777vQeKwmnhn5prkv+gWuEl64AtAY4= + - XYHMk3SG5Cm/ilmMIBtvBNKY9SZUzk5oKL2QeVgqfRg= x-ms-return-client-request-id: - 'true' method: POST @@ -826,19 +836,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jun 2022 00:33:44 GMT + - Thu, 04 Aug 2022 03:55:41 GMT ms-cv: - - 693m7+l1fkW7uVBTNlo9wQ.0 + - cfJIPCWX4kmks0DCKjNNaw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220610T003343Z-0w7e84pgat29pcfezeursvyhe400000000zg00000001ryy4 + - 20220804T035540Z-afb852g2vh6591nsqudzty20xs00000001kg000000015t40 x-cache: - CONFIG_NOCACHE x-processing-time: - - 300ms + - 655ms 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 d924533ff31..a2d1da02714 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: - - Wed, 08 Jun 2022 18:00:50 GMT + - Thu, 04 Aug 2022 03:49:19 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -30,29 +30,31 @@ interactions: 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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:00:54 GMT + - Thu, 04 Aug 2022 03:49:25 GMT location: - - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 ms-cv: - - +95abflzOUmlk3tSLWhRLQ.0 + - podN7+Snjkq0j+UKLAsfzQ.0 operation-id: - - search_1a2d9e4f-67ac-4504-8085-bf164927bab1 + - search_71bda68e-236e-4737-87a3-c2d7064a6a44 operation-location: - - /phoneNumbers/operations/search_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + - /phoneNumbers/operations/search_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 search-id: - - 1a2d9e4f-67ac-4504-8085-bf164927bab1 + - 71bda68e-236e-4737-87a3-c2d7064a6a44 strict-transport-security: - max-age=2592000 x-azure-ref: - - 00uOgYgAAAAAS+y0Jx9PyRprYYcDyXUEjWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034920Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000usfh x-cache: - CONFIG_NOCACHE x-processing-time: - - 4165ms + - 4369ms status: code: 202 message: Accepted @@ -66,44 +68,46 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:25 GMT + - Thu, 04 Aug 2022 03:49:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07", - "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07", + "createdDateTime": "2022-08-04T03:49:24.4645304+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:24 GMT + - Thu, 04 Aug 2022 03:49:55 GMT location: - - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 ms-cv: - - 9+nN/zPYvEyJH6ULvl7dvw.0 + - CCYhLtZcBkOcoHIdlKcBCw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 09eOgYgAAAACO5C35sAplQrhPfjRIIIDkWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034955Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000uzdg x-cache: - CONFIG_NOCACHE x-processing-time: - - 439ms + - 304ms status: code: 200 message: OK @@ -118,47 +122,49 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:26 GMT + - Thu, 04 Aug 2022 03:49:55 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 response: body: - string: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1", "phoneNumbers": + string: '{"searchId": "71bda68e-236e-4737-87a3-c2d7064a6a44", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-06-08T18:16:56.9281142+00:00"}' + "2022-08-04T04:05:26.5207227+00:00"}' headers: api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:26 GMT + - Thu, 04 Aug 2022 03:49:58 GMT ms-cv: - - DfhdOwAgzkuRawjRAras0w.0 + - fqIxnfvfnUSv8K/vb6Yopg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 09eOgYgAAAACzzt9J629RQ4ozG60tJ887WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034955Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000uzg1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 945ms + - 2265ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1"}' + body: '{"searchId": "71bda68e-236e-4737-87a3-c2d7064a6a44"}' headers: Accept: - application/json @@ -171,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 08 Jun 2022 18:01:27 GMT + - Thu, 04 Aug 2022 03:49:57 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - v84BmvdsKwYRawMlPEH3VbuI+187cFdqCQSoJro/11E= + - t60/FDN433udtqJUA5XUAGsKELmD6lTJ038lBCdj0W4= x-ms-return-client-request-id: - 'true' method: POST @@ -187,27 +193,29 @@ interactions: access-control-expose-headers: - Operation-Location,operation-id,purchase-id api-supported-versions: - - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Wed, 08 Jun 2022 18:01:28 GMT + - Thu, 04 Aug 2022 03:50:02 GMT ms-cv: - - /O20/K3SKkeqgSvN2PRshw.0 + - 5BirexxqEE2D/zLTG5kIFA.0 operation-id: - - purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1 + - purchase_71bda68e-236e-4737-87a3-c2d7064a6a44 operation-location: - - /phoneNumbers/operations/purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 purchase-id: - - 1a2d9e4f-67ac-4504-8085-bf164927bab1 + - 71bda68e-236e-4737-87a3-c2d7064a6a44 strict-transport-security: - max-age=2592000 x-azure-ref: - - 09uOgYgAAAADXwQN7buKLTqLYWJYgXcY2WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T034958Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000v00c x-cache: - CONFIG_NOCACHE x-processing-time: - - 2091ms + - 3658ms status: code: 202 message: Accepted @@ -221,39 +229,41 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:01:59 GMT + - Thu, 04 Aug 2022 03:50:31 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-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_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-04T03:49:24.4645304+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:01:59 GMT + - Thu, 04 Aug 2022 03:50:33 GMT ms-cv: - - cx4cPLs0bEmoRvdTGlJGYg.0 + - hXS5z/1nKEi0DZ6uUgugPg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0F+SgYgAAAADOic9R8uaWTJ/mL8KB/xBVWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035032Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000v75g x-cache: - CONFIG_NOCACHE x-processing-time: - - 384ms + - 1334ms status: code: 200 message: OK @@ -268,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Wed, 08 Jun 2022 18:02:00 GMT + - Thu, 04 Aug 2022 03:50:33 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -281,27 +291,29 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-06-08T18:01:44.9739305+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-04T03:50:16.9087717+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 + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 08 Jun 2022 18:02:01 GMT + - Thu, 04 Aug 2022 03:50:37 GMT ms-cv: - - p1Tqe4PGSUyRGbMpaAW3xg.0 + - RFUpPGl2lk2ssI6UB/cqvQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0F+SgYgAAAAA7kwsqPWzWR4qQCGjVjRalWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T035034Z-q1z3stmybd47948vv0qhv9299w00000001kg000000011che x-cache: - CONFIG_NOCACHE x-processing-time: - - 2459ms + - 2992ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py new file mode 100644 index 00000000000..ef8219d7ef8 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -0,0 +1,518 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +import os +from .recording_processors import URIIdentityReplacer, BodyReplacerProcessor +from .preparers import CommunicationResourcePreparer + +class CommunicationChatScenarios(ScenarioTest): + + def __init__(self, method_name): + super().__init__(method_name, recording_processors=[ + URIIdentityReplacer(), + BodyReplacerProcessor(keys=["id", "token", "rawId"]), + ]) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_threads_with_env_auth(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + threads = self.cmd('az communication chat list-threads').get_output_in_json() + assert len(threads) == 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_threads_with_cmdline_auth(self, communication_resource_chat_info): + self.kwargs.update({ + 'access_token': communication_resource_chat_info[3], + 'endpoint': communication_resource_chat_info[1] }) + threads = self.cmd('az communication chat list-threads --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() + assert len(threads) == 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_threads_with_no_auth(self): + with self.assertRaises(KeyError) as raises: + self.cmd('az communication chat list-threads --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() + assert 'Key \'endpoint\' not found in kwargs.' in str(raises.exception) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_create_thread(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + chat_topic = 'some-topic' + self.kwargs.update({ + 'topic': chat_topic }) + self.cmd('az communication chat create-thread --topic \"{topic}\"', checks = [ + self.check("errors", None), + self.check("chatThread.topic", chat_topic), + ]) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_create_thread_without_topic(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + with self.assertRaises(SystemExit) as raises: + self.cmd('az communication chat create-thread').get_output_in_json() + assert raises.exception.code == 2 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_participants(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + chat_topic = 'some-topic' + self.kwargs.update({ + 'topic': chat_topic }) + thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread_id = thread['chatThread']['id'] + self.kwargs.update({ + 'thread_id': thread_id }) + participants = self.cmd('az communication chat list-participants --thread-id {thread_id}').get_output_in_json() + assert len(participants) == 1 + assert participants[0]['shareHistoryTime'] == '1970-01-01T00:00:00+00:00' + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_participants_bad_thread_id(self, communication_resource_chat_info): + from azure.core.exceptions import HttpResponseError + + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + thread_id = 'sanitized' + self.kwargs.update({ + 'thread_id': thread_id }) + with self.assertRaises(HttpResponseError) as raises: + self.cmd('az communication chat list-participants --thread-id {thread_id}', checks = [ + self.check('httpStatusCode', '400')]) + + + def __create_thread(self, topic): + self.kwargs.update({ + 'topic': topic }) + return self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + + + def __create_user(self, connection_str): + if self.is_live or self.in_recording: + self.kwargs.update({ 'connection_string': connection_str}) + else: + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = connection_str + res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() + return res['user_id'] + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_add_participant(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + user_id = self.__create_user(communication_resource_chat_info[4]) + + # create a new thread + self.kwargs.update({ + 'topic': "chat-topic" }) + + thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread_id = thread['chatThread']['id'] + + # add the new user to the chat thread + self.kwargs.update({ + 'thread_id': thread_id, + 'user_id': user_id, + 'access_token': communication_resource_chat_info[3] }) + + add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}').get_output_in_json() + + assert len(add_res) == 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_add_participant_bad_user(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread + self.kwargs.update({ + 'topic': "chat-topic" }) + thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread_id = thread['chatThread']['id'] + + # add a fake user to the chat thread + user_id = '8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999' + self.kwargs.update({ + 'thread_id': thread_id, + 'user_id': user_id, + 'access_token': communication_resource_chat_info[3] }) + + add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + self.check('[0].code', '403'), + self.check('[0].message', 'Permissions check failed'), + self.check('[0].target', user_id) ]).get_output_in_json() + + assert len(add_res) == 1 + + # add invalid user id to the chat thread + self.kwargs.update({ + 'user_id': '8:acs:fakeid===' }) + + with self.assertRaises(Exception) as raises: + self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + self.check('CommunicationError.code', 'Bad Request')]) + + assert 'Identifier format is invalid' in str(raises.exception) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_remove_participants(self, communication_resource_chat_info): + from azure.core.exceptions import HttpResponseError + + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + user_id = self.__create_user(communication_resource_chat_info[4]) + + # create a new thread + thread = self.__create_thread('chat-topic') + thread_id = thread['chatThread']['id'] + owner_id = thread['chatThread']['createdBy']['properties']['id'] + + # add the new user to the chat thread + self.kwargs.update({ + 'thread_id': thread_id, + 'user_id': user_id }) + + add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}').get_output_in_json() + assert len(add_res) == 0 + + # remove the new user from the chat thread + self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + + # try to remove a user with invalid id + self.kwargs.update({ + 'user_id': '8:acs:fakeid' }) + + with self.assertRaises(HttpResponseError) as raises: + self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + self.check('CommunicationError.code', 'Bad Request')]) + + assert 'Identifier format is invalid' in str(raises.exception) + + # remove the original user from the chat thread + self.kwargs.update({ + 'user_id': owner_id }) + self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + + # try to remove the original user again, should raise an error + with self.assertRaises(HttpResponseError) as raises: + self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + assert 'The initiator doesn\'t have the permission to perform the requested operation.' in str(raises.exception) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_add_participant_with_display_name(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread + thread = self.__create_thread('chat-topic') + thread_id = thread['chatThread']['id'] + + user_id = self.__create_user(communication_resource_chat_info[4]) + + # add the new user to the chat thread + display_name = '\"John Doe\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'user_id': user_id, + 'display_name': display_name }) + add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id} --display-name {display_name}').get_output_in_json() + assert len(add_res) == 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_add_participant_with_history_time(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread + thread = self.__create_thread('chat-topic') + thread_id = thread['chatThread']['id'] + + user_id = self.__create_user(communication_resource_chat_info[4]) + + # add the new user to the chat thread + start_time = '2022-01-01T00:00:00' + self.kwargs.update({ + 'thread_id': thread_id, + 'user_id': user_id, + 'start_time': start_time}) + add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id} --start-time {start_time}').get_output_in_json() + assert len(add_res) == 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_messages(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('another-topic') + thread_id = thread['chatThread']['id'] + + self.kwargs.update({ + 'thread_id': thread_id }) + messages = self.cmd('az communication chat list-messages --thread-id {thread_id}').get_output_in_json() + assert len(messages) > 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_messages(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('another-topic') + thread_id = thread['chatThread']['id'] + + start_time = '2022-01-01T00:00:00' + self.kwargs.update({ + 'thread_id': thread_id, + 'start_time': start_time }) + messages = self.cmd('az communication chat list-messages --thread-id {thread_id} --start-time {start_time}').get_output_in_json() + assert len(messages) > 0 + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_send_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('some-other-topic') + thread_id = thread['chatThread']['id'] + + content = '\"Hello!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + assert message['id'] is not None + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_send_message_without_content(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('yet-another-topic') + thread_id = thread['chatThread']['id'] + + self.kwargs.update({ + 'thread_id': thread_id }) + with self.assertRaises(SystemExit) as raises: + self.cmd('az communication chat send-message --thread-id {thread_id}').get_output_in_json() + assert raises.exception.code == 2 + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_send_text_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('yet-another-topic') + thread_id = thread['chatThread']['id'] + + content = '\"Hello!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type text').get_output_in_json() + assert message['id'] is not None + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_send_html_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('yet-another-topic') + thread_id = thread['chatThread']['id'] + + content = '
hello!
' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type html').get_output_in_json() + assert message['id'] is not None + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_get_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('new-topic') + thread_id = thread['chatThread']['id'] + + content = 'hello!' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + sent_message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type html').get_output_in_json() + + self.kwargs.update({ + 'message_id': sent_message['id'] }) + message = self.cmd('az communication chat get-message --thread-id {thread_id} --message-id {message_id}').get_output_in_json() + assert message['content']['message'] == content + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_update_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('some-other-topic') + thread_id = thread['chatThread']['id'] + + # then send a message to the thread + content = '\"Hello!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + + # and update it + new_content = '\"Hello there!\"' + self.kwargs.update({ + 'content': new_content, + 'message_id': message['id'] }) + self.cmd('az communication chat update-message --thread-id {thread_id} --message-id {message_id} --content {content}') + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_delete_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('some-other-topic') + thread_id = thread['chatThread']['id'] + + # then send a message to the thread + content = '\"Hello!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + + # and delete it + self.kwargs.update({ + 'message_id': message['id'] }) + self.cmd('az communication chat delete-message --thread-id {thread_id} --message-id {message_id}') + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_update_message(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('thread-topic') + thread_id = thread['chatThread']['id'] + + # then send a message to the thread + content = '\"Hello!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'content': content }) + message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + + new_content = '\"Hello there!\"' + self.kwargs.update({ + 'content': new_content, + 'message_id': message['id'] }) + self.cmd('az communication chat update-message --thread-id {thread_id} --message-id {message_id} --content {content}') + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_update_topic(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('thread-topic') + thread_id = thread['chatThread']['id'] + + # then update the topic + new_topic = '\"new-topic!\"' + self.kwargs.update({ + 'thread_id': thread_id, + 'topic': new_topic }) + self.cmd('az communication chat update-topic --thread-id {thread_id} --topic {topic}') + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_read_receipts(self, communication_resource_chat_info): + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + + # create a new thread first + thread = self.__create_thread('thread-topic') + thread_id = thread['chatThread']['id'] + + self.kwargs.update({ + 'thread_id': thread_id }) + receipts = self.cmd('az communication chat list-read-receipts --thread-id {thread_id}').get_output_in_json() + assert len(receipts) == 0 + + messages = self.cmd('az communication chat list-messages --thread-id {thread_id}').get_output_in_json() + message_id = messages[0]['id'] + + self.kwargs.update({ + 'message_id': message_id }) + self.cmd('az communication chat send-read-receipt --thread-id {thread_id} --message-id {message_id}') + + receipts = self.cmd('az communication chat list-read-receipts --thread-id {thread_id}').get_output_in_json() + assert len(receipts) == 1 + + + From 94a613b33032c26777cac9fc833cfac64f5e25e1 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 00:16:22 -0700 Subject: [PATCH 05/26] [Communication] fix test name format --- .../tests/latest/test_communication_scenario.py | 2 +- .../test_communication_scenario_coverage.md | 16 ++++++++-------- 2 files changed, 9 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 4f9661e2a60..e96a3f1835a 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -92,7 +92,7 @@ def __init__(self, *args, **kwargs): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyOtherResourceGroup'[:7], key='rg_2', parameter_name='rg_2') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') - def test_communication_Scenario(self, rg_2, rg): + def test_communication_scenario(self, rg_2, rg): call_scenario(self, rg_2, rg) calc_coverage(__file__) raise_if() 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 84d80f490a6..9261eae4018 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-07-27 21:16:59.856147|2022-07-27 21:18:33.495744| -|step_show|successed||||2022-07-27 21:18:33.495744|2022-07-27 21:18:34.334230| -|step_list|successed||||2022-07-27 21:18:34.335242|2022-07-27 21:18:34.908548| -|step_update|successed||||2022-07-27 21:18:34.909546|2022-07-27 21:18:37.471386| -|step_link_notification_hub|successed||||2022-07-27 21:18:37.472387|2022-07-27 21:18:39.016204| -|step_list_key|successed||||2022-07-27 21:18:39.017211|2022-07-27 21:18:40.006551| -|step_regenerate_key|successed||||2022-07-27 21:18:40.006551|2022-07-27 21:18:41.130284| -|step_delete|successed||||2022-07-27 21:18:41.130284|2022-07-27 21:20:13.496139| +|step_create|successed||||2022-08-04 03:59:52.082867|2022-08-04 03:59:52.492619| +|step_show|successed||||2022-08-04 03:59:52.493528|2022-08-04 03:59:52.544605| +|step_list|successed||||2022-08-04 03:59:52.544605|2022-08-04 03:59:52.599440| +|step_update|successed||||2022-08-04 03:59:52.599440|2022-08-04 03:59:52.654439| +|step_link_notification_hub|successed||||2022-08-04 03:59:52.654439|2022-08-04 03:59:52.716076| +|step_list_key|successed||||2022-08-04 03:59:52.717062|2022-08-04 03:59:52.770063| +|step_regenerate_key|successed||||2022-08-04 03:59:52.770063|2022-08-04 03:59:52.825750| +|step_delete|successed||||2022-08-04 03:59:52.825750|2022-08-04 03:59:53.019916| Coverage: 8/8 From 13814475bed6d104085acc4155414a658803c3fb Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 00:17:05 -0700 Subject: [PATCH 06/26] [Communication] remove communication test files from CredScanSuppressions --- scripts/ci/credscan/CredScanSuppressions.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/ci/credscan/CredScanSuppressions.json b/scripts/ci/credscan/CredScanSuppressions.json index d150be203f2..4af96a8c125 100644 --- a/scripts/ci/credscan/CredScanSuppressions.json +++ b/scripts/ci/credscan/CredScanSuppressions.json @@ -80,14 +80,6 @@ ], "_justification": "Dummy secrets for one-off resources" }, - { - "file": [ - "src\\communication\\azext_communication\\tests\\latest\\recordings\\test_service_link_to_notification_hub.yaml", - "src\\communication\\azext_communication\\tests\\latest\\recordings\\test_service_regenerate_and_link_key.yaml", - "src\\communication\\azext_communication\\tests\\latest\\test_communication_scenario.py" - ], - "_justification": "Dummy resources' tokens left during testing Micorosfot.Communication" - }, { "file": [ "src\\application-insights\\azext_applicationinsights\\tests\\latest\\recordings\\test_api_key.yaml" From cf0477b88620a088237d6754c4966592dca82457 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 01:41:32 -0700 Subject: [PATCH 07/26] [Communication] Improve error handling in client factory. --- .../manual/_client_factory.py | 25 ++ .../recordings/test_chat_add_participant.yaml | 36 +-- .../test_chat_add_participant_bad_user.yaml | 30 +- ...hat_add_participant_with_display_name.yaml | 38 +-- ...hat_add_participant_with_history_time.yaml | 40 ++- .../recordings/test_chat_create_thread.yaml | 64 +++- .../recordings/test_chat_delete_message.yaml | 36 +-- .../recordings/test_chat_get_message.yaml | 36 +-- .../recordings/test_chat_list_messages.yaml | 44 +-- .../test_chat_list_participants.yaml | 26 +- ..._chat_list_participants_bad_thread_id.yaml | 8 +- ...t_chat_list_threads_with_cmdline_auth.yaml | 8 +- .../test_chat_list_threads_with_env_auth.yaml | 8 +- .../recordings/test_chat_read_receipts.yaml | 76 ++--- .../test_chat_remove_participants.yaml | 70 +++-- .../test_chat_send_html_message.yaml | 28 +- .../recordings/test_chat_send_message.yaml | 28 +- ...est_chat_send_message_without_content.yaml | 14 +- .../test_chat_send_text_message.yaml | 24 +- .../recordings/test_chat_update_message.yaml | 34 +- .../recordings/test_chat_update_topic.yaml | 22 +- ....yaml => test_communication_scenario.yaml} | 120 +++---- .../recordings/test_issue_access_token.yaml | 12 +- .../test_issue_access_token_with_id.yaml | 22 +- ...sue_access_token_with_multiple_scopes.yaml | 12 +- .../recordings/test_list_phonenumbers.yaml | 100 +++--- .../recordings/test_revoke_access_tokens.yaml | 20 +- .../latest/recordings/test_send_sms.yaml | 102 +++--- .../test_send_sms_n_recipients.yaml | 296 +++++++++--------- .../recordings/test_show_phonenumbers.yaml | 98 +++--- .../test_communication_chat_scenario.py | 32 +- .../test_communication_scenario_coverage.md | 16 +- 32 files changed, 818 insertions(+), 707 deletions(-) rename src/communication/azext_communication/tests/latest/recordings/{test_communication_Scenario.yaml => test_communication_scenario.yaml} (71%) diff --git a/src/communication/azext_communication/manual/_client_factory.py b/src/communication/azext_communication/manual/_client_factory.py index 17c77307e8d..8ec5d5806f7 100644 --- a/src/communication/azext_communication/manual/_client_factory.py +++ b/src/communication/azext_communication/manual/_client_factory.py @@ -6,30 +6,55 @@ # pylint: disable=unused-argument +from azure.cli.core.azclierror import RequiredArgumentMissingError + + def cf_communication_identity(cli_ctx, kwargs): from azure.communication.identity import CommunicationIdentityClient + connection_string = kwargs.pop('connection_string', None) + if connection_string is None: + error_msg = 'Please specify --connection-string, or set AZURE_COMMUNICATION_CONNECTION_STRING.' + raise RequiredArgumentMissingError(error_msg) + client = CommunicationIdentityClient.from_connection_string(connection_string) return client def cf_communication_sms(cli_ctx, kwargs): from azure.communication.sms import SmsClient + connection_string = kwargs.pop('connection_string', None) + if connection_string is None: + error_msg = 'Please specify --connection-string, or set AZURE_COMMUNICATION_CONNECTION_STRING.' + raise RequiredArgumentMissingError(error_msg) + client = SmsClient.from_connection_string(connection_string) return client def cf_communication_phonenumbers(cli_ctx, kwargs): from azure.communication.phonenumbers import PhoneNumbersClient + connection_string = kwargs.pop('connection_string', None) + if connection_string is None: + error_msg = 'Please specify --connection-string, or set AZURE_COMMUNICATION_CONNECTION_STRING.' + raise RequiredArgumentMissingError(error_msg) + client = PhoneNumbersClient.from_connection_string(connection_string) return client def cf_communication_chat(cli_ctx, kwargs): from azure.communication.chat import ChatClient, CommunicationTokenCredential + endpoint = kwargs.pop('endpoint', None) + if endpoint is None: + raise RequiredArgumentMissingError('Please specify --endpoint, or set AZURE_COMMUNICATION_ENDPOINT.') + token = kwargs.pop('access_token', None) + if token is None: + raise RequiredArgumentMissingError('Please specify --access-token or set AZURE_COMMUNICATION_ACCESS_TOKEN.') + client = ChatClient(endpoint, CommunicationTokenCredential(token)) return client diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml index 5949bd3e2fa..60904f8d307 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:39:33 GMT + - Thu, 04 Aug 2022 08:42:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:39:34.7847112+00:00"}}' + "expiresOn": "2022-08-05T08:42:14.2377872+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:14 GMT ms-cv: - - sPV7Pk7AK02nNd9uty4JBg.0 + - +hDlB7/SmU+wcQ0TA0T/uw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T033934Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000000kwtq + - 20220804T084214Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000000tgx0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 101ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - c5ff836e-0341-4f65-94bd-a70d5cd9f20b + - 0e8c1aa8-0d43-4a04-9b2d-b55a3521f74e method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T03:39:35Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,27 +85,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:36 GMT + - Thu, 04 Aug 2022 08:42:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ALpGBMaSPZ-oks8DOOeYYbHRQRd9AUOTYrqd87aM_f7g1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ApDPgF_bb5hEYQZLOCHxcJWOs3FrVfFVkCD7dhS5VBw41@thread.v2 ms-cv: - - CwrWzTB9RkeuwjR0LOooIA.0 + - 2Wqu6KqQHk6wDF/OEWSjdA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033935Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000010thw + - 20220804T084214Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001qg000000032pgf x-cache: - CONFIG_NOCACHE x-processing-time: - - 793ms + - 722ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8bfa-80f5-8b3a0d002bc7"}}}]}' + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e6-a358-3ef0-8b3a0d00aa29"}}}]}' headers: Accept: - application/json @@ -132,19 +132,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:36 GMT + - Thu, 04 Aug 2022 08:42:16 GMT ms-cv: - - UxM7ntBg60GqCJA8Y70Tgw.0 + - /YwN5igENkqFEwCCs9z2uQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033936Z-afb852g2vh6591nsqudzty20xs00000001n0000000009e1w + - 20220804T084215Z-tur6dybg817yr054hm9efewep800000000yg000000048vm9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 327ms + - 385ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml index 2b818164fa7..b818deb4068 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 597b6758-8cb1-43ce-baf4-c6b2e72a26e8 + - 6c971083-48f6-4309-a05d-86b83cf70399 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AA4vKcuig2UksBOy7yIYC6WBzouKPIG8IYEayPuoLTMI1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AiBrufV8xpQ7y_nn4TGXIsWmcg4pIZfDEJ7uyykzb5nY1@thread.v2 ms-cv: - - Awu1kQJXEEGmvyoF02zqEg.0 + - z6t/94YNF0anhKCiRlvODA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033934Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000034qu3 + - 20220804T084214Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002apwp x-cache: - CONFIG_NOCACHE x-processing-time: - - 686ms + - 695ms status: code: 201 message: Created @@ -79,19 +79,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:35 GMT + - Thu, 04 Aug 2022 08:42:15 GMT ms-cv: - - tIsW5/pa7UOZvXOzGhh69w.0 + - W8s9PoeMREe7RU1M/COLjg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033934Z-k97maztpax51x2ee2r7vqbw7wg00000001m000000000rc1d + - 20220804T084215Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002aq55 x-cache: - CONFIG_NOCACHE x-processing-time: - - 193ms + - 96ms status: code: 201 message: Created @@ -125,19 +125,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 03:39:35 GMT + - Thu, 04 Aug 2022 08:42:15 GMT ms-cv: - - N+GfRb0kf0uNdLVeSx3oCg.0 + - 98BnJcWPqk+5unosDiX3NQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033935Z-q1z3stmybd47948vv0qhv9299w00000001ng0000000020mn + - 20220804T084215Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001t0000000003w95 x-cache: - CONFIG_NOCACHE x-processing-time: - - 22ms + - 25ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml index c4094696ddd..4fba68c8caa 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 74163ff9-f050-47b7-b382-7ca98c5b00b9 + - fb0a2f92-28a0-4867-93d9-4cb87d145d93 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Ab184IJl5_7Vn_zHHXGXksTSf9m0KkIt0ntRvyEW00SY1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AGrU6fQTZO2Xpp5_DZXfaf_bMkm5qh6WOwIE4b9W9S-k1@thread.v2 ms-cv: - - chJzC1SNLEqVvKZ7A23H5A.0 + - MVr2/SDSskKMhDwbwzl32g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033934Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k0000000017y9t + - 20220804T084214Z-afb852g2vh6591nsqudzty20xs00000001rg00000001pu0t x-cache: - CONFIG_NOCACHE x-processing-time: - - 467ms + - 459ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -75,7 +75,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:39:35.064655+00:00"}}' + "expiresOn": "2022-08-05T08:42:15.47518+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -83,29 +83,29 @@ interactions: connection: - keep-alive content-length: - - '121' + - '120' content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:35 GMT + - Thu, 04 Aug 2022 08:42:15 GMT ms-cv: - - hq3BVYoTIU+BU2JhQaeBKg.0 + - TZI9mil+bk6w1HyjtXPEJA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T033934Z-k97maztpax51x2ee2r7vqbw7wg00000001n000000000558a + - 20220804T084215Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000000gsa x-cache: - CONFIG_NOCACHE x-processing-time: - - 114ms + - 99ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8d14-1252-573a0d007209"}}, + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e6-a82e-69f0-553a0d00ca8d"}}, "displayName": "John Doe"}]}' headers: Accept: @@ -133,19 +133,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:35 GMT + - Thu, 04 Aug 2022 08:42:16 GMT ms-cv: - - EsHp8TgP+EOq9kipq1wW8A.0 + - 6j8Hj84RhUWcMm1dsgOIjw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033935Z-tur6dybg817yr054hm9efewep800000000ug00000002qd7d + - 20220804T084215Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001qg000000032ptc x-cache: - CONFIG_NOCACHE x-processing-time: - - 295ms + - 222ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml index fde368e25c8..df1a43bd9f1 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -15,37 +15,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - d037c3fe-026d-4288-9cd2-f2442cf5c018 + - 8799b057-5819-4ac0-b504-0397cd91c033 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T03:39:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:42:38Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:38 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ADuYoApbcAIQgbOsAuC-MKfhUkxQc-KU74A6CSaEoGlA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3At9V-OnaIYDuOoemILvy5NKY98n9y7-KyXJw4KY_2BeA1@thread.v2 ms-cv: - - va4OzUsjqEak5tn5k0ZeQw.0 + - mBiGbDqeXEKzZcdYHePEJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033934Z-afb852g2vh6591nsqudzty20xs00000001k00000000140z7 + - 0fYbrYgAAAACZIZqqkSNrQJchTdkTpuLFWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 580ms + - 410ms status: code: 201 message: Created @@ -63,7 +61,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:39:34 GMT + - Thu, 04 Aug 2022 08:42:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -75,37 +73,35 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:39:35.2497635+00:00"}}' + "expiresOn": "2022-08-05T08:42:39.1123199+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: - - Thu, 04 Aug 2022 03:39:35 GMT + - Thu, 04 Aug 2022 08:42:38 GMT ms-cv: - - FzgHHGhRiE2pCsOnYiUhhA.0 + - TqShjAPCGkGOutYWQLJmXw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T033934Z-nntkv2q0nd3zt4kemgcvznhu2400000001n000000000zmn6 + - 0fobrYgAAAACGvVOOD8FVS4RZX72gVtzUWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 112ms + - 49ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d1-8dcb-fa5d-573a0d002b58"}}, + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e7-0482-4ff7-343a0d00c48d"}}, "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' headers: Accept: @@ -133,19 +129,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:39:36 GMT + - Thu, 04 Aug 2022 08:42:39 GMT ms-cv: - - tvmllXrYR0W82DVwIq9mPQ.0 + - kDj3qZOuKUq0SjTBKGy2DQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T033935Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001kg00000002m5t1 + - 20220804T084239Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000000p62 x-cache: - CONFIG_NOCACHE x-processing-time: - - 370ms + - 250ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index bb119cb5bbf..f71ebc7d089 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -15,37 +15,83 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 39674429-e5ab-4826-927b-01c574f23f17 + - f1ee76c8-cf1f-4683-9925-a1f1799bfbf8 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: 'Service unavailable

Our services aren''t available right now

We''re + working to restore all services as soon as possible. Please check back soon.

0x4brYgAAAAAJcbKum1TKRb+15EATEK3sWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==
' + headers: + cache-control: + - no-store + content-length: + - '1002' + content-type: + - text/html + date: + - Thu, 04 Aug 2022 08:43:50 GMT + x-azure-externalerror: + - 0x80072ee7,DNSNameNotResolved + x-azure-ref: + - 0x4brYgAAAAAJcbKum1TKRb+15EATEK3sWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + status: + code: 503 + message: Service Unavailable +- request: + body: '{"topic": "some-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - f1ee76c8-cf1f-4683-9925-a1f1799bfbf8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:12 GMT + - Thu, 04 Aug 2022 08:43:51 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3APKBfWL4BkxLYVa1wNvlniDpHMcOef7ZFj_wDzMbD7vk1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AIWcw4rEAfulhmUBnj5FmcFtp6BvZE534aoollbHQD4s1@thread.v2 ms-cv: - - qYhC6cIbWk+hdiUTN9E2fQ.0 + - FBapVFI5+Em1fmT90+/tvg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034112Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001mg00000000g4a2 + - 0x4brYgAAAABglCy30zDcSoKdBeeDqNDRWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 549ms + - 636ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 988e9f7d0d7..71858d2a591 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -15,37 +15,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 44285506-82a8-4a68-a2d8-75e286e0f7dd + - 91745817-8ace-42e3-91df-6b629bb0cee1 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:12 GMT + - Thu, 04 Aug 2022 08:43:52 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AzD2Ih_I95XLbfhEqpE3JSlK7OB4EWMiLYmTNd1S70D01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ALEAl5oluNYE1dqDK0py_jLxpfdgy_XeqTMpNax76-hw1@thread.v2 ms-cv: - - SOUykXOVAkq/Nj+iDJ9YRg.0 + - b1O7CY6Pe0ex6EVBVKohCw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034112Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000033k73 + - 0x4brYgAAAACMoW69jAieSYoDhUmrcAwBWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 820ms + - 537ms status: code: 201 message: Created @@ -72,26 +70,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:13 GMT + - Thu, 04 Aug 2022 08:43:53 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AzD2Ih_I95XLbfhEqpE3JSlK7OB4EWMiLYmTNd1S70D01@thread.v2/messages/1659584473244 + - https://clitest000002.communication.azure.com/chat/threads/19%3ALEAl5oluNYE1dqDK0py_jLxpfdgy_XeqTMpNax76-hw1@thread.v2/messages/1659602633243 ms-cv: - - uQmrrD0hfkK8ItN4nkhcYw.0 + - TMd8I7IYV0edUB/Zr+/reg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034113Z-tur6dybg817yr054hm9efewep800000000ug00000003hr6b + - 0yIbrYgAAAACE1cAHWgcQTqem6RArjBqwWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 239ms + - 151ms status: code: 201 message: Created @@ -121,17 +117,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 03:41:14 GMT + - Thu, 04 Aug 2022 08:43:54 GMT ms-cv: - - HSr+6o/pNkCFIDpNVb6eVQ.0 + - tyiJwZ7IrEy24I/QPsKpxA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034113Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000033kh6 + - 20220804T084353Z-qtfd0d2efh3zh2gzxzkdhtv16800000001q000000002dnvd x-cache: - CONFIG_NOCACHE x-processing-time: - - 362ms + - 321ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index 528af496c43..c2d4407233f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - d279fb36-514a-42fd-b1bd-e5ec23b92904 + - 9ed5c128-cec1-4b55-91c0-d659e35ae6b3 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-04T03:41:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:44:17Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:13 GMT + - Thu, 04 Aug 2022 08:44:17 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AKba5UW5r8zwRP1ri4piJLRKDkFW2ZgRxGRNLyjrCDI41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ArHkA0YJ12Mszq3Y79DO7Tyo367RA6AUB3N6J4-OM_481@thread.v2 ms-cv: - - 6j08xkFGrU25fsqiTI0SwA.0 + - NRtbxxKNRk+4/vs4KaITdg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034112Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002792v + - 20220804T084417Z-tur6dybg817yr054hm9efewep800000000zg00000001u7m8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1175ms + - 690ms status: code: 201 message: Created @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:13 GMT + - Thu, 04 Aug 2022 08:44:18 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AKba5UW5r8zwRP1ri4piJLRKDkFW2ZgRxGRNLyjrCDI41@thread.v2/messages/1659584473684 + - https://clitest000002.communication.azure.com/chat/threads/19%3ArHkA0YJ12Mszq3Y79DO7Tyo367RA6AUB3N6J4-OM_481@thread.v2/messages/1659602658125 ms-cv: - - stYTpYbpLUWs1z2xlpFnMQ.0 + - lPI4tPUbd0aKWArI1qj5kA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034113Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k0000000018yng + - 20220804T084418Z-k97maztpax51x2ee2r7vqbw7wg00000001s000000000w1as x-cache: - CONFIG_NOCACHE x-processing-time: - - 130ms + - 181ms status: code: 201 message: Created @@ -110,8 +110,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659584473684", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-04T03:41:13Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659602658125", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-04T08:44:18Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -122,19 +122,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:41:14 GMT + - Thu, 04 Aug 2022 08:44:18 GMT ms-cv: - - A+8SPSASrkOr/icgBT5avQ.0 + - 8jlXJRaf0ki3EvUFMKtGGg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034113Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000000mc02 + - 20220804T084418Z-nntkv2q0nd3zt4kemgcvznhu2400000001ug000000000kzt x-cache: - CONFIG_NOCACHE x-processing-time: - - 195ms + - 158ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index c8bf043871e..a938c642a71 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 37e3ceb2-4421-494d-a8a1-7f07c226cefd + - 723cbb68-a0be-415b-95ad-3a9593ab12c6 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-04T03:42:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:45:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:42:51 GMT + - Thu, 04 Aug 2022 08:45:28 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AWuhQKCMkg2Eo5eD776lvzz5lolz0HdHVAe9M_NfnFvQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AHavEfSXEj5c5nCCEAAT3BsI7xiuMCWlQpvBgwlfswg81@thread.v2 ms-cv: - - cXOp/Gx7R02Y8cdsN9J8ig.0 + - FurRVoAf10CxWubWlmzi6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034250Z-91tba13kdd5mrb8h3w91379wbg00000001k000000000ymkf + - 20220804T084527Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001qg000000025d21 x-cache: - CONFIG_NOCACHE x-processing-time: - - 634ms + - 597ms status: code: 201 message: Created @@ -64,18 +64,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659584570901", "type": "topicUpdated", "sequenceId": - "2", "version": "1659584570901", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}}, - "createdOn": "2022-08-04T03:42:50Z"}, {"id": "1659584570875", "type": "participantAdded", - "sequenceId": "1", "version": "1659584570875", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}, + string: '{"value": [{"id": "1659602728374", "type": "topicUpdated", "sequenceId": + "2", "version": "1659602728374", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}}, + "createdOn": "2022-08-04T08:45:28Z"}, {"id": "1659602728283", "type": "participantAdded", + "sequenceId": "1", "version": "1659602728283", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-8665-fa5d-573a0d002b85"}}}, - "createdOn": "2022-08-04T03:42:50Z"}]}' + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}}, + "createdOn": "2022-08-04T08:45:28Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -84,19 +84,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:42:51 GMT + - Thu, 04 Aug 2022 08:45:29 GMT ms-cv: - - RccMmjCZf0mz29CBummeqg.0 + - Ctn5ShEI4kKiPPLr2LqLCw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034251Z-q1z3stmybd47948vv0qhv9299w00000001kg00000000xba8 + - 20220804T084528Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000001dkx9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 159ms + - 128ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index f4a44fb5430..d222a962adc 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 44af2bfb-2f61-4219-b0d5-597e4c759458 + - ffa7a7f6-87fb-4e8f-a774-3eaca1f9e168 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-04T03:42:48Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:47:08Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:42:49 GMT + - Thu, 04 Aug 2022 08:47:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlxBvVxD1YkjBGWIIQl6XgmHyG-DLHMsxHBFf73L5hFk1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASYtBMh2w3wwuoIrpOhpRxcUxMTAHV-HQOqxpPly3pHg1@thread.v2 ms-cv: - - Bj5+ChcjDUGVHmU9Nx9eOg.0 + - AXtUUuRJ1kGG/eCuOCuKcw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034248Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000012t7t + - 20220804T084708Z-qtfd0d2efh3zh2gzxzkdhtv16800000001q000000002fkta x-cache: - CONFIG_NOCACHE x-processing-time: - - 531ms + - 742ms status: code: 201 message: Created @@ -64,8 +64,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-7e9b-eef0-8b3a0d00da54", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d4-7e9b-eef0-8b3a0d00da54"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-1ef6-3ef0-8b3a0d00aac5", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-1ef6-3ef0-8b3a0d00aac5"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -75,19 +75,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:42:49 GMT + - Thu, 04 Aug 2022 08:47:09 GMT ms-cv: - - 1xQ0Gno14Uq62JqZJfj4SQ.0 + - Yh/lNCZOoU6MXfhv8dx+Mg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034249Z-qtfd0d2efh3zh2gzxzkdhtv16800000001m000000001090y + - 20220804T084709Z-tur6dybg817yr054hm9efewep800000000yg00000004bqc2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 126ms + - 101ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index 6e9b7ec90ed..753fc280e25 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -23,19 +23,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 03:42:50 GMT + - Thu, 04 Aug 2022 08:45:30 GMT ms-cv: - - vTqDxyEiGUSGJJSQTtmiDQ.0 + - 5L5xVGmaaUKaKdw6sZLy4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034250Z-kpegq6a2qh4nr419q7tfax5sn400000001kg000000010z1h + - 20220804T084529Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001uzsq x-cache: - CONFIG_NOCACHE x-processing-time: - - 369ms + - 283ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index 9451a83a5fe..68705c28105 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -23,19 +23,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:42:49 GMT + - Thu, 04 Aug 2022 08:47:04 GMT ms-cv: - - 41sx+jjFaEeTelkO++DHSQ.0 + - Fkgg+4UWS0uA3uoS1ZYQMg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034248Z-tur6dybg817yr054hm9efewep800000000ug00000003kva0 + - 20220804T084704Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001t0000000001f7n x-cache: - CONFIG_NOCACHE x-processing-time: - - 77ms + - 71ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index dffda32450a..507a323746e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -23,19 +23,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:25 GMT + - Thu, 04 Aug 2022 08:47:09 GMT ms-cv: - - 7sONMtBSV06tiKQ8qVNjiw.0 + - gjEWjZDbxEKZTpnRYrVw3w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034425Z-afb852g2vh6591nsqudzty20xs00000001k0000000016pg2 + - 20220804T084709Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001pr9v x-cache: - CONFIG_NOCACHE x-processing-time: - - 70ms + - 15ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index 5b7b0b45918..0fc386a1672 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - d0aa1591-0ea2-4d41-80e2-b980ae270763 + - be4ea8a5-9167-40c7-88c4-887530be46e8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T03:44:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:47:31Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:28 GMT + - Thu, 04 Aug 2022 08:47:32 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Ac9iLvy0xKJV1K8Adyv-8E5W_ySgpi4DlxIOrgKJ_Ccw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AXMpnFsb8Z4a0ClzvJ7_gEP7z8p7KghlclWtfLIp_akU1@thread.v2 ms-cv: - - obRPDZcGf0690brVJ0XfFw.0 + - tnlLs2f+ZUyv05ZKZNxHzg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034427Z-qtfd0d2efh3zh2gzxzkdhtv16800000001k000000001b02f + - 20220804T084731Z-k97maztpax51x2ee2r7vqbw7wg00000001rg00000001nsue x-cache: - CONFIG_NOCACHE x-processing-time: - - 853ms + - 804ms status: code: 201 message: Created @@ -73,19 +73,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:29 GMT + - Thu, 04 Aug 2022 08:47:32 GMT ms-cv: - - GHDh9pm8DUu7vtZDYCcSzg.0 + - AOWIF5HylUG+sp1612OeJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034428Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000037qnp + - 20220804T084732Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000000yssy x-cache: - CONFIG_NOCACHE x-processing-time: - - 92ms + - 109ms status: code: 200 message: OK @@ -104,18 +104,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659584668572", "type": "topicUpdated", "sequenceId": - "2", "version": "1659584668572", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}}, - "createdOn": "2022-08-04T03:44:28Z"}, {"id": "1659584668528", "type": "participantAdded", - "sequenceId": "1", "version": "1659584668528", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}, + string: '{"value": [{"id": "1659602851782", "type": "topicUpdated", "sequenceId": + "2", "version": "1659602851782", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}}, + "createdOn": "2022-08-04T08:47:31Z"}, {"id": "1659602851755", "type": "participantAdded", + "sequenceId": "1", "version": "1659602851755", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}}, - "createdOn": "2022-08-04T03:44:28Z"}]}' + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}}, + "createdOn": "2022-08-04T08:47:31Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -124,24 +124,24 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:29 GMT + - Thu, 04 Aug 2022 08:47:32 GMT ms-cv: - - U5LH/JjSnU+Vp2nMVzArRQ.0 + - OAHSt0taO0e2AeE8n9gE8w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034429Z-afb852g2vh6591nsqudzty20xs00000001kg000000010g4h + - 20220804T084732Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000000ysum x-cache: - CONFIG_NOCACHE x-processing-time: - - 157ms + - 98ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1659584668572"}' + body: '{"chatMessageId": "1659602851782"}' headers: Accept: - application/json @@ -170,17 +170,17 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:44:29 GMT + - Thu, 04 Aug 2022 08:47:33 GMT ms-cv: - - HQFKR3uKh0O5NBjsXRZxsQ.0 + - 3N+GDXaU9UWj3uSLahTW3A.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034429Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000140dt + - 20220804T084733Z-kpegq6a2qh4nr419q7tfax5sn400000001s0000000013z6q x-cache: - CONFIG_NOCACHE x-processing-time: - - 127ms + - 138ms status: code: 200 message: OK @@ -199,9 +199,9 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-024d-7bfa-553a0d00660f"}}, - "chatMessageId": "1659584668572", "readOn": "2022-08-04T03:44:29Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}, + "chatMessageId": "1659602851782", "readOn": "2022-08-04T08:47:33Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -210,19 +210,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:30 GMT + - Thu, 04 Aug 2022 08:47:33 GMT ms-cv: - - aP/F1PneQkib0FoiNhe+TA.0 + - eV4IeZDnv0KeJALXj5HhTg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034430Z-afb852g2vh6591nsqudzty20xs00000001kg000000010gcf + - 20220804T084733Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001t2d2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 43ms + - 64ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index 46adb493f7e..56cf1941274 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:44:25 GMT + - Thu, 04 Aug 2022 08:48:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:44:26.6959575+00:00"}}' + "expiresOn": "2022-08-05T08:48:41.5470251+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -35,19 +35,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:26 GMT + - Thu, 04 Aug 2022 08:48:41 GMT ms-cv: - - GZT7OU2S+E+DxrE5ch/0Sg.0 + - g8NVusuaBk+B702BcZHd5A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0mkDrYgAAAAANkOIhxM2STZH7tjeSKRqYWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 06YfrYgAAAABPIGFAHmtTSKQTRxZLURdsWVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 98ms + - 97ms status: code: 201 message: Created @@ -67,41 +67,43 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - f5303164-8eb3-42dd-92b2-5d0c6d1636fc + - e02d26d5-5c67-404c-9ef4-d650e292c53f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T03:44:27Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:48:42Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:27 GMT + - Thu, 04 Aug 2022 08:48:42 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A8uFNjzwjGX3MtDMs4i5aXqnostkQj9W25XEsoX1Cbdc1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A-N2e3Xu4rku5qjeY5HoumrzR5OAeUbpccU3ESBIM2I01@thread.v2 ms-cv: - - qx+im2C8YUSda7AXDPo/GQ.0 + - bNd8pH3NWUmyz054muAGvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0m0DrYgAAAAAEgUiVeJCCQ7mZ98uCQEMHWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T084842Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001qhcf x-cache: - CONFIG_NOCACHE x-processing-time: - - 837ms + - 392ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-06d6-0043-655d-573a0d00debe"}}}]}' + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07ec-8c45-80f5-8b3a0d00434c"}}}]}' headers: Accept: - application/json @@ -128,19 +130,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:44:28 GMT + - Thu, 04 Aug 2022 08:48:43 GMT ms-cv: - - Y8NOcexCr0OZo0yn7ZSqvQ.0 + - sRRX+eG1B0CzDNxDCJ7QsA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034428Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000021y92 + - 20220804T084842Z-tur6dybg817yr054hm9efewep800000000zg000000035mxb x-cache: - CONFIG_NOCACHE x-processing-time: - - 184ms + - 242ms status: code: 201 message: Created @@ -170,17 +172,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 03:44:29 GMT + - Thu, 04 Aug 2022 08:48:43 GMT ms-cv: - - ZgeJRgD+S021aMSGmDkJ3w.0 + - Pm5SUdw5ckShez7+GQ4c0w.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034429Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001k000000002syew + - 20220804T084843Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000003k5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 266ms + - 357ms status: code: 204 message: No Content @@ -213,19 +215,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 03:44:29 GMT + - Thu, 04 Aug 2022 08:48:43 GMT ms-cv: - - XlL6v9eDMke+lGEbLKCCSg.0 + - CEFtAZQl8UWuTrzNk38ddA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034429Z-afb852g2vh6591nsqudzty20xs00000001n000000000abye + - 20220804T084843Z-k97maztpax51x2ee2r7vqbw7wg00000001q0000000029354 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2ms + - 1ms status: code: 400 message: Bad Request @@ -255,17 +257,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 03:44:30 GMT + - Thu, 04 Aug 2022 08:48:44 GMT ms-cv: - - n1XMZj36J0+21RNc+Zm13A.0 + - vQKr0BtcHkaHluv7mnEyhg.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034430Z-afb852g2vh6591nsqudzty20xs00000001k0000000016qxt + - 20220804T084844Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001vub x-cache: - CONFIG_NOCACHE x-processing-time: - - 404ms + - 257ms status: code: 204 message: No Content @@ -299,19 +301,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 03:44:30 GMT + - Thu, 04 Aug 2022 08:48:44 GMT ms-cv: - - bwrXt/CuKki27ZOFrTlZow.0 + - Csk+OgW4cE+hNeCtcQPXMg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034430Z-tur6dybg817yr054hm9efewep800000000ug00000003n11d + - 20220804T084844Z-nntkv2q0nd3zt4kemgcvznhu2400000001ug0000000037ae x-cache: - CONFIG_NOCACHE x-processing-time: - - 158ms + - 73ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index 69d90a04454..fe0b06ed8f8 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -15,35 +15,37 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 28054b8b-63ad-4bab-811a-02e58d41dd43 + - 8b2a611b-f558-4a97-92c6-ae2c25e42c24 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T03:46:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:48:45Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:02 GMT + - Thu, 04 Aug 2022 08:48:46 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AutrLVLV-ywd6u_Yr5yOjBzbeoPqIq5le3nEI4KMpIpQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVgu-XHQqwckFp4ohK2MFoLUJ5c1gelcHGZblO0rL1Ek1@thread.v2 ms-cv: - - CJJUHjx/TU2JwOlCGNiqHQ.0 + - MgJ8Yei0f0O3XPZo5J8OEw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0+UDrYgAAAACGjD/eMEdFRqQwZDh2lscwWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T084845Z-afb852g2vh6591nsqudzty20xs00000001q000000002b8tk x-cache: - CONFIG_NOCACHE x-processing-time: - - 668ms + - 924ms status: code: 201 message: Created @@ -70,24 +72,26 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:02 GMT + - Thu, 04 Aug 2022 08:48:46 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AutrLVLV-ywd6u_Yr5yOjBzbeoPqIq5le3nEI4KMpIpQ1@thread.v2/messages/1659584763450 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVgu-XHQqwckFp4ohK2MFoLUJ5c1gelcHGZblO0rL1Ek1@thread.v2/messages/1659602926752 ms-cv: - - /l2SS7OzX0qTazJjY2cCPQ.0 + - kQ2rSuEcMkG6D4sCp2ILnw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0+0DrYgAAAAAsv5qd76g3Qqm/Aan2tHORWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T084846Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001tp0u x-cache: - CONFIG_NOCACHE x-processing-time: - - 178ms + - 207ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index 5f9838605e5..cd6b2569f9b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -15,35 +15,37 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 48044364-06b9-4029-8019-357bea400ccc + - a67b5dad-e1f6-4261-ace5-c0be5410e6de method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-04T03:46:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:48:46Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:01 GMT + - Thu, 04 Aug 2022 08:48:46 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A1QBQmCtlz09UQZYgg_V64Wv7iRyD-yBW6YKEUraEMCo1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A5Mgy6d9706xk57tncqEEFw2ldvbDBt7a1FDMoudO8j41@thread.v2 ms-cv: - - niDm6Ep51kymLRZY+7KAUw.0 + - rZrGmcxNzEmwDzeo198Mig.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0+UDrYgAAAAA1VXpWqc+8SZClT6Px53faWVZSMzExMDAwMTE1MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T084846Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001w7r x-cache: - CONFIG_NOCACHE x-processing-time: - - 409ms + - 664ms status: code: 201 message: Created @@ -70,24 +72,26 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:02 GMT + - Thu, 04 Aug 2022 08:48:47 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A1QBQmCtlz09UQZYgg_V64Wv7iRyD-yBW6YKEUraEMCo1@thread.v2/messages/1659584762678 + - https://clitest000002.communication.azure.com/chat/threads/19%3A5Mgy6d9706xk57tncqEEFw2ldvbDBt7a1FDMoudO8j41@thread.v2/messages/1659602927128 ms-cv: - - n1pHiy3wwEmc4KSWF14Gew.0 + - FMYGFUu+PUiCVTouuIxe4w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0+kDrYgAAAAA1TSuRTGOqQbASXFAstOF/WVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T084847Z-q1z3stmybd47948vv0qhv9299w00000001q0000000029wxw x-cache: - CONFIG_NOCACHE x-processing-time: - - 213ms + - 185ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index f51dd441c37..c4655798d3d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - e5a9e374-5ca9-4dfb-b440-f5e62f44e06b + - 5ad8f3a1-80d6-45c9-9d76-b6706da9e07f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T03:46:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:49:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:07 GMT + - Thu, 04 Aug 2022 08:49:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Awzc1Ezwq3szwDQWUtccR671_H1jh12SdurW71yfP0cs1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AJVFuvI96q64b9xNuM3j5rM6Yt4WMgxH8sJkju9v3wjM1@thread.v2 ms-cv: - - 6zVBQ4DyQUyCjbjZT4AFfQ.0 + - vhtH6gKXm0OX5vRYU/at/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034606Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001m000000001sefc + - 20220804T084909Z-afb852g2vh6591nsqudzty20xs00000001q000000002bghg x-cache: - CONFIG_NOCACHE x-processing-time: - - 665ms + - 734ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index f6b3a8fa9ae..6c407901b4a 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - cf7825f4-f8aa-4b87-909f-04bc26cadf98 + - 4200f6f6-9dca-4a4f-8da1-1c36deda294a method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T03:46:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:50:21Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:07 GMT + - Thu, 04 Aug 2022 08:50:22 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aswtap6pLnipMjjs5edcRI85MywGxsqIyT3BrrBWitaY1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AYcHGj8-Ir1zZAsoYyG-TNY-MvLfMttNE0sQWzpsu63M1@thread.v2 ms-cv: - - 9DbZgMhyUUWmkOln/jaKiA.0 + - mBCf4IYQHUOmjSl8FY4HeQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034606Z-q1z3stmybd47948vv0qhv9299w00000001k000000001bbha + - 20220804T085021Z-tur6dybg817yr054hm9efewep800000000zg00000001w1z5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 636ms + - 565ms status: code: 201 message: Created @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:46:07 GMT + - Thu, 04 Aug 2022 08:50:22 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aswtap6pLnipMjjs5edcRI85MywGxsqIyT3BrrBWitaY1@thread.v2/messages/1659584767556 + - https://clitest000002.communication.azure.com/chat/threads/19%3AYcHGj8-Ir1zZAsoYyG-TNY-MvLfMttNE0sQWzpsu63M1@thread.v2/messages/1659603022584 ms-cv: - - +RnXtsptSUihdivAH6zOPA.0 + - He1zwqKNQE2zIwSwEBMC/A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034607Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000022fhf + - 20220804T085022Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001rbbn x-cache: - CONFIG_NOCACHE x-processing-time: - - 227ms + - 185ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index 91991a2f713..e6de79bfce8 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 1f3c9091-7fef-4f98-a7d6-fa219019db0a + - 8856c8cc-1afa-457c-aee1-19ce7fe8d64f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T03:47:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:50:22Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:40 GMT + - Thu, 04 Aug 2022 08:50:23 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlIrVdxkyYQJXFGXSqXbvbK1_v4fVrUB75rf4nL0De3c1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AeD59wa300lXxfkiHIfc7k0X9bvn3zc9uZieiBrIXxJQ1@thread.v2 ms-cv: - - 0wd5aDA6Q0+Wqp5dgV8SEg.0 + - YUvbdY6ySUq1sAG19DqLnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034739Z-tur6dybg817yr054hm9efewep800000000ug00000003q20q + - 20220804T085022Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001vg000000002wbc x-cache: - CONFIG_NOCACHE x-processing-time: - - 772ms + - 617ms status: code: 201 message: Created @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:40 GMT + - Thu, 04 Aug 2022 08:50:24 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlIrVdxkyYQJXFGXSqXbvbK1_v4fVrUB75rf4nL0De3c1@thread.v2/messages/1659584860476 + - https://clitest000002.communication.azure.com/chat/threads/19%3AeD59wa300lXxfkiHIfc7k0X9bvn3zc9uZieiBrIXxJQ1@thread.v2/messages/1659603023907 ms-cv: - - QA1/WkWnzkqgVLfOEkpU3Q.0 + - RMJFWTkzZkWLcBAsmk9Cog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034740Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002ad9r + - 20220804T085023Z-k97maztpax51x2ee2r7vqbw7wg00000001q0000000029z52 x-cache: - CONFIG_NOCACHE x-processing-time: - - 183ms + - 211ms status: code: 201 message: Created @@ -118,18 +118,20 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive date: - - Thu, 04 Aug 2022 03:47:41 GMT + - Thu, 04 Aug 2022 08:50:24 GMT ms-cv: - - ZnlX8P4p8UKh/DcJ4QlbdQ.0 + - AI/XDJ90J0Kl31PR+s6N3g.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0XUHrYgAAAAA+8KVukpPmSaocYflB8S/IWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T085024Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001vg000000000612 x-cache: - CONFIG_NOCACHE x-processing-time: - - 207ms + - 261ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index a4ea90eb7d4..959fe928e22 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -15,13 +15,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 586244a9-6090-44b5-9463-f87386842961 + - 841e2193-3212-4bd0-976e-2610e0f29f0c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T03:47:38Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-04T08:50:23Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:39 GMT + - Thu, 04 Aug 2022 08:50:24 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AW-dPjDBTmf-1GXBQBP-v1nOn6TanObGvVUPTKJcPBYw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A2wvkuTP3t9OlOUUz4MhkG6__gA22MvPh1FJM0cEH2s41@thread.v2 ms-cv: - - HG5GK8jJIUexkHojtSt4xw.0 + - KA3bpYlZ7UGqJI3pBN5Clw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034738Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001kg00000003a01p + - 20220804T085023Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000005a1k x-cache: - CONFIG_NOCACHE x-processing-time: - - 886ms + - 806ms status: code: 201 message: Created @@ -75,17 +75,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 03:47:40 GMT + - Thu, 04 Aug 2022 08:50:24 GMT ms-cv: - - 6IaAs3iLC02rPOEP2jjnNQ.0 + - WnDZbGbCl0WwP8ePz6NkOw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034740Z-kpegq6a2qh4nr419q7tfax5sn400000001kg000000013e8b + - 20220804T085024Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000001fger x-cache: - CONFIG_NOCACHE x-processing-time: - - 278ms + - 335ms status: code: 204 message: No Content 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 similarity index 71% rename from src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml rename to src/communication/azext_communication/tests/latest/recordings/test_communication_scenario.yaml index e9bc240a101..906228ec25d 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 @@ -22,11 +22,11 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"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/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -34,13 +34,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:21 GMT + - Thu, 04 Aug 2022 08:52:05 GMT etag: - - '"0400e3ae-0000-0700-0000-62eb41c10000"' + - '"05000b86-0000-0700-0000-62eb88b50000"' expires: - '-1' mise-correlation-id: - - 2e5ede31-923b-420a-a48f-5e81d2035bcf + - b484ea82-a8fb-487f-8ac4-b8e1b1bf8063 pragma: - no-cache request-context: @@ -72,10 +72,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T03:49:21.2836012Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T08:52:05.4886054Z"}' headers: cache-control: - no-cache @@ -84,9 +84,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:51 GMT + - Thu, 04 Aug 2022 08:52:35 GMT etag: - - '"0b0023ae-0000-0800-0000-62eb41c10000"' + - '"0c000742-0000-0800-0000-62eb88b50000"' expires: - '-1' pragma: @@ -118,10 +118,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T03:49:21.2836012Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T08:52:05.4886054Z"}' headers: cache-control: - no-cache @@ -130,9 +130,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:21 GMT + - Thu, 04 Aug 2022 08:53:05 GMT etag: - - '"0b0023ae-0000-0800-0000-62eb41c10000"' + - '"0c000742-0000-0800-0000-62eb88b50000"' expires: - '-1' pragma: @@ -164,10 +164,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"aa1ab1e5-7b68-4082-b925-3bd1582a395a*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:49:21.2836012Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:52:05.4886054Z","properties":null}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:50 GMT + - Thu, 04 Aug 2022 08:53:35 GMT etag: - - '"2c004080-0000-0100-0000-62eb42030000"' + - '"2d00c720-0000-0100-0000-62eb88f70000"' expires: - '-1' pragma: @@ -213,7 +213,7 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","dataLocation":"United States"}}' headers: cache-control: @@ -223,9 +223,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:51 GMT + - Thu, 04 Aug 2022 08:53:35 GMT etag: - - '"040005af-0000-0700-0000-62eb41c90000"' + - '"05003386-0000-0700-0000-62eb88bc0000"' expires: - '-1' pragma: @@ -262,7 +262,7 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","dataLocation":"United States"}}' headers: cache-control: @@ -272,9 +272,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:52 GMT + - Thu, 04 Aug 2022 08:53:36 GMT etag: - - '"040005af-0000-0700-0000-62eb41c90000"' + - '"05003386-0000-0700-0000-62eb88bc0000"' expires: - '-1' pragma: @@ -311,7 +311,7 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","dataLocation":"United States"}}' headers: cache-control: @@ -321,9 +321,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:52 GMT + - Thu, 04 Aug 2022 08:53:37 GMT etag: - - '"040005af-0000-0700-0000-62eb41c90000"' + - '"05003386-0000-0700-0000-62eb88bc0000"' expires: - '-1' pragma: @@ -360,7 +360,7 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:49:20.9282571Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","dataLocation":"United States"}}]}' headers: cache-control: @@ -370,7 +370,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:53 GMT + - Thu, 04 Aug 2022 08:53:37 GMT expires: - '-1' pragma: @@ -411,7 +411,7 @@ interactions: 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-08-04T03:49:20.9282571Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T03:50:54.1403116Z"},"properties":{"hostName":"mycommunicacwfjgobupqaw.communication.azure.com","immutableResourceId":"839f3dcb-21f1-47e8-9c96-13dce37d79a0","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:53:38.6384423Z"},"properties":{"hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: @@ -421,11 +421,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:54 GMT + - Thu, 04 Aug 2022 08:53:39 GMT etag: - - '"04003bb0-0000-0700-0000-62eb421e0000"' + - '"05001687-0000-0700-0000-62eb89130000"' expires: - '-1' + mise-correlation-id: + - e4f73253-67f1-480b-950c-32af3119b51e pragma: - no-cache request-context: @@ -478,9 +480,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:55 GMT + - Thu, 04 Aug 2022 08:53:41 GMT expires: - '-1' + mise-correlation-id: + - 9909e7b4-d50e-4df9-832a-b95d7d7b77bc pragma: - no-cache request-context: @@ -521,7 +525,7 @@ interactions: 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":"kWjPuZCTEpNNKpc/7ssnw7lkr7u489pJUHJSy6CSmU16ufUBb0kShPMfm0jirB9dHhMphOTyIzYqWfu7OMO7xA==","secondaryKey":"fSGWHK6iSccsilUnaCn10l3qhCksRIC2hXS17Bkqx1OMpsnGAaM47fCv9rFjJtdK7qEjMBNLJv4seQ8dNmBBuA==","primaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=kWjPuZCTEpNNKpc/7ssnw7lkr7u489pJUHJSy6CSmU16ufUBb0kShPMfm0jirB9dHhMphOTyIzYqWfu7OMO7xA==","secondaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=fSGWHK6iSccsilUnaCn10l3qhCksRIC2hXS17Bkqx1OMpsnGAaM47fCv9rFjJtdK7qEjMBNLJv4seQ8dNmBBuA=="}' + string: '{"primaryKey":"l8ODwsI5ni9CgI52XptVFWJRO3rfghrTfc19V4k3fhPtwV7luB+/cpfuS8V99wWyKJejgNcHPQJA5ErhmrHcOQ==","secondaryKey":"CviLM828dKr78PBP2kIhrf1P0wWd1tmPoFTlGut/ysZl+2SGzu/IwNBbprFYBMbcuUwX8qXxKSMW438J3GsJsQ==","primaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=l8ODwsI5ni9CgI52XptVFWJRO3rfghrTfc19V4k3fhPtwV7luB+/cpfuS8V99wWyKJejgNcHPQJA5ErhmrHcOQ==","secondaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=CviLM828dKr78PBP2kIhrf1P0wWd1tmPoFTlGut/ysZl+2SGzu/IwNBbprFYBMbcuUwX8qXxKSMW438J3GsJsQ=="}' headers: cache-control: - no-cache @@ -530,9 +534,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:56 GMT + - Thu, 04 Aug 2022 08:53:42 GMT expires: - '-1' + mise-correlation-id: + - e78eca0e-2a57-4ce1-8689-acadc3ee0b2b pragma: - no-cache request-context: @@ -575,7 +581,7 @@ interactions: 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":"IbpXi0Q6UIL12LrPdJhfwB2VMlZZBlalunlBK+3DRLgjCEFAgYvIpifudWfvUB5rShvfzhG481tMqGoUMqcEFg==","primaryConnectionString":"endpoint=https://mycommunicacwfjgobupqaw.communication.azure.com/;accesskey=IbpXi0Q6UIL12LrPdJhfwB2VMlZZBlalunlBK+3DRLgjCEFAgYvIpifudWfvUB5rShvfzhG481tMqGoUMqcEFg=="}' + string: '{"primaryKey":"SjvMpWMxZD9RlV9Msr/oAieSkk3avHzlkOZj+RjMHU80cev1YBhRwxs/sxnV7diV+4xT4URUoXP/F4uMAVnkGQ==","primaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=SjvMpWMxZD9RlV9Msr/oAieSkk3avHzlkOZj+RjMHU80cev1YBhRwxs/sxnV7diV+4xT4URUoXP/F4uMAVnkGQ=="}' headers: cache-control: - no-cache @@ -584,9 +590,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:56 GMT + - Thu, 04 Aug 2022 08:53:42 GMT expires: - '-1' + mise-correlation-id: + - 40b9247a-ba95-4394-aacd-59cea1961d77 pragma: - no-cache request-context: @@ -630,7 +638,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -638,13 +646,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:57 GMT + - Thu, 04 Aug 2022 08:53:43 GMT etag: - - '"040043b0-0000-0700-0000-62eb42210000"' + - '"05001e87-0000-0700-0000-62eb89180000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -674,10 +682,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T03:50:57.8044092Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T08:53:43.9612888Z"}' headers: cache-control: - no-cache @@ -686,9 +694,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:51:27 GMT + - Thu, 04 Aug 2022 08:54:13 GMT etag: - - '"0b0046af-0000-0800-0000-62eb42210000"' + - '"0c005f42-0000-0800-0000-62eb89170000"' expires: - '-1' pragma: @@ -716,10 +724,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T03:50:57.8044092Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T08:53:43.9612888Z"}' headers: cache-control: - no-cache @@ -728,9 +736,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:51:57 GMT + - Thu, 04 Aug 2022 08:54:44 GMT etag: - - '"0b0046af-0000-0800-0000-62eb42210000"' + - '"0c005f42-0000-0800-0000-62eb89170000"' expires: - '-1' pragma: @@ -758,10 +766,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:50:57.8044092Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:53:43.9612888Z","properties":null}' headers: cache-control: - no-cache @@ -770,9 +778,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:28 GMT + - Thu, 04 Aug 2022 08:55:14 GMT etag: - - '"0b00dbaf-0000-0800-0000-62eb42630000"' + - '"0c007742-0000-0800-0000-62eb895b0000"' expires: - '-1' pragma: @@ -804,10 +812,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","name":"40ba2264-f43e-4f13-89cc-e5f408f61a2b*10A6A8B2E51E6215BBD3C19BE0875E9799F8EF57C2AC7276093E262336D8A231","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T03:50:57.8044092Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:53:43.9612888Z","properties":null}' headers: cache-control: - no-cache @@ -816,9 +824,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:28 GMT + - Thu, 04 Aug 2022 08:55:14 GMT etag: - - '"0b00dbaf-0000-0800-0000-62eb42630000"' + - '"0c007742-0000-0800-0000-62eb895b0000"' 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 36f1f0309eb..a67cf350e81 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,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:47:42 GMT + - Thu, 04 Aug 2022 08:50:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:47:43.7572702+00:00"}}' + "expiresOn": "2022-08-05T08:50:46.4457809+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:43 GMT + - Thu, 04 Aug 2022 08:50:46 GMT ms-cv: - - dLwhy/U2kEG5PlRDBrgmug.0 + - XW5ziKYD1UObnUnFf2u2Gg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034743Z-q1z3stmybd47948vv0qhv9299w00000001mg0000000092vv + - 20220804T085046Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001rg00000001q7zy x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 125ms 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 21109d3654c..dbce3d96c66 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,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:47:43 GMT + - Thu, 04 Aug 2022 08:51:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:43 GMT + - Thu, 04 Aug 2022 08:51:59 GMT ms-cv: - - BoqzZ/4MH0qe4TnD+pX1RQ.0 + - N5Wo2GG/ck6ni6OM8YyU0Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034743Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000039fbb + - 20220804T085159Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001u0000000002rau x-cache: - CONFIG_NOCACHE x-processing-time: - - 116ms + - 110ms status: code: 201 message: Created @@ -66,7 +66,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:47:43 GMT + - Thu, 04 Aug 2022 08:51:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -77,7 +77,7 @@ interactions: uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-05T03:47:44.2477153+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-05T08:51:59.9021822+00:00"}' headers: accept-ranges: - bytes @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:47:44 GMT + - Thu, 04 Aug 2022 08:51:59 GMT ms-cv: - - 0LOgw40mhkWJVTOInSd3SA.0 + - mFi5SS+R0EqPT/7EGNi/ig.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034744Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001k0000000039fex + - 20220804T085159Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001vg000000000hhe x-cache: - CONFIG_NOCACHE x-processing-time: - - 161ms + - 175ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index 07b6fa7d424..35069bbf696 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:15 GMT + - Thu, 04 Aug 2022 08:52:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T03:49:16.4078509+00:00"}}' + "expiresOn": "2022-08-05T08:52:01.2527223+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:16 GMT + - Thu, 04 Aug 2022 08:52:01 GMT ms-cv: - - WPAovhNH+E2TZ7mrBqc7Xw.0 + - YDTMAYVPSkaWe8z1VUbAxg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034916Z-tur6dybg817yr054hm9efewep800000000ug00000003r33e + - 20220804T085201Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001s7n9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 135ms + - 117ms status: code: 201 message: Created 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 27cc98a0d53..ab756cd1887 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:18 GMT + - Thu, 04 Aug 2022 08:52:21 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:49:23 GMT + - Thu, 04 Aug 2022 08:52:26 GMT location: - - /availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 ms-cv: - - i9gcfKK2vEK2J8cy44pgCQ.0 + - xp3HsJpWTEGjKCW9cWgfZQ.0 operation-id: - - search_5b601c15-dbf0-4a76-ace5-9a128060c9d6 + - search_1580cc09-4b3d-46f2-b679-adb894e5a4f2 operation-location: - - /phoneNumbers/operations/search_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + - /phoneNumbers/operations/search_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 search-id: - - 5b601c15-dbf0-4a76-ace5-9a128060c9d6 + - 1580cc09-4b3d-46f2-b679-adb894e5a4f2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034919Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zatm + - 20220804T085222Z-tur6dybg817yr054hm9efewep8000000010g00000000qh9u x-cache: - CONFIG_NOCACHE x-processing-time: - - 3723ms + - 4172ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:49:53 GMT + - Thu, 04 Aug 2022 08:52:56 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:49:22.9801005+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07", + "createdDateTime": "2022-08-04T08:52:26.5151109+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:53 GMT + - Thu, 04 Aug 2022 08:52:58 GMT location: - - /availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 ms-cv: - - SsXndxcE00KzxYosWvjKoQ.0 + - 1TjD+IKWZ0+akzDPsCvykw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034953Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zn0y + - 20220804T085257Z-tur6dybg817yr054hm9efewep8000000010g00000000qpeq x-cache: - CONFIG_NOCACHE x-processing-time: - - 338ms + - 769ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:49:53 GMT + - Thu, 04 Aug 2022 08:52:57 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 response: body: - string: '{"searchId": "5b601c15-dbf0-4a76-ace5-9a128060c9d6", "phoneNumbers": + string: '{"searchId": "1580cc09-4b3d-46f2-b679-adb894e5a4f2", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:05:25.3160904+00:00"}' + "2022-08-04T09:08:28.5065280+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:54 GMT + - Thu, 04 Aug 2022 08:52:59 GMT ms-cv: - - dP/rsseNg0S5urWQMUD/6Q.0 + - thZdaQO9wk2FwoPnePu8ng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034953Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zn45 + - 20220804T085258Z-tur6dybg817yr054hm9efewep8000000010g00000000qpn3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 852ms + - 1231ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "5b601c15-dbf0-4a76-ace5-9a128060c9d6"}' + body: '{"searchId": "1580cc09-4b3d-46f2-b679-adb894e5a4f2"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:54 GMT + - Thu, 04 Aug 2022 08:52:59 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - OHWTDHz/rtJoKZ/FNUNm1vZwZd1IjgkHpwk5Tb/3dKY= + - httbxswchOJnIeup/j9Xy4YuqSeB1h3ZaslMmqcUQVA= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:49:56 GMT + - Thu, 04 Aug 2022 08:53:02 GMT ms-cv: - - tlyABeuDaUuBrLNx7kxLGg.0 + - GeYw1rDA8UWe66a5sj26aQ.0 operation-id: - - purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6 + - purchase_1580cc09-4b3d-46f2-b679-adb894e5a4f2 operation-location: - - /phoneNumbers/operations/purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 purchase-id: - - 5b601c15-dbf0-4a76-ace5-9a128060c9d6 + - 1580cc09-4b3d-46f2-b679-adb894e5a4f2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034954Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zncx + - 20220804T085259Z-tur6dybg817yr054hm9efewep8000000010g00000000qpwm x-cache: - CONFIG_NOCACHE x-processing-time: - - 1632ms + - 2164ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:50:26 GMT + - Thu, 04 Aug 2022 08:53:31 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_5b601c15-dbf0-4a76-ace5-9a128060c9d6?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:49:22.9801005+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-04T08:52:26.5151109+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:27 GMT + - Thu, 04 Aug 2022 08:53:33 GMT ms-cv: - - 98sWRzI1dkKVsxIRNe59Bg.0 + - qNNZZRkKfk2xwZEXdXwbSw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035026Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001kg00000000zvre + - 20220804T085332Z-tur6dybg817yr054hm9efewep8000000010g00000000qw0p x-cache: - CONFIG_NOCACHE x-processing-time: - - 332ms + - 607ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:50:26 GMT + - Thu, 04 Aug 2022 08:53:32 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -292,27 +292,29 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-08-04T03:50:12.3665766+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-04T08:53:16.2599385+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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:28 GMT + - Thu, 04 Aug 2022 08:53:37 GMT ms-cv: - - 0BtcQ1JZq0aXPbDxmBxuXg.0 + - 6rueIm38tEWBG0WZZetqtw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0A0LrYgAAAAD7ttSjYuFVSomFEXeVqA9TWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T085333Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001ebs x-cache: - CONFIG_NOCACHE x-processing-time: - - 2190ms + - 3682ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index 3da8f6385a2..703c88a3137 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:16 GMT + - Thu, 04 Aug 2022 08:51:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:17 GMT + - Thu, 04 Aug 2022 08:52:00 GMT ms-cv: - - vDsqV7Kk3kepQdeNc7a08w.0 + - mTrsL/p4FE6rod7KuqZmiQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034917Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000037fsz + - 20220804T085200Z-91tba13kdd5mrb8h3w91379wbg00000001q00000000242v3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 108ms status: code: 201 message: Created @@ -64,7 +64,7 @@ interactions: Content-Length: - '0' Date: - - Thu, 04 Aug 2022 03:49:17 GMT + - Thu, 04 Aug 2022 08:51:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -83,19 +83,19 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 03:49:17 GMT + - Thu, 04 Aug 2022 08:52:00 GMT ms-cv: - - 1tUq3wG1PkGAtEBAtR3SAw.0 + - s6BOPbL7VkqUN8wd3s9nyQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034917Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001mg00000002b5hp + - 20220804T085200Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000003arw x-cache: - CONFIG_NOCACHE x-processing-time: - - 103ms + - 107ms status: code: 204 message: No Content 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 ab541e247f9..01a644c5c40 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:50:53 GMT + - Thu, 04 Aug 2022 08:53:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:50:57 GMT + - Thu, 04 Aug 2022 08:53:41 GMT location: - - /availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 ms-cv: - - sFrbejqL1USou/Ci0iDKfQ.0 + - ZaEQrnccj0uXOSvSQrFESw.0 operation-id: - - search_e4f037c6-9807-4cee-82cb-557937312e81 + - search_fdb2276d-430a-46af-af83-7f6e60c1e7e5 operation-location: - - /phoneNumbers/operations/search_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + - /phoneNumbers/operations/search_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 search-id: - - e4f037c6-9807-4cee-82cb-557937312e81 + - fdb2276d-430a-46af-af83-7f6e60c1e7e5 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035054Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013a3k + - 20220804T085336Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000001yng x-cache: - CONFIG_NOCACHE x-processing-time: - - 2738ms + - 3970ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:51:26 GMT + - Thu, 04 Aug 2022 08:54:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:50:56.8342128+00:00", "id": "search_e4f037c6-9807-4cee-82cb-557937312e81", + "/availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07", + "createdDateTime": "2022-08-04T08:53:40.5342185+00:00", "id": "search_fdb2276d-430a-46af-af83-7f6e60c1e7e5", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:51:28 GMT + - Thu, 04 Aug 2022 08:54:11 GMT location: - - /availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 ms-cv: - - MakVbuwsSUekwZp6n/LitA.0 + - FWKAUUgfekGuD9hqE/83ng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035127Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013n4m + - 20220804T085411Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000027z9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 498ms + - 423ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:51:27 GMT + - Thu, 04 Aug 2022 08:54:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 response: body: - string: '{"searchId": "e4f037c6-9807-4cee-82cb-557937312e81", "phoneNumbers": - ["+18443190536"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "fdb2276d-430a-46af-af83-7f6e60c1e7e5", "phoneNumbers": + ["+18443044020"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:06:58.5859252+00:00"}' + "2022-08-04T09:09:45.7847138+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:51:29 GMT + - Thu, 04 Aug 2022 08:54:14 GMT ms-cv: - - cStmbJQXVkO4Ixp6R8QTbg.0 + - gRWef31LkUGBQf+U3MF7ug.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035128Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013nbq + - 20220804T085411Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u000000000284x x-cache: - CONFIG_NOCACHE x-processing-time: - - 1282ms + - 2474ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "e4f037c6-9807-4cee-82cb-557937312e81"}' + body: '{"searchId": "fdb2276d-430a-46af-af83-7f6e60c1e7e5"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:51:29 GMT + - Thu, 04 Aug 2022 08:54:13 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - egjfiMwFLxnitk05VNDyEuyP9sWgSlIYngB9rFkf2z4= + - Hq6wHdEJcMYld8+IzRZcv/RLsajpMnHD2cKObxKy+YA= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:51:31 GMT + - Thu, 04 Aug 2022 08:54:16 GMT ms-cv: - - 6gOVorEb+0GB9R7dWneGuQ.0 + - UUHkIlEDkUe0OeMFx5vV2A.0 operation-id: - - purchase_e4f037c6-9807-4cee-82cb-557937312e81 + - purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5 operation-location: - - /phoneNumbers/operations/purchase_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 purchase-id: - - e4f037c6-9807-4cee-82cb-557937312e81 + - fdb2276d-430a-46af-af83-7f6e60c1e7e5 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035129Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013nuh + - 20220804T085414Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000028xp x-cache: - CONFIG_NOCACHE x-processing-time: - - 1728ms + - 1820ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:52:01 GMT + - Thu, 04 Aug 2022 08:54:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_e4f037c6-9807-4cee-82cb-557937312e81?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:50:56.8342128+00:00", "id": "purchase_e4f037c6-9807-4cee-82cb-557937312e81", + null, "createdDateTime": "2022-08-04T08:53:40.5342185+00:00", "id": "purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:02 GMT + - Thu, 04 Aug 2022 08:54:46 GMT ms-cv: - - HYvPEN3ihUyMDk68Nt6DRA.0 + - QMZfzVu0gU6l3AHouTOuOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035201Z-91tba13kdd5mrb8h3w91379wbg00000001k0000000013ys5 + - 20220804T085446Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000002hpu x-cache: - CONFIG_NOCACHE x-processing-time: - - 378ms + - 391ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:52:02 GMT + - Thu, 04 Aug 2022 08:54:46 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - uAl9x+P5Ju0WI8FPuiV0OT2c3qVRtcUZglcz+zWKcO8= + - g8dPz/x+TUzcyqt2AIQIoShmlXipRwB2g+A99PzG780= x-ms-return-client-request-id: - 'true' method: POST @@ -300,22 +300,24 @@ interactions: headers: api-supported-versions: - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:02 GMT + - Thu, 04 Aug 2022 08:54:47 GMT ms-cv: - - mPcH5VdNT0u4gP6EoRM3XA.0 + - W7VsR4yI8kiI92YnPmMYOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0YkLrYgAAAAAGET+8MFg1Sqi1K/B6y7VxWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T085446Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002k1w5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 311ms + - 217ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index 4430720dedd..0cdad30d369 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:52:13 GMT + - Thu, 04 Aug 2022 09:02:33 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:52:16 GMT + - Thu, 04 Aug 2022 09:02:39 GMT location: - - /availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 ms-cv: - - jFU/T/Tl802xnbqPlt7PqA.0 + - kZfTKfmwSUuXA8XRgS6dgg.0 operation-id: - - search_68e64321-4243-4fc8-97ed-f6ccdcc42004 + - search_423da52c-b8a0-483b-96e8-b086f5880267 operation-location: - - /phoneNumbers/operations/search_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + - /phoneNumbers/operations/search_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 search-id: - - 68e64321-4243-4fc8-97ed-f6ccdcc42004 + - 423da52c-b8a0-483b-96e8-b086f5880267 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035213Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000018ydp + - 20220804T090234Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006kc9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2695ms + - 4388ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:52:46 GMT + - Thu, 04 Aug 2022 09:03:08 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:52:16.2579265+00:00", "id": "search_68e64321-4243-4fc8-97ed-f6ccdcc42004", + "/availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07", + "createdDateTime": "2022-08-04T09:02:38.977525+00:00", "id": "search_423da52c-b8a0-483b-96e8-b086f5880267", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:47 GMT + - Thu, 04 Aug 2022 09:03:10 GMT location: - - /availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 ms-cv: - - TUNv8aB5H0+W28v75dT4Qw.0 + - UoyQsQ443E6wxQvnqvMz9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035246Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000198ap + - 20220804T090309Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006w4c x-cache: - CONFIG_NOCACHE x-processing-time: - - 335ms + - 408ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:52:46 GMT + - Thu, 04 Aug 2022 09:03:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 response: body: - string: '{"searchId": "68e64321-4243-4fc8-97ed-f6ccdcc42004", "phoneNumbers": - ["+18335022104"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "423da52c-b8a0-483b-96e8-b086f5880267", "phoneNumbers": + ["+18443044111"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:08:18.2017052+00:00"}' + "2022-08-04T09:18:41.4577288+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:52:49 GMT + - Thu, 04 Aug 2022 09:03:12 GMT ms-cv: - - L21+h2I5JEOu9MHiO7b7Sg.0 + - X6fiasTroEqG8HEOj19vAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035247Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k00000000198gc + - 20220804T090310Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006wa8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2208ms + - 2149ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "68e64321-4243-4fc8-97ed-f6ccdcc42004"}' + body: '{"searchId": "423da52c-b8a0-483b-96e8-b086f5880267"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:52:49 GMT + - Thu, 04 Aug 2022 09:03:12 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - yf/VnfZWPtQyuAWGCnr/PTDvbFz924yWVUQEoi4Snw4= + - gSA+jFxPRwPNj8Rh5dme2KygxnWJC0LdhDDrbvK+0BY= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:52:51 GMT + - Thu, 04 Aug 2022 09:03:15 GMT ms-cv: - - FDd/TmpKp02bNWaQuH+d4Q.0 + - qJz7DwV0qEmZqu2YWg0osA.0 operation-id: - - purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004 + - purchase_423da52c-b8a0-483b-96e8-b086f5880267 operation-location: - - /phoneNumbers/operations/purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 purchase-id: - - 68e64321-4243-4fc8-97ed-f6ccdcc42004 + - 423da52c-b8a0-483b-96e8-b086f5880267 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035249Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k000000001999s + - 20220804T090312Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006x1z x-cache: - CONFIG_NOCACHE x-processing-time: - - 1755ms + - 2290ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:53:21 GMT + - Thu, 04 Aug 2022 09:03:44 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:52:16.2579265+00:00", "id": "purchase_68e64321-4243-4fc8-97ed-f6ccdcc42004", + null, "createdDateTime": "2022-08-04T09:02:38.977525+00:00", "id": "purchase_423da52c-b8a0-483b-96e8-b086f5880267", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:53:22 GMT + - Thu, 04 Aug 2022 09:03:46 GMT ms-cv: - - ZFPX3QNl+E2zSMT6r56MbQ.0 + - xBxYDX5lfUutyIslW29QEQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035321Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001k0000000019kdx + - 20220804T090345Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000076nu x-cache: - CONFIG_NOCACHE x-processing-time: - - 388ms + - 435ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:53:22 GMT + - Thu, 04 Aug 2022 09:03:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -300,30 +300,28 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 03:53:26 GMT + - Thu, 04 Aug 2022 09:03:49 GMT location: - - /availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 ms-cv: - - akFd6Q6YVUiAHJeg68E0Ag.0 + - 4+/p9ZHROUGooSFwSZzpkA.0 operation-id: - - search_f5a95cfe-08aa-403e-858f-66bf391c956d + - search_01ab658d-0aaf-4e23-9bee-34cd875b46d8 operation-location: - - /phoneNumbers/operations/search_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + - /phoneNumbers/operations/search_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 search-id: - - f5a95cfe-08aa-403e-858f-66bf391c956d + - 01ab658d-0aaf-4e23-9bee-34cd875b46d8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035322Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039fqh + - 0covrYgAAAAAUFsXHnDf6QKWmpyEI0RTLWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3803ms + - 2847ms status: code: 202 message: Accepted @@ -337,7 +335,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:53:56 GMT + - Thu, 04 Aug 2022 09:04:19 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -345,38 +343,36 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:53:26.3306167+00:00", "id": "search_f5a95cfe-08aa-403e-858f-66bf391c956d", + "/availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07", + "createdDateTime": "2022-08-04T09:03:49.1515367+00:00", "id": "search_01ab658d-0aaf-4e23-9bee-34cd875b46d8", "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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:53:57 GMT + - Thu, 04 Aug 2022 09:04:19 GMT location: - - /availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 ms-cv: - - k0cVoBO50U2syzeaP0FYBw.0 + - rJCf+OvHu0+T52a5yQyVSw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035356Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039rzz + - 0k4vrYgAAAABhIKPdNzYTQpIA5v5N9iviWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 592ms + - 443ms status: code: 200 message: OK @@ -391,7 +387,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:53:57 GMT + - Thu, 04 Aug 2022 09:04:19 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -399,41 +395,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 response: body: - string: '{"searchId": "f5a95cfe-08aa-403e-858f-66bf391c956d", "phoneNumbers": - ["+18443185426"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "01ab658d-0aaf-4e23-9bee-34cd875b46d8", "phoneNumbers": + ["+18335192114"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:09:28.5394891+00:00"}' + "2022-08-04T09:19:51.5168106+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:53:59 GMT + - Thu, 04 Aug 2022 09:04:20 GMT ms-cv: - - gNRaDPszMEml8Mtc0X421g.0 + - G3Nn//7FgU67RTTC6VUuxg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035357Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039s6y + - 0lIvrYgAAAAA/V80s6MolTqjThpcfgvKuWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1121ms + - 1163ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "f5a95cfe-08aa-403e-858f-66bf391c956d"}' + body: '{"searchId": "01ab658d-0aaf-4e23-9bee-34cd875b46d8"}' headers: Accept: - application/json @@ -446,11 +440,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:53:58 GMT + - Thu, 04 Aug 2022 09:04:20 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - zlhSzRY1+ggCfhTlX6/t1mcLYkM/BI6g+c4JYFIOWJo= + - GItPW+YzJ2kPGMZmo+FOZ8n6eDDng7pZCmwm4ga2jQ0= x-ms-return-client-request-id: - 'true' method: POST @@ -463,28 +457,26 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 03:54:02 GMT + - Thu, 04 Aug 2022 09:04:22 GMT ms-cv: - - dxWtJIUe30SBNxkptE3eFQ.0 + - DQwge1MGzUqQNT2gbWRiPQ.0 operation-id: - - purchase_f5a95cfe-08aa-403e-858f-66bf391c956d + - purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8 operation-location: - - /phoneNumbers/operations/purchase_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 purchase-id: - - f5a95cfe-08aa-403e-858f-66bf391c956d + - 01ab658d-0aaf-4e23-9bee-34cd875b46d8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T035359Z-nntkv2q0nd3zt4kemgcvznhu2400000001m0000000039sgw + - 0lYvrYgAAAAAnJoTymApPT5EVrww69dWMWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2899ms + - 2055ms status: code: 202 message: Accepted @@ -498,7 +490,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:54:32 GMT + - Thu, 04 Aug 2022 09:04:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -506,33 +498,31 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f5a95cfe-08aa-403e-858f-66bf391c956d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:53:26.3306167+00:00", "id": "purchase_f5a95cfe-08aa-403e-858f-66bf391c956d", + null, "createdDateTime": "2022-08-04T09:03:49.1515367+00:00", "id": "purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:54:33 GMT + - Thu, 04 Aug 2022 09:04:54 GMT ms-cv: - - uWGH9zzdvkuA7gSTqaKnTg.0 + - l0gefiXMBkKbRnffdiLXaQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035432Z-nntkv2q0nd3zt4kemgcvznhu2400000001m000000003a1z6 + - 0tYvrYgAAAABd+K02y/FLQJbj7aipeObvWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 391ms + - 476ms status: code: 200 message: OK @@ -552,7 +542,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:54:32 GMT + - Thu, 04 Aug 2022 09:04:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -569,28 +559,30 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 03:54:36 GMT + - Thu, 04 Aug 2022 09:04:57 GMT location: - - /availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 ms-cv: - - NFFuVjzD4UC4q2RZ+eSK5Q.0 + - JXry3VjR3EehMZX9rzWt3g.0 operation-id: - - search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 + - search_068d56bc-7495-4161-8ac6-284d05f658a7 operation-location: - - /phoneNumbers/operations/search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + - /phoneNumbers/operations/search_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 search-id: - - 497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 + - 068d56bc-7495-4161-8ac6-284d05f658a7 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0+ULrYgAAAACmyebb0NARSp3edEsCa/OrWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T090454Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bff7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3282ms + - 2518ms status: code: 202 message: Accepted @@ -604,7 +596,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:55:06 GMT + - Thu, 04 Aug 2022 09:05:26 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -612,36 +604,38 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:54:36.2086963+00:00", "id": "search_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", + "/availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07", + "createdDateTime": "2022-08-04T09:04:56.7791073+00:00", "id": "search_068d56bc-7495-4161-8ac6-284d05f658a7", "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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:55:06 GMT + - Thu, 04 Aug 2022 09:05:27 GMT location: - - /availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 ms-cv: - - Guey+FnVa0yiJQ3D8nH8SA.0 + - TwJW9CI1E02qO7GLrKfKlQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0GkPrYgAAAACkmzWaDpS/R7Zmn4Sr/ZVaWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T090527Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bsdx x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 443ms status: code: 200 message: OK @@ -656,7 +650,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:55:06 GMT + - Thu, 04 Aug 2022 09:05:27 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -664,39 +658,41 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 response: body: - string: '{"searchId": "497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", "phoneNumbers": - ["+18335022070"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "068d56bc-7495-4161-8ac6-284d05f658a7", "phoneNumbers": + ["+18442942441"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:10:38.8316849+00:00"}' + "2022-08-04T09:20:59.2696786+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:55:07 GMT + - Thu, 04 Aug 2022 09:05:29 GMT ms-cv: - - M3lbj2cXmkaC9cc66feydw.0 + - dL+uq47RyEiBm9I4qkzP3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0G0PrYgAAAAD9ncITpvyfQInktUTLAgiuWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T090527Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bsm3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1079ms + - 1362ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "497bf24c-0c4f-4769-b0ea-8e16d4efd9f3"}' + body: '{"searchId": "068d56bc-7495-4161-8ac6-284d05f658a7"}' headers: Accept: - application/json @@ -709,11 +705,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:55:07 GMT + - Thu, 04 Aug 2022 09:05:28 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - MWYJrSR/ceYtdmgpBIRMJCvhezHJ14t6KzRI8zDybko= + - 1EYBYjnaf1aLhLMwDKuUSKUGiu+brkQZ1SuPdXh7xnA= x-ms-return-client-request-id: - 'true' method: POST @@ -726,26 +722,28 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 03:55:09 GMT + - Thu, 04 Aug 2022 09:05:31 GMT ms-cv: - - f9QAjYXRxEqmwaB+/5g4Aw.0 + - SKz/B3vwWEee4HksMw/8bw.0 operation-id: - - purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 + - purchase_068d56bc-7495-4161-8ac6-284d05f658a7 operation-location: - - /phoneNumbers/operations/purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 purchase-id: - - 497bf24c-0c4f-4769-b0ea-8e16d4efd9f3 + - 068d56bc-7495-4161-8ac6-284d05f658a7 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0HEPrYgAAAABnMKmiuN1sQKixVMAx1aznWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T090529Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bszy x-cache: - CONFIG_NOCACHE x-processing-time: - - 1740ms + - 2161ms status: code: 202 message: Accepted @@ -759,7 +757,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:55:39 GMT + - Thu, 04 Aug 2022 09:06:01 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -767,31 +765,33 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:54:36.2086963+00:00", "id": "purchase_497bf24c-0c4f-4769-b0ea-8e16d4efd9f3", + null, "createdDateTime": "2022-08-04T09:04:56.7791073+00:00", "id": "purchase_068d56bc-7495-4161-8ac6-284d05f658a7", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:55:39 GMT + - Thu, 04 Aug 2022 09:06:02 GMT ms-cv: - - 2nOl511cG0eXVxZxHQ/c3g.0 + - Ta7RnVwvokGyn1gyIys1xQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0PEPrYgAAAAB8kLCWl1KuSbevxPZB9uaOWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220804T090601Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002c1by x-cache: - CONFIG_NOCACHE x-processing-time: - - 294ms + - 463ms status: code: 200 message: OK @@ -813,11 +813,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:55:40 GMT + - Thu, 04 Aug 2022 09:06:01 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - XYHMk3SG5Cm/ilmMIBtvBNKY9SZUzk5oKL2QeVgqfRg= + - WIdUlgpcYDLYm2/F7G2Q+3AWXI7O5Jr+/NOV83NAxg4= x-ms-return-client-request-id: - 'true' method: POST @@ -836,19 +836,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:55:41 GMT + - Thu, 04 Aug 2022 09:06:03 GMT ms-cv: - - cfJIPCWX4kmks0DCKjNNaw.0 + - 6VnrPYg+sUyikXDupIsV2g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035540Z-afb852g2vh6591nsqudzty20xs00000001kg000000015t40 + - 20220804T090602Z-afb852g2vh6591nsqudzty20xs00000001q000000002qbuf x-cache: - CONFIG_NOCACHE x-processing-time: - - 655ms + - 320ms 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 a2d1da02714..1aa49a16ce5 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:19 GMT + - Thu, 04 Aug 2022 08:53:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:49:25 GMT + - Thu, 04 Aug 2022 08:53:40 GMT location: - - /availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 ms-cv: - - podN7+Snjkq0j+UKLAsfzQ.0 + - 2878PipW7EixAufRjuHztA.0 operation-id: - - search_71bda68e-236e-4737-87a3-c2d7064a6a44 + - search_39d2b921-028a-4dca-8024-7f18e06335f1 operation-location: - - /phoneNumbers/operations/search_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + - /phoneNumbers/operations/search_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 search-id: - - 71bda68e-236e-4737-87a3-c2d7064a6a44 + - 39d2b921-028a-4dca-8024-7f18e06335f1 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034920Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000usfh + - 20220804T085336Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001z8c8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 4369ms + - 4131ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:49:54 GMT + - Thu, 04 Aug 2022 08:54:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07", - "createdDateTime": "2022-08-04T03:49:24.4645304+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07", + "createdDateTime": "2022-08-04T08:53:40.2316034+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:55 GMT + - Thu, 04 Aug 2022 08:54:11 GMT location: - - /availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 ms-cv: - - CCYhLtZcBkOcoHIdlKcBCw.0 + - AfWQZc3P3kiRZRanLWIZ2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034955Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000uzdg + - 20220804T085410Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zkeb x-cache: - CONFIG_NOCACHE x-processing-time: - - 304ms + - 466ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:49:55 GMT + - Thu, 04 Aug 2022 08:54:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 response: body: - string: '{"searchId": "71bda68e-236e-4737-87a3-c2d7064a6a44", "phoneNumbers": + string: '{"searchId": "39d2b921-028a-4dca-8024-7f18e06335f1", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T04:05:26.5207227+00:00"}' + "2022-08-04T09:09:42.8775482+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:49:58 GMT + - Thu, 04 Aug 2022 08:54:12 GMT ms-cv: - - fqIxnfvfnUSv8K/vb6Yopg.0 + - UOFHbLvKcUKIiu9oa/GC5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T034955Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000uzg1 + - 20220804T085411Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zkmm x-cache: - CONFIG_NOCACHE x-processing-time: - - 2265ms + - 1293ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "71bda68e-236e-4737-87a3-c2d7064a6a44"}' + body: '{"searchId": "39d2b921-028a-4dca-8024-7f18e06335f1"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 03:49:57 GMT + - Thu, 04 Aug 2022 08:54:12 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - t60/FDN433udtqJUA5XUAGsKELmD6lTJ038lBCdj0W4= + - X1MRIpxTKz1wmWjOiimm6TbPzk3RjmDk6bUNDr+teyY= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 03:50:02 GMT + - Thu, 04 Aug 2022 08:54:14 GMT ms-cv: - - 5BirexxqEE2D/zLTG5kIFA.0 + - +OZpkI+5jkibtQFelM4h8Q.0 operation-id: - - purchase_71bda68e-236e-4737-87a3-c2d7064a6a44 + - purchase_39d2b921-028a-4dca-8024-7f18e06335f1 operation-location: - - /phoneNumbers/operations/purchase_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 purchase-id: - - 71bda68e-236e-4737-87a3-c2d7064a6a44 + - 39d2b921-028a-4dca-8024-7f18e06335f1 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T034958Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000v00c + - 20220804T085412Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zm0g x-cache: - CONFIG_NOCACHE x-processing-time: - - 3658ms + - 1995ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:50:31 GMT + - Thu, 04 Aug 2022 08:54:44 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_71bda68e-236e-4737-87a3-c2d7064a6a44?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T03:49:24.4645304+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-04T08:53:40.2316034+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:33 GMT + - Thu, 04 Aug 2022 08:54:45 GMT ms-cv: - - hXS5z/1nKEi0DZ6uUgugPg.0 + - F4sJ3S1T402tSFVC5jaSVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035032Z-91tba13kdd5mrb8h3w91379wbg00000001kg00000000v75g + - 20220804T085444Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zvtw x-cache: - CONFIG_NOCACHE x-processing-time: - - 1334ms + - 696ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 03:50:33 GMT + - Thu, 04 Aug 2022 08:54:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-04T03:50:16.9087717+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-04T08:54:29.2753114+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 03:50:37 GMT + - Thu, 04 Aug 2022 08:54:48 GMT ms-cv: - - RFUpPGl2lk2ssI6UB/cqvQ.0 + - GY9mLmxPpEuLK5s/BbhZYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T035034Z-q1z3stmybd47948vv0qhv9299w00000001kg000000011che + - 20220804T085446Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001wa6q x-cache: - CONFIG_NOCACHE x-processing-time: - - 2992ms + - 2153ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index ef8219d7ef8..b10f955ec48 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -39,10 +39,34 @@ def test_chat_list_threads_with_cmdline_auth(self, communication_resource_chat_i @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_with_no_auth(self): - with self.assertRaises(KeyError) as raises: - self.cmd('az communication chat list-threads --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() - assert 'Key \'endpoint\' not found in kwargs.' in str(raises.exception) + def test_chat_list_threads_no_endpoint(self, communication_resource_chat_info): + from azure.cli.core.azclierror import RequiredArgumentMissingError + + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + self.kwargs.pop('endpoint', None) + os.environ.pop('AZURE_COMMUNICATION_ENDPOINT', None) + + with self.assertRaises(RequiredArgumentMissingError) as raises: + self.cmd('az communication chat list-threads').get_output_in_json() + + assert '--endpoint' in str(raises.exception) + assert 'AZURE_COMMUNICATION_ENDPOINT' in str(raises.exception) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_list_threads_no_token(self, communication_resource_chat_info): + from azure.cli.core.azclierror import RequiredArgumentMissingError + + self.kwargs.update({'endpoint': communication_resource_chat_info[1]}) + self.kwargs.pop('access-token', None) + os.environ.pop('AZURE_COMMUNICATION_ACCESS_TOKEN', None) + + with self.assertRaises(RequiredArgumentMissingError) as raises: + self.cmd('az communication chat list-threads --endpoint {endpoint}').get_output_in_json() + + assert '--access-token' in str(raises.exception) + assert 'AZURE_COMMUNICATION_ACCESS_TOKEN' in str(raises.exception) @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 9261eae4018..796375eff44 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-08-04 03:59:52.082867|2022-08-04 03:59:52.492619| -|step_show|successed||||2022-08-04 03:59:52.493528|2022-08-04 03:59:52.544605| -|step_list|successed||||2022-08-04 03:59:52.544605|2022-08-04 03:59:52.599440| -|step_update|successed||||2022-08-04 03:59:52.599440|2022-08-04 03:59:52.654439| -|step_link_notification_hub|successed||||2022-08-04 03:59:52.654439|2022-08-04 03:59:52.716076| -|step_list_key|successed||||2022-08-04 03:59:52.717062|2022-08-04 03:59:52.770063| -|step_regenerate_key|successed||||2022-08-04 03:59:52.770063|2022-08-04 03:59:52.825750| -|step_delete|successed||||2022-08-04 03:59:52.825750|2022-08-04 03:59:53.019916| +|step_create|successed||||2022-08-04 09:06:14.411449|2022-08-04 09:06:14.824003| +|step_show|successed||||2022-08-04 09:06:14.825003|2022-08-04 09:06:14.877002| +|step_list|successed||||2022-08-04 09:06:14.877002|2022-08-04 09:06:14.928721| +|step_update|successed||||2022-08-04 09:06:14.928721|2022-08-04 09:06:14.984706| +|step_link_notification_hub|successed||||2022-08-04 09:06:14.984706|2022-08-04 09:06:15.051028| +|step_list_key|successed||||2022-08-04 09:06:15.051028|2022-08-04 09:06:15.102014| +|step_regenerate_key|successed||||2022-08-04 09:06:15.103015|2022-08-04 09:06:15.157015| +|step_delete|successed||||2022-08-04 09:06:15.157015|2022-08-04 09:06:15.393472| Coverage: 8/8 From bad876a3f61718580789a0efb2d7541b94d89676 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 11:15:29 -0700 Subject: [PATCH 08/26] [Communication] update readme and history, put commands in preview . --- src/communication/HISTORY.rst | 1 + src/communication/README.md | 6 ++++++ src/communication/azext_communication/manual/commands.py | 8 ++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/communication/HISTORY.rst b/src/communication/HISTORY.rst index b6d4892ff4e..d73f843cbb6 100644 --- a/src/communication/HISTORY.rst +++ b/src/communication/HISTORY.rst @@ -6,6 +6,7 @@ Release History 1.2.0 ++++++ * Add communication chat command group in preview mode. +* Add communication identity command group in preview mode. 1.1.2 diff --git a/src/communication/README.md b/src/communication/README.md index 43b97ee4cc8..ada0634dfea 100644 --- a/src/communication/README.md +++ b/src/communication/README.md @@ -61,6 +61,12 @@ az communication identity issue-access-token --scope chat az communication identity issue-access-token --scope chat voip --userid "8:acs:xxxxxx" ``` +##### Revoke-Access-Tokens ##### +``` +az communication identity revoke-access-tokens --userid "8:acs:xxxxxx" + +az communication identity revoke-access-tokens --userid "8:acs:xxxxxx" "8:acs:xxxxxy" "8:acs:xxxxxz" +``` ##### Send-SMS ##### ``` az communication sms send-sms --sender "+1833xxxxxxx" \ diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index 9a9ef744392..f2fa50eb6d3 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -13,21 +13,21 @@ def load_command_table(self, _): identity_arguments = ['connection_string'] - with self.command_group('communication identity', client_factory=cf_communication_identity) as g: + with self.command_group('communication identity', client_factory=cf_communication_identity, is_preview=True) as g: g.communication_custom_command('issue-access-token', "communication_issue_access_token", identity_arguments, client_factory=cf_communication_identity) g.communication_custom_command('revoke-access-tokens', "communication_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) sms_arguments = ['connection_string'] - with self.command_group('communication sms', client_factory=cf_communication_sms) as g: + with self.command_group('communication sms', client_factory=cf_communication_sms, is_preview=True) as g: g.communication_custom_command('send-sms', 'communication_send_sms', sms_arguments) phonenumber_arguments = ['connection_string'] - with self.command_group('communication phonenumbers', client_factory=cf_communication_phonenumbers) as g: + with self.command_group('communication phonenumbers', client_factory=cf_communication_phonenumbers, is_preview=True) as g: g.communication_custom_command('list-phonenumbers', 'communication_list_phonenumbers', phonenumber_arguments) g.communication_custom_command('show-phonenumber', 'communication_show_phonenumber', phonenumber_arguments) chat_arguments = ['endpoint', 'access_token'] - with self.command_group('communication chat', client_factory=cf_communication_chat) as g: + with self.command_group('communication chat', client_factory=cf_communication_chat, is_preview=True) as g: # thread management g.communication_custom_command('list-threads', 'communication_chat_list_threads', chat_arguments) g.communication_custom_command('create-thread', 'communication_chat_create_thread', chat_arguments) From f4ec5cf934f2bb2bedfdeb3fda847936c39bedaf Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 11:25:09 -0700 Subject: [PATCH 09/26] [Communication] fix typo in user id argument --- .../azext_communication/manual/_params.py | 4 ++-- .../azext_communication/manual/custom.py | 12 ++++++------ .../test_communication_identity_scenario.py | 4 ++-- .../test_communication_scenario_coverage.md | 16 ++++++++-------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index 0fbfbc8ff72..7ee951954c7 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -16,12 +16,12 @@ def load_arguments(self, _): def _load_identity_arguments(self): with self.argument_context('communication identity issue-access-token') as c: - c.argument('userid', options_list=['--userid', '-u'], + c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') c.argument('scopes', options_list=['--scope', '-s'], nargs='+', help='list of scopes for an access token ex: chat/voip') with self.argument_context('communication identity revoke-access-tokens') as c: - c.argument('userid', options_list=['--userid', '-u'], type=str, help='ACS identifier') + c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') def _load_sms_arguments(self): diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index 777ce081f3a..14ac758509f 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -4,11 +4,11 @@ # -------------------------------------------------------------------------------------------- -def communication_issue_access_token(client, scopes, userid=None): +def communication_issue_access_token(client, scopes, user_id=None): from azure.communication.identity import CommunicationUserIdentifier - user_token_data = {"user_id": userid, "token": "", "expires_on": ""} - if userid is not None: - user = CommunicationUserIdentifier(userid) + user_token_data = {"user_id": user_id, "token": "", "expires_on": ""} + if user_id is not None: + user = CommunicationUserIdentifier(user_id) token_data = client.get_token(user, scopes) user_token_data["token"] = token_data.token user_token_data["expires_on"] = str(token_data.expires_on) @@ -22,9 +22,9 @@ def communication_issue_access_token(client, scopes, userid=None): return user_token_data -def communication_revoke_access_tokens(client, userid): +def communication_revoke_access_tokens(client, user_id): from azure.communication.identity import CommunicationUserIdentifier - return client.revoke_tokens(CommunicationUserIdentifier(userid)) + return client.revoke_tokens(CommunicationUserIdentifier(user_id)) def communication_send_sms(client, sender, recipients, message): diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index 2cfafc8061d..1f31ecd8657 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -42,7 +42,7 @@ def test_issue_access_token_with_id(self, communication_resource_info): self.kwargs.update({'id': id}) val = self.cmd( - 'az communication identity issue-access-token --scope chat --userid {id}').get_output_in_json() + 'az communication identity issue-access-token --scope chat --user-id {id}').get_output_in_json() self.assertIsNotNone(val['token']) @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -61,4 +61,4 @@ def test_revoke_access_tokens(self, communication_resource_info): os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) self.kwargs.update({'id': id}) - self.cmd('az communication identity revoke-access-tokens --userid {id}') + self.cmd('az communication identity revoke-access-tokens --user-id {id}') 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 796375eff44..9968bda5b09 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-08-04 09:06:14.411449|2022-08-04 09:06:14.824003| -|step_show|successed||||2022-08-04 09:06:14.825003|2022-08-04 09:06:14.877002| -|step_list|successed||||2022-08-04 09:06:14.877002|2022-08-04 09:06:14.928721| -|step_update|successed||||2022-08-04 09:06:14.928721|2022-08-04 09:06:14.984706| -|step_link_notification_hub|successed||||2022-08-04 09:06:14.984706|2022-08-04 09:06:15.051028| -|step_list_key|successed||||2022-08-04 09:06:15.051028|2022-08-04 09:06:15.102014| -|step_regenerate_key|successed||||2022-08-04 09:06:15.103015|2022-08-04 09:06:15.157015| -|step_delete|successed||||2022-08-04 09:06:15.157015|2022-08-04 09:06:15.393472| +|step_create|successed||||2022-08-04 18:21:34.958908|2022-08-04 18:21:35.392637| +|step_show|successed||||2022-08-04 18:21:35.392637|2022-08-04 18:21:35.455088| +|step_list|successed||||2022-08-04 18:21:35.455319|2022-08-04 18:21:35.515017| +|step_update|successed||||2022-08-04 18:21:35.515017|2022-08-04 18:21:35.576433| +|step_link_notification_hub|successed||||2022-08-04 18:21:35.576433|2022-08-04 18:21:35.648768| +|step_list_key|successed||||2022-08-04 18:21:35.649694|2022-08-04 18:21:35.714807| +|step_regenerate_key|successed||||2022-08-04 18:21:35.714807|2022-08-04 18:21:35.798157| +|step_delete|successed||||2022-08-04 18:21:35.798157|2022-08-04 18:21:36.197350| Coverage: 8/8 From 9e9249cfd80565410ded76d5b48727b0919c04a2 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 11:39:00 -0700 Subject: [PATCH 10/26] [Communication] minor refactor. --- .../azext_communication/manual/commands.py | 4 ++-- .../azext_communication/manual/custom.py | 4 ++-- .../test_communication_scenario_coverage.md | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index f2fa50eb6d3..06b8faf7f10 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -14,8 +14,8 @@ def load_command_table(self, _): identity_arguments = ['connection_string'] with self.command_group('communication identity', client_factory=cf_communication_identity, is_preview=True) as g: - g.communication_custom_command('issue-access-token', "communication_issue_access_token", identity_arguments, client_factory=cf_communication_identity) - g.communication_custom_command('revoke-access-tokens', "communication_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('issue-access-token', "communication_identity_issue_access_token", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('revoke-access-tokens', "communication_identity_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) sms_arguments = ['connection_string'] with self.command_group('communication sms', client_factory=cf_communication_sms, is_preview=True) as g: diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index 14ac758509f..e13192d3ddd 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- -def communication_issue_access_token(client, scopes, user_id=None): +def communication_identity_issue_access_token(client, scopes, user_id=None): from azure.communication.identity import CommunicationUserIdentifier user_token_data = {"user_id": user_id, "token": "", "expires_on": ""} if user_id is not None: @@ -22,7 +22,7 @@ def communication_issue_access_token(client, scopes, user_id=None): return user_token_data -def communication_revoke_access_tokens(client, user_id): +def communication_identity_revoke_access_tokens(client, user_id): from azure.communication.identity import CommunicationUserIdentifier return client.revoke_tokens(CommunicationUserIdentifier(user_id)) 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 9968bda5b09..9bbf40ce6fe 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-08-04 18:21:34.958908|2022-08-04 18:21:35.392637| -|step_show|successed||||2022-08-04 18:21:35.392637|2022-08-04 18:21:35.455088| -|step_list|successed||||2022-08-04 18:21:35.455319|2022-08-04 18:21:35.515017| -|step_update|successed||||2022-08-04 18:21:35.515017|2022-08-04 18:21:35.576433| -|step_link_notification_hub|successed||||2022-08-04 18:21:35.576433|2022-08-04 18:21:35.648768| -|step_list_key|successed||||2022-08-04 18:21:35.649694|2022-08-04 18:21:35.714807| -|step_regenerate_key|successed||||2022-08-04 18:21:35.714807|2022-08-04 18:21:35.798157| -|step_delete|successed||||2022-08-04 18:21:35.798157|2022-08-04 18:21:36.197350| +|step_create|successed||||2022-08-04 18:33:07.805890|2022-08-04 18:33:08.333118| +|step_show|successed||||2022-08-04 18:33:08.333118|2022-08-04 18:33:08.387183| +|step_list|successed||||2022-08-04 18:33:08.387183|2022-08-04 18:33:08.441120| +|step_update|successed||||2022-08-04 18:33:08.441120|2022-08-04 18:33:08.501081| +|step_link_notification_hub|successed||||2022-08-04 18:33:08.501081|2022-08-04 18:33:08.554215| +|step_list_key|successed||||2022-08-04 18:33:08.554215|2022-08-04 18:33:08.609506| +|step_regenerate_key|successed||||2022-08-04 18:33:08.609506|2022-08-04 18:33:08.657341| +|step_delete|successed||||2022-08-04 18:33:08.658240|2022-08-04 18:33:09.004340| Coverage: 8/8 From 25553215ae0c128650674137a66d7f37284c130c Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Thu, 4 Aug 2022 14:01:18 -0700 Subject: [PATCH 11/26] [Communication] update test_communication_scenario --- .../tests/latest/example_steps.py | 2 +- .../test_communication_scenario.yaml | 169 +++++++++++------- .../latest/test_communication_scenario.py | 7 +- .../test_communication_scenario_coverage.md | 19 +- 4 files changed, 119 insertions(+), 78 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/example_steps.py b/src/communication/azext_communication/tests/latest/example_steps.py index 7e46a91d362..747d75742a5 100644 --- a/src/communication/azext_communication/tests/latest/example_steps.py +++ b/src/communication/azext_communication/tests/latest/example_steps.py @@ -55,7 +55,7 @@ def step_list2(test, rg_2, rg, checks=None): if checks is None: checks = [] test.cmd('az communication list ' - '-g ""', + '-g "{rg}"', checks=checks) 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 906228ec25d..c1a7f427059 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 @@ -22,11 +22,11 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"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/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -34,13 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:52:05 GMT + - Thu, 04 Aug 2022 20:56:33 GMT etag: - - '"05000b86-0000-0700-0000-62eb88b50000"' + - '"070077c2-0000-0700-0000-62ec32820000"' expires: - '-1' - mise-correlation-id: - - b484ea82-a8fb-487f-8ac4-b8e1b1bf8063 pragma: - no-cache request-context: @@ -72,10 +70,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T08:52:05.4886054Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T20:56:33.9751261Z"}' headers: cache-control: - no-cache @@ -84,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:52:35 GMT + - Thu, 04 Aug 2022 20:57:04 GMT etag: - - '"0c000742-0000-0800-0000-62eb88b50000"' + - '"0d0079c6-0000-0800-0000-62ec32810000"' expires: - '-1' pragma: @@ -118,10 +116,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T08:52:05.4886054Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T20:56:33.9751261Z"}' headers: cache-control: - no-cache @@ -130,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:05 GMT + - Thu, 04 Aug 2022 20:57:33 GMT etag: - - '"0c000742-0000-0800-0000-62eb88b50000"' + - '"0d0079c6-0000-0800-0000-62ec32810000"' expires: - '-1' pragma: @@ -164,10 +162,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"19e6c902-be99-45d8-ac0d-ff6b4b914477*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:52:05.4886054Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:56:33.9751261Z","properties":null}' headers: cache-control: - no-cache @@ -176,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:35 GMT + - Thu, 04 Aug 2022 20:58:03 GMT etag: - - '"2d00c720-0000-0100-0000-62eb88f70000"' + - '"ba002f17-0000-0700-0000-62ec32c30000"' expires: - '-1' pragma: @@ -213,7 +211,7 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United States"}}' headers: cache-control: @@ -223,9 +221,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:35 GMT + - Thu, 04 Aug 2022 20:58:04 GMT etag: - - '"05003386-0000-0700-0000-62eb88bc0000"' + - '"07008bc2-0000-0700-0000-62ec32880000"' expires: - '-1' pragma: @@ -262,7 +260,7 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United States"}}' headers: cache-control: @@ -272,9 +270,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:36 GMT + - Thu, 04 Aug 2022 20:58:05 GMT etag: - - '"05003386-0000-0700-0000-62eb88bc0000"' + - '"07008bc2-0000-0700-0000-62ec32880000"' expires: - '-1' pragma: @@ -311,7 +309,7 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United States"}}' headers: cache-control: @@ -321,9 +319,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:37 GMT + - Thu, 04 Aug 2022 20:58:06 GMT etag: - - '"05003386-0000-0700-0000-62eb88bc0000"' + - '"07008bc2-0000-0700-0000-62ec32880000"' expires: - '-1' pragma: @@ -360,7 +358,7 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:52:05.1809675Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United States"}}]}' headers: cache-control: @@ -370,7 +368,54 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:37 GMT + - Thu, 04 Aug 2022 20:58:06 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.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United + States"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '713' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 04 Aug 2022 20:58:07 GMT expires: - '-1' pragma: @@ -411,7 +456,7 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-04T08:52:05.1809675Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T08:53:38.6384423Z"},"properties":{"hostName":"mycommunicackwcegrczt7k.communication.azure.com","immutableResourceId":"0b51d2d4-bf55-4de5-8aed-147c19b439bf","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:58:07.7603778Z"},"properties":{"hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: @@ -421,13 +466,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:39 GMT + - Thu, 04 Aug 2022 20:58:08 GMT etag: - - '"05001687-0000-0700-0000-62eb89130000"' + - '"0700d5c3-0000-0700-0000-62ec32e00000"' expires: - '-1' - mise-correlation-id: - - e4f73253-67f1-480b-950c-32af3119b51e pragma: - no-cache request-context: @@ -443,7 +486,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -480,11 +523,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:41 GMT + - Thu, 04 Aug 2022 20:58:08 GMT expires: - '-1' - mise-correlation-id: - - 9909e7b4-d50e-4df9-832a-b95d7d7b77bc pragma: - no-cache request-context: @@ -525,7 +566,7 @@ interactions: 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":"l8ODwsI5ni9CgI52XptVFWJRO3rfghrTfc19V4k3fhPtwV7luB+/cpfuS8V99wWyKJejgNcHPQJA5ErhmrHcOQ==","secondaryKey":"CviLM828dKr78PBP2kIhrf1P0wWd1tmPoFTlGut/ysZl+2SGzu/IwNBbprFYBMbcuUwX8qXxKSMW438J3GsJsQ==","primaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=l8ODwsI5ni9CgI52XptVFWJRO3rfghrTfc19V4k3fhPtwV7luB+/cpfuS8V99wWyKJejgNcHPQJA5ErhmrHcOQ==","secondaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=CviLM828dKr78PBP2kIhrf1P0wWd1tmPoFTlGut/ysZl+2SGzu/IwNBbprFYBMbcuUwX8qXxKSMW438J3GsJsQ=="}' + string: '{"primaryKey":"+oKlKsSZl+VyT+js4eKtyfgBRlZKZ9gdU4Kj4xw/v1xrB1D1tUqHA+i5U9LvM/hb1QzOtj/Y5oKgJFjl8RHotA==","secondaryKey":"XKcigix5XQuOmGF/G+ve1r1mdG8h2RwttKxLNEwgVvyuT5C4PKr5iIKM7YXVM5gfaf+kL+0CZTogFZbGEAND9A==","primaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=+oKlKsSZl+VyT+js4eKtyfgBRlZKZ9gdU4Kj4xw/v1xrB1D1tUqHA+i5U9LvM/hb1QzOtj/Y5oKgJFjl8RHotA==","secondaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=XKcigix5XQuOmGF/G+ve1r1mdG8h2RwttKxLNEwgVvyuT5C4PKr5iIKM7YXVM5gfaf+kL+0CZTogFZbGEAND9A=="}' headers: cache-control: - no-cache @@ -534,11 +575,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:42 GMT + - Thu, 04 Aug 2022 20:58:09 GMT expires: - '-1' - mise-correlation-id: - - e78eca0e-2a57-4ce1-8689-acadc3ee0b2b pragma: - no-cache request-context: @@ -581,7 +620,7 @@ interactions: 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":"SjvMpWMxZD9RlV9Msr/oAieSkk3avHzlkOZj+RjMHU80cev1YBhRwxs/sxnV7diV+4xT4URUoXP/F4uMAVnkGQ==","primaryConnectionString":"endpoint=https://mycommunicackwcegrczt7k.communication.azure.com/;accesskey=SjvMpWMxZD9RlV9Msr/oAieSkk3avHzlkOZj+RjMHU80cev1YBhRwxs/sxnV7diV+4xT4URUoXP/F4uMAVnkGQ=="}' + string: '{"primaryKey":"R1ErAZPr5YG0TTy/eklAf2PBnQhipCR0gFOn2OxljSAeeGc1tc7Afvd2XlXVId+pCcenMldvXn2jO6S5brOAig==","primaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=R1ErAZPr5YG0TTy/eklAf2PBnQhipCR0gFOn2OxljSAeeGc1tc7Afvd2XlXVId+pCcenMldvXn2jO6S5brOAig=="}' headers: cache-control: - no-cache @@ -590,11 +629,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:42 GMT + - Thu, 04 Aug 2022 20:58:10 GMT expires: - '-1' - mise-correlation-id: - - 40b9247a-ba95-4394-aacd-59cea1961d77 pragma: - no-cache request-context: @@ -638,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -646,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:43 GMT + - Thu, 04 Aug 2022 20:58:15 GMT etag: - - '"05001e87-0000-0700-0000-62eb89180000"' + - '"0700eac3-0000-0700-0000-62ec32e70000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -682,10 +719,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T08:53:43.9612888Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T20:58:15.1194218Z"}' headers: cache-control: - no-cache @@ -694,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:13 GMT + - Thu, 04 Aug 2022 20:58:45 GMT etag: - - '"0c005f42-0000-0800-0000-62eb89170000"' + - '"0d005fc7-0000-0800-0000-62ec32e70000"' expires: - '-1' pragma: @@ -724,10 +761,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T08:53:43.9612888Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T20:58:15.1194218Z"}' headers: cache-control: - no-cache @@ -736,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:44 GMT + - Thu, 04 Aug 2022 20:59:15 GMT etag: - - '"0c005f42-0000-0800-0000-62eb89170000"' + - '"0d005fc7-0000-0800-0000-62ec32e70000"' expires: - '-1' pragma: @@ -766,10 +803,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:53:43.9612888Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:58:15.1194218Z","properties":null}' headers: cache-control: - no-cache @@ -778,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:55:14 GMT + - Thu, 04 Aug 2022 20:59:45 GMT etag: - - '"0c007742-0000-0800-0000-62eb895b0000"' + - '"0d0087c8-0000-0800-0000-62ec332a0000"' expires: - '-1' pragma: @@ -812,10 +849,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","name":"e889599a-7ade-43e0-b0f9-56c60c440d17*B893F4C343976310AA9B6CAC7C07755B9D7B2BBFF7CADE81AA686AEEF9177063","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T08:53:43.9612888Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:58:15.1194218Z","properties":null}' headers: cache-control: - no-cache @@ -824,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:55:14 GMT + - Thu, 04 Aug 2022 20:59:45 GMT etag: - - '"0c007742-0000-0800-0000-62eb895b0000"' + - '"0d0087c8-0000-0800-0000-62ec332a0000"' expires: - '-1' pragma: 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 e96a3f1835a..bd405c8b012 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -21,13 +21,13 @@ from .example_steps import step_list_key from .example_steps import step_regenerate_key from .example_steps import step_delete +from .recording_processors import BodyReplacerProcessor from .. import ( try_manual, raise_if, calc_coverage ) - TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) @@ -60,6 +60,9 @@ 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), @@ -78,7 +81,7 @@ def call_scenario(test, rg_2, rg): class CommunicationScenarioTest(ScenarioTest): def __init__(self, *args, **kwargs): - super(CommunicationScenarioTest, self).__init__(*args, **kwargs) + super(CommunicationScenarioTest, self).__init__(recording_processors=[], *args, **kwargs) self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) 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 9bbf40ce6fe..8c8b0fa682f 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,11 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2022-08-04 18:33:07.805890|2022-08-04 18:33:08.333118| -|step_show|successed||||2022-08-04 18:33:08.333118|2022-08-04 18:33:08.387183| -|step_list|successed||||2022-08-04 18:33:08.387183|2022-08-04 18:33:08.441120| -|step_update|successed||||2022-08-04 18:33:08.441120|2022-08-04 18:33:08.501081| -|step_link_notification_hub|successed||||2022-08-04 18:33:08.501081|2022-08-04 18:33:08.554215| -|step_list_key|successed||||2022-08-04 18:33:08.554215|2022-08-04 18:33:08.609506| -|step_regenerate_key|successed||||2022-08-04 18:33:08.609506|2022-08-04 18:33:08.657341| -|step_delete|successed||||2022-08-04 18:33:08.658240|2022-08-04 18:33:09.004340| -Coverage: 8/8 +|step_create|successed||||2022-08-04 20:56:31.307324|2022-08-04 20:58:04.809543| +|step_show|successed||||2022-08-04 20:58:04.809543|2022-08-04 20:58:05.261707| +|step_list|successed||||2022-08-04 20:58:05.261707|2022-08-04 20:58:05.718899| +|step_list2|successed||||2022-08-04 20:58:05.719911|2022-08-04 20:58:06.098533| +|step_update|successed||||2022-08-04 20:58:06.098533|2022-08-04 20:58:07.903817| +|step_link_notification_hub|successed||||2022-08-04 20:58:07.904819|2022-08-04 20:58:08.718079| +|step_list_key|successed||||2022-08-04 20:58:08.719013|2022-08-04 20:58:09.286399| +|step_regenerate_key|successed||||2022-08-04 20:58:09.287384|2022-08-04 20:58:10.174517| +|step_delete|successed||||2022-08-04 20:58:10.175517|2022-08-04 20:59:44.855693| +Coverage: 9/9 From cc821605062080b0d21e6a4a6795cac9c64909a8 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Fri, 5 Aug 2022 10:24:23 -0700 Subject: [PATCH 12/26] [Communication] add the rest of communication identity commands - create-user - delete-user - get-token-for-teams-user --- .../azext_communication/manual/_params.py | 16 ++++++++++++++-- .../azext_communication/manual/commands.py | 3 +++ .../azext_communication/manual/custom.py | 14 ++++++++++++++ .../test_communication_identity_scenario.py | 4 +++- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index 7ee951954c7..b0155d09dd6 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -15,14 +15,26 @@ def load_arguments(self, _): def _load_identity_arguments(self): + self.argument_context('communication identity create-user') + + with self.argument_context('communication identity delete-user') as c: + c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') + with self.argument_context('communication identity issue-access-token') as c: - c.argument('user_id', options_list=['--user-id', '-u'], - type=str, help='ACS identifier') + c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') c.argument('scopes', options_list=['--scope', '-s'], nargs='+', help='list of scopes for an access token ex: chat/voip') + with self.argument_context('communication identity revoke-access-tokens') as c: c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') + with self.argument_context('communication identity get-token-for-teams-user') as c: + c.argument('aad_token', options_list=['--aad-token'], type=str, help='Azure AD access token of a Teams User') + c.argument('client_id', options_list=['--client-id'], type=str, help='Client ID of an Azure AD application' + 'to be verified against the appId claim in the Azure AD access token') + c.argument('user_object_id', options_list=['--user-object-id'], type=str, help='Object ID of an Azure AD user' + '(Teams User) to be verified against the OID claim in the Azure AD access token') + def _load_sms_arguments(self): with self.argument_context('communication sms send-sms') as c: diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index 06b8faf7f10..32c0386a8e9 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -14,8 +14,11 @@ def load_command_table(self, _): identity_arguments = ['connection_string'] with self.command_group('communication identity', client_factory=cf_communication_identity, is_preview=True) as g: + g.communication_custom_command('create-user', "communication_identity_create_user", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('delete-user', "communication_identity_delete_user", identity_arguments, client_factory=cf_communication_identity) g.communication_custom_command('issue-access-token', "communication_identity_issue_access_token", identity_arguments, client_factory=cf_communication_identity) g.communication_custom_command('revoke-access-tokens', "communication_identity_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('get-token-for-teams-user', "communication_identity_get_token_for_teams_user", identity_arguments, client_factory=cf_communication_identity) sms_arguments = ['connection_string'] with self.command_group('communication sms', client_factory=cf_communication_sms, is_preview=True) as g: diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index e13192d3ddd..e3dc1fc18ef 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -4,6 +4,16 @@ # -------------------------------------------------------------------------------------------- +def communication_identity_create_user(client): + return client.create_user() + + +def communication_identity_delete_user(client, user_id): + from azure.communication.identity import CommunicationUserIdentifier + + return client.delete_user(CommunicationUserIdentifier(user_id)) + + def communication_identity_issue_access_token(client, scopes, user_id=None): from azure.communication.identity import CommunicationUserIdentifier user_token_data = {"user_id": user_id, "token": "", "expires_on": ""} @@ -27,6 +37,10 @@ def communication_identity_revoke_access_tokens(client, user_id): return client.revoke_tokens(CommunicationUserIdentifier(user_id)) +def communication_identity_get_token_for_teams_user(client, aad_token, client_id, user_object_id): + return client.get_token_for_teams_user(aad_token, client_id, user_object_id) + + def communication_send_sms(client, sender, recipients, message): return client.send(from_=sender, to=recipients, message=message) diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index 1f31ecd8657..1f65e55876c 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -23,6 +23,7 @@ def __init__(self, method_name): BodyReplacerProcessor(keys=["id", "token"]) ]) + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_issue_access_token(self, communication_resource_info): @@ -45,16 +46,17 @@ def test_issue_access_token_with_id(self, communication_resource_info): 'az communication identity issue-access-token --scope chat --user-id {id}').get_output_in_json() self.assertIsNotNone(val['token']) + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_issue_access_token_with_multiple_scopes(self, communication_resource_info): - os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] val = self.cmd( 'az communication identity issue-access-token --scope voip chat').get_output_in_json() self.assertIsNotNone(val['token']) + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_revoke_access_tokens(self, communication_resource_info): From b16f2f19558d2cc42d240526f8345665b096b3d8 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Fri, 5 Aug 2022 11:09:48 -0700 Subject: [PATCH 13/26] [Communication] add test_communication_scenario.yaml back to CredScanSuppressions --- scripts/ci/credscan/CredScanSuppressions.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ci/credscan/CredScanSuppressions.json b/scripts/ci/credscan/CredScanSuppressions.json index 4af96a8c125..6984b7b9d86 100644 --- a/scripts/ci/credscan/CredScanSuppressions.json +++ b/scripts/ci/credscan/CredScanSuppressions.json @@ -80,6 +80,12 @@ ], "_justification": "Dummy secrets for one-off resources" }, + { + "file": [ + "src\\communication\\azext_communication\\tests\\latest\\recordings\\test_communication_scenario.yaml" + ], + "_justification": "Dummy resources' tokens left during testing Micorosfot.Communication" + }, { "file": [ "src\\application-insights\\azext_applicationinsights\\tests\\latest\\recordings\\test_api_key.yaml" From 0b97f9be1631f801e49a3ba0f0b598b7375fb486 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Fri, 5 Aug 2022 11:59:26 -0700 Subject: [PATCH 14/26] [Communication] re-record live tests with python 3.7 --- .../recordings/test_chat_add_participant.yaml | 46 +-- .../test_chat_add_participant_bad_user.yaml | 36 +- ...hat_add_participant_with_display_name.yaml | 48 +-- ...hat_add_participant_with_history_time.yaml | 50 +-- .../recordings/test_chat_create_thread.yaml | 66 +--- .../recordings/test_chat_delete_message.yaml | 42 +-- .../recordings/test_chat_get_message.yaml | 42 +-- .../recordings/test_chat_list_messages.yaml | 48 +-- .../test_chat_list_participants.yaml | 30 +- ..._chat_list_participants_bad_thread_id.yaml | 10 +- ...t_chat_list_threads_with_cmdline_auth.yaml | 10 +- .../test_chat_list_threads_with_env_auth.yaml | 10 +- .../recordings/test_chat_read_receipts.yaml | 86 ++--- .../test_chat_remove_participants.yaml | 86 ++--- .../test_chat_send_html_message.yaml | 28 +- .../recordings/test_chat_send_message.yaml | 28 +- ...est_chat_send_message_without_content.yaml | 16 +- .../test_chat_send_text_message.yaml | 28 +- .../recordings/test_chat_update_message.yaml | 38 +-- .../recordings/test_chat_update_topic.yaml | 26 +- .../test_communication_scenario.yaml | 152 ++++----- .../recordings/test_issue_access_token.yaml | 18 +- .../test_issue_access_token_with_id.yaml | 34 +- ...sue_access_token_with_multiple_scopes.yaml | 18 +- .../recordings/test_list_phonenumbers.yaml | 110 +++--- .../recordings/test_revoke_access_tokens.yaml | 34 +- .../latest/recordings/test_send_sms.yaml | 112 +++--- .../test_send_sms_n_recipients.yaml | 320 +++++++++--------- .../recordings/test_show_phonenumbers.yaml | 110 +++--- .../test_communication_scenario_coverage.md | 18 +- 30 files changed, 824 insertions(+), 876 deletions(-) diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml index 60904f8d307..c05529e2d67 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -12,20 +12,20 @@ interactions: - '35' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:42:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Fri, 05 Aug 2022 18:38:59 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:42:14.2377872+00:00"}}' + "expiresOn": "2022-08-06T18:39:00.5934099+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:14 GMT + - Fri, 05 Aug 2022 18:39:00 GMT ms-cv: - - +hDlB7/SmU+wcQ0TA0T/uw.0 + - ITUh2ZWw9UioGfIPI8K3aA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084214Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000000tgx0 + - 20220805T183900Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002rg00000002zrvn x-cache: - CONFIG_NOCACHE x-processing-time: - - 101ms + - 98ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 0e8c1aa8-0d43-4a04-9b2d-b55a3521f74e + - 34095724-1711-4158-b69a-187ceb5e494f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:39:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,27 +85,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:02 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ApDPgF_bb5hEYQZLOCHxcJWOs3FrVfFVkCD7dhS5VBw41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A2RUB27Km1q3PoyQ5jfsTpsWLXcgSHgD3TrRQa-P8_Pw1@thread.v2 ms-cv: - - 2Wqu6KqQHk6wDF/OEWSjdA.0 + - BdNHmTPL+0uZthOZVtY+pQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084214Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001qg000000032pgf + - 20220805T183901Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002s000000000vkh0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 722ms + - 798ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e6-a358-3ef0-8b3a0d00aa29"}}}]}' + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-5bec-7f07-113a0d00a4a7"}}}]}' headers: Accept: - application/json @@ -118,7 +118,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -132,19 +132,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:16 GMT + - Fri, 05 Aug 2022 18:39:10 GMT ms-cv: - - /YwN5igENkqFEwCCs9z2uQ.0 + - LmFrko3DcUaCVns5AsJEnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084215Z-tur6dybg817yr054hm9efewep800000000yg000000048vm9 + - 20220805T183902Z-nntkv2q0nd3zt4kemgcvznhu2400000002w000000000gqkz x-cache: - CONFIG_NOCACHE x-processing-time: - - 385ms + - 236ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml index b818deb4068..bbc7f86ec00 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 6c971083-48f6-4309-a05d-86b83cf70399 + - d272db42-7d4c-43f8-bd4d-337ec11e6b94 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:39:00Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:01 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AiBrufV8xpQ7y_nn4TGXIsWmcg4pIZfDEJ7uyykzb5nY1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AtN9pzmjbOY64J43Xz5GOA83YUIBu9aVcXTNk4Xpth5E1@thread.v2 ms-cv: - - z6t/94YNF0anhKCiRlvODA.0 + - FMqdF251EE26pFYFl7Qfow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084214Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002apwp + - 20220805T183900Z-kpegq6a2qh4nr419q7tfax5sn400000002u00000000024uw x-cache: - CONFIG_NOCACHE x-processing-time: - - 695ms + - 552ms status: code: 201 message: Created @@ -64,7 +64,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -79,19 +79,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:02 GMT ms-cv: - - W8s9PoeMREe7RU1M/COLjg.0 + - 3f34arucKkS0eMj+obst1A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084215Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002aq55 + - 20220805T183901Z-q1z3stmybd47948vv0qhv9299w00000002ug0000000014uk x-cache: - CONFIG_NOCACHE x-processing-time: - - 96ms + - 120ms status: code: 201 message: Created @@ -110,7 +110,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -125,19 +125,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:02 GMT ms-cv: - - 98BnJcWPqk+5unosDiX3NQ.0 + - D3Az1cuX4UmiAvvFcORfzQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084215Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001t0000000003w95 + - 20220805T183902Z-q1z3stmybd47948vv0qhv9299w00000002vg00000000078d x-cache: - CONFIG_NOCACHE x-processing-time: - - 25ms + - 10ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml index 4fba68c8caa..6e76826f72d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - fb0a2f92-28a0-4867-93d9-4cb87d145d93 + - da70a822-1657-491b-b587-b88a57b81d48 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T08:42:14Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:39:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:01 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AGrU6fQTZO2Xpp5_DZXfaf_bMkm5qh6WOwIE4b9W9S-k1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASVwwSALW7hVl3JFVNoCDV6tmWF6WrJ_bawAWheHfeII1@thread.v2 ms-cv: - - MVr2/SDSskKMhDwbwzl32g.0 + - B8ZlGuNj6ki3PbvtpcB3LA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084214Z-afb852g2vh6591nsqudzty20xs00000001rg00000001pu0t + - 20220805T183901Z-1ykan7zabt1sxfcs379b67eye800000000ug00000000r87h x-cache: - CONFIG_NOCACHE x-processing-time: - - 459ms + - 577ms status: code: 201 message: Created @@ -62,20 +62,20 @@ interactions: - '35' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:42:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Fri, 05 Aug 2022 18:39:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:42:15.47518+00:00"}}' + "expiresOn": "2022-08-06T18:39:02.1844182+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -83,29 +83,29 @@ interactions: connection: - keep-alive content-length: - - '120' + - '122' content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:15 GMT + - Fri, 05 Aug 2022 18:39:02 GMT ms-cv: - - TZI9mil+bk6w1HyjtXPEJA.0 + - N1wXM2ZTfUqSFslSNVU5jg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084215Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000000gsa + - 20220805T183902Z-1ykan7zabt1sxfcs379b67eye800000000u000000000wt40 x-cache: - CONFIG_NOCACHE x-processing-time: - - 99ms + - 108ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e6-a82e-69f0-553a0d00ca8d"}}, + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-6220-290c-113a0d00992b"}}, "displayName": "John Doe"}]}' headers: Accept: @@ -119,7 +119,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -133,19 +133,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:16 GMT + - Fri, 05 Aug 2022 18:39:03 GMT ms-cv: - - 6j8Hj84RhUWcMm1dsgOIjw.0 + - SWiFD1WUPUi3OlT1dLZmUw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084215Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001qg000000032ptc + - 20220805T183902Z-tur6dybg817yr054hm9efewep8000000023000000001cb0y x-cache: - CONFIG_NOCACHE x-processing-time: - - 222ms + - 308ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml index df1a43bd9f1..71e11e1471e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -13,37 +13,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 8799b057-5819-4ac0-b504-0397cd91c033 + - 87e8466e-ff1b-408a-8698-5d8ddc3e2ad8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T08:42:38Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:39:00Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:38 GMT + - Fri, 05 Aug 2022 18:39:01 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3At9V-OnaIYDuOoemILvy5NKY98n9y7-KyXJw4KY_2BeA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A3UlIjwqqLUWp0TSF4taGLROVMyWgxneieSPZ3ztFjGY1@thread.v2 ms-cv: - - mBiGbDqeXEKzZcdYHePEJw.0 + - OhKmaVpi5EWUE7RbBlpqew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0fYbrYgAAAACZIZqqkSNrQJchTdkTpuLFWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220805T183900Z-4wf38k6bv57vh8d4wkrqw24dx000000000ug00000001uqrt x-cache: - CONFIG_NOCACHE x-processing-time: - - 410ms + - 623ms status: code: 201 message: Created @@ -60,48 +62,50 @@ interactions: - '35' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:42:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Fri, 05 Aug 2022 18:39:00 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:42:39.1123199+00:00"}}' + "expiresOn": "2022-08-06T18:39:01.7519765+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: - - Thu, 04 Aug 2022 08:42:38 GMT + - Fri, 05 Aug 2022 18:39:01 GMT ms-cv: - - TqShjAPCGkGOutYWQLJmXw.0 + - lBXPStDFek2GQv6lViXaQg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0fobrYgAAAACGvVOOD8FVS4RZX72gVtzUWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220805T183901Z-nntkv2q0nd3zt4kemgcvznhu2400000002u000000002cza6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 49ms + - 98ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e7-0482-4ff7-343a0d00c48d"}}, + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-6073-69ff-9c3a0d009dce"}}, "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' headers: Accept: @@ -115,7 +119,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -129,19 +133,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:42:39 GMT + - Fri, 05 Aug 2022 18:39:02 GMT ms-cv: - - kDj3qZOuKUq0SjTBKGy2DQ.0 + - WFBPRN32p0G+CnmTZEmScg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084239Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000000p62 + - 20220805T183902Z-4wf38k6bv57vh8d4wkrqw24dx000000000ug00000001ur8s x-cache: - CONFIG_NOCACHE x-processing-time: - - 250ms + - 309ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index f71ebc7d089..88f7f737e3f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -13,85 +13,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - f1ee76c8-cf1f-4683-9925-a1f1799bfbf8 - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 - response: - body: - string: 'Service unavailable

Our services aren''t available right now

We''re - working to restore all services as soon as possible. Please check back soon.

0x4brYgAAAAAJcbKum1TKRb+15EATEK3sWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==
' - headers: - cache-control: - - no-store - content-length: - - '1002' - content-type: - - text/html - date: - - Thu, 04 Aug 2022 08:43:50 GMT - x-azure-externalerror: - - 0x80072ee7,DNSNameNotResolved - x-azure-ref: - - 0x4brYgAAAAAJcbKum1TKRb+15EATEK3sWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== - status: - code: 503 - message: Service Unavailable -- request: - body: '{"topic": "some-topic", "participants": []}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) - repeatability-request-id: - - f1ee76c8-cf1f-4683-9925-a1f1799bfbf8 + - dedbd9ae-26a0-42be-b0ce-93399d33e432 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-04T08:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:40:45Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:43:51 GMT + - Fri, 05 Aug 2022 18:40:46 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AIWcw4rEAfulhmUBnj5FmcFtp6BvZE534aoollbHQD4s1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AuF952eWjCy5sy9IZZJ77h7kU4i2X-isoMt0a95F7aZQ1@thread.v2 ms-cv: - - FBapVFI5+Em1fmT90+/tvg.0 + - o5YfYdNPzkqM64Myz34gDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0x4brYgAAAABglCy30zDcSoKdBeeDqNDRWVZSMzExMDAwMTE2MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220805T184045Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001v3hb x-cache: - CONFIG_NOCACHE x-processing-time: - - 636ms + - 514ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 71858d2a591..5779b7b9562 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -13,37 +13,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 91745817-8ace-42e3-91df-6b629bb0cee1 + - a1983494-8278-4256-9c93-33cc39cd3a40 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-04T08:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:40:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:43:52 GMT + - Fri, 05 Aug 2022 18:40:39 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ALEAl5oluNYE1dqDK0py_jLxpfdgy_XeqTMpNax76-hw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ABzbt8B_F4_7qqC2TzYEvyicyr4ON3VW5AN0tikwo9m01@thread.v2 ms-cv: - - b1O7CY6Pe0ex6EVBVKohCw.0 + - YhGVm/2b902NLIMwokwbiw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0x4brYgAAAACMoW69jAieSYoDhUmrcAwBWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220805T184039Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002sg000000008mwt x-cache: - CONFIG_NOCACHE x-processing-time: - - 537ms + - 458ms status: code: 201 message: Created @@ -61,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -70,24 +72,26 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:43:53 GMT + - Fri, 05 Aug 2022 18:40:40 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ALEAl5oluNYE1dqDK0py_jLxpfdgy_XeqTMpNax76-hw1@thread.v2/messages/1659602633243 + - https://clitest000002.communication.azure.com/chat/threads/19%3ABzbt8B_F4_7qqC2TzYEvyicyr4ON3VW5AN0tikwo9m01@thread.v2/messages/1659724840355 ms-cv: - - TMd8I7IYV0edUB/Zr+/reg.0 + - xU0NvozrKkKAX1p7waO0wQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0yIbrYgAAAACE1cAHWgcQTqem6RArjBqwWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220805T184040Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002rg00000001xebf x-cache: - CONFIG_NOCACHE x-processing-time: - - 151ms + - 223ms status: code: 201 message: Created @@ -105,7 +109,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: @@ -117,17 +121,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 08:43:54 GMT + - Fri, 05 Aug 2022 18:40:41 GMT ms-cv: - - tyiJwZ7IrEy24I/QPsKpxA.0 + - yCNhAMzyBECVMg4uV+qcpA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084353Z-qtfd0d2efh3zh2gzxzkdhtv16800000001q000000002dnvd + - 20220805T184040Z-q1z3stmybd47948vv0qhv9299w00000002w000000000052n x-cache: - CONFIG_NOCACHE x-processing-time: - - 321ms + - 317ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index c2d4407233f..8deb17020e2 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 9ed5c128-cec1-4b55-91c0-d659e35ae6b3 + - d28fd1db-826e-43c6-95a9-29a66c613fac method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-04T08:44:17Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:40:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:44:17 GMT + - Fri, 05 Aug 2022 18:40:39 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ArHkA0YJ12Mszq3Y79DO7Tyo367RA6AUB3N6J4-OM_481@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ApcQHLwV4v1Zrb4LIrprhcUA2N3kCDJ_Qx7k9QBhwAlM1@thread.v2 ms-cv: - - NRtbxxKNRk+4/vs4KaITdg.0 + - RvgcA2MbZ0u3YyWXXc8uCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084417Z-tur6dybg817yr054hm9efewep800000000zg00000001u7m8 + - 20220805T184039Z-qtfd0d2efh3zh2gzxzkdhtv16800000002v0000000001vde x-cache: - CONFIG_NOCACHE x-processing-time: - - 690ms + - 481ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:44:18 GMT + - Fri, 05 Aug 2022 18:40:40 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ArHkA0YJ12Mszq3Y79DO7Tyo367RA6AUB3N6J4-OM_481@thread.v2/messages/1659602658125 + - https://clitest000002.communication.azure.com/chat/threads/19%3ApcQHLwV4v1Zrb4LIrprhcUA2N3kCDJ_Qx7k9QBhwAlM1@thread.v2/messages/1659724840475 ms-cv: - - lPI4tPUbd0aKWArI1qj5kA.0 + - g67bCyN1FEuTQ0Vk0tf70Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084418Z-k97maztpax51x2ee2r7vqbw7wg00000001s000000000w1as + - 20220805T184040Z-nntkv2q0nd3zt4kemgcvznhu2400000002vg000000011zx6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 181ms + - 132ms status: code: 201 message: Created @@ -105,13 +105,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659602658125", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-04T08:44:18Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659724840475", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-05T18:40:40Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -122,19 +122,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:44:18 GMT + - Fri, 05 Aug 2022 18:40:41 GMT ms-cv: - - 8jlXJRaf0ki3EvUFMKtGGg.0 + - J7NDWOkhjUOjYhVPu5TmfQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084418Z-nntkv2q0nd3zt4kemgcvznhu2400000001ug000000000kzt + - 20220805T184040Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000002t4n x-cache: - CONFIG_NOCACHE x-processing-time: - - 158ms + - 191ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index a938c642a71..58afdf706ac 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 723cbb68-a0be-415b-95ad-3a9593ab12c6 + - 11bf3b08-7905-4e13-9670-c58a3cb8dacc method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-04T08:45:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:42:15Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:45:28 GMT + - Fri, 05 Aug 2022 18:42:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AHavEfSXEj5c5nCCEAAT3BsI7xiuMCWlQpvBgwlfswg81@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A-Lb8zV1yXo3xZnzdMabHwmAsU3kJzEJiS8IhwiWrQc81@thread.v2 ms-cv: - - FurRVoAf10CxWubWlmzi6g.0 + - AWtEv1piIk6zfihT4wtD/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084527Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001qg000000025d21 + - 20220805T184214Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002u000000001smam x-cache: - CONFIG_NOCACHE x-processing-time: - - 597ms + - 642ms status: code: 201 message: Created @@ -59,23 +59,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659602728374", "type": "topicUpdated", "sequenceId": - "2", "version": "1659602728374", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}}, - "createdOn": "2022-08-04T08:45:28Z"}, {"id": "1659602728283", "type": "participantAdded", - "sequenceId": "1", "version": "1659602728283", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}, + string: '{"value": [{"id": "1659724935443", "type": "topicUpdated", "sequenceId": + "2", "version": "1659724935443", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}}, + "createdOn": "2022-08-05T18:42:15Z"}, {"id": "1659724935376", "type": "participantAdded", + "sequenceId": "1", "version": "1659724935376", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07e9-9658-defd-8b3a0d003fae"}}}, - "createdOn": "2022-08-04T08:45:28Z"}]}' + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}}, + "createdOn": "2022-08-05T18:42:15Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -84,19 +84,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:45:29 GMT + - Fri, 05 Aug 2022 18:42:16 GMT ms-cv: - - Ctn5ShEI4kKiPPLr2LqLCw.0 + - aqJedavSTkKsDw31VURziQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084528Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000001dkx9 + - 20220805T184215Z-tur6dybg817yr054hm9efewep8000000025g0000000003c4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 98ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index d222a962adc..308c1fbd47d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - ffa7a7f6-87fb-4e8f-a774-3eaca1f9e168 + - 23d976cf-2446-4bb3-9a61-43a3494f30d2 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-04T08:47:08Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:09 GMT + - Fri, 05 Aug 2022 18:43:53 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASYtBMh2w3wwuoIrpOhpRxcUxMTAHV-HQOqxpPly3pHg1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ATH4JSQy-8Y1l6XRpxtan2n6QtNwVj1YLjw7uKDFC4kA1@thread.v2 ms-cv: - - AXtUUuRJ1kGG/eCuOCuKcw.0 + - amLhbRZqJk655AUp3x5x/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084708Z-qtfd0d2efh3zh2gzxzkdhtv16800000001q000000002fkta + - 20220805T184352Z-tur6dybg817yr054hm9efewep800000002200000000263z3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 742ms + - 868ms status: code: 201 message: Created @@ -59,13 +59,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-1ef6-3ef0-8b3a0d00aac5", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-1ef6-3ef0-8b3a0d00aac5"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-cdcd-0cf9-9c3a0d0093b7", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-cdcd-0cf9-9c3a0d0093b7"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -75,19 +75,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:09 GMT + - Fri, 05 Aug 2022 18:43:54 GMT ms-cv: - - Yh/lNCZOoU6MXfhv8dx+Mg.0 + - 5kX6f8kglEuUdGX97NUzUA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084709Z-tur6dybg817yr054hm9efewep800000000yg00000004bqc2 + - 20220805T184353Z-kpegq6a2qh4nr419q7tfax5sn400000002u0000000004zff x-cache: - CONFIG_NOCACHE x-processing-time: - - 101ms + - 91ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index 753fc280e25..e7636c70880 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: @@ -23,19 +23,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 08:45:30 GMT + - Fri, 05 Aug 2022 18:42:17 GMT ms-cv: - - 5L5xVGmaaUKaKdw6sZLy4A.0 + - vgtTowfjeUyR7To3m67a3w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084529Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001uzsq + - 20220805T184217Z-1ykan7zabt1sxfcs379b67eye800000000u000000000yxph x-cache: - CONFIG_NOCACHE x-processing-time: - - 283ms + - 496ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index 68705c28105..440fe48d486 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: @@ -23,19 +23,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:04 GMT + - Fri, 05 Aug 2022 18:43:53 GMT ms-cv: - - Fkgg+4UWS0uA3uoS1ZYQMg.0 + - V+sD3kd/U0CfwgfDbyn2yQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084704Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001t0000000001f7n + - 20220805T184353Z-q1z3stmybd47948vv0qhv9299w00000002u0000000005dse x-cache: - CONFIG_NOCACHE x-processing-time: - - 71ms + - 73ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index 507a323746e..4bee3545acd 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: @@ -23,19 +23,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:09 GMT + - Fri, 05 Aug 2022 18:43:52 GMT ms-cv: - - gjEWjZDbxEKZTpnRYrVw3w.0 + - fFXyF4TYMU6qRT8V8ESy9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084709Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001pr9v + - 20220805T184352Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000004k25 x-cache: - CONFIG_NOCACHE x-processing-time: - - 15ms + - 76ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index 0fc386a1672..7ecad5e3095 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - be4ea8a5-9167-40c7-88c4-887530be46e8 + - c1d11c56-5688-4734-8ba7-3bcb7421fb29 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T08:47:31Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:43:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:32 GMT + - Fri, 05 Aug 2022 18:43:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AXMpnFsb8Z4a0ClzvJ7_gEP7z8p7KghlclWtfLIp_akU1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AzE30qJp6Gni6yIjF7mWvFvLUWQBRjOffU8wXG2by37A1@thread.v2 ms-cv: - - tnlLs2f+ZUyv05ZKZNxHzg.0 + - u4sjU3JpG0upNdin9riFiQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084731Z-k97maztpax51x2ee2r7vqbw7wg00000001rg00000001nsue + - 20220805T184358Z-qtfd0d2efh3zh2gzxzkdhtv16800000002u00000000067k1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 804ms + - 470ms status: code: 201 message: Created @@ -59,7 +59,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: @@ -73,19 +73,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:32 GMT + - Fri, 05 Aug 2022 18:44:00 GMT ms-cv: - - AOWIF5HylUG+sp1612OeJw.0 + - eTSeKmgFBUGT16KSmopHfg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084732Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000000yssy + - 20220805T184359Z-4wf38k6bv57vh8d4wkrqw24dx000000000v000000001dwp7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 109ms + - 90ms status: code: 200 message: OK @@ -99,23 +99,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659602851782", "type": "topicUpdated", "sequenceId": - "2", "version": "1659602851782", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}}, - "createdOn": "2022-08-04T08:47:31Z"}, {"id": "1659602851755", "type": "participantAdded", - "sequenceId": "1", "version": "1659602851755", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}, + string: '{"value": [{"id": "1659725039297", "type": "topicUpdated", "sequenceId": + "2", "version": "1659725039297", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}}, + "createdOn": "2022-08-05T18:43:59Z"}, {"id": "1659725039274", "type": "participantAdded", + "sequenceId": "1", "version": "1659725039274", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}}, - "createdOn": "2022-08-04T08:47:31Z"}]}' + {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}}, + "createdOn": "2022-08-05T18:43:59Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -124,24 +124,24 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:32 GMT + - Fri, 05 Aug 2022 18:44:00 GMT ms-cv: - - OAHSt0taO0e2AeE8n9gE8w.0 + - YMe4vUvSh0CWOyOAkX8O8g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084732Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000000ysum + - 20220805T184400Z-q1z3stmybd47948vv0qhv9299w00000002w0000000000eb3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 98ms + - 89ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1659602851782"}' + body: '{"chatMessageId": "1659725039297"}' headers: Accept: - application/json @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: @@ -170,17 +170,17 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:47:33 GMT + - Fri, 05 Aug 2022 18:44:01 GMT ms-cv: - - 3N+GDXaU9UWj3uSLahTW3A.0 + - 6GEh1f3CMkmEK7hcokkwFA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084733Z-kpegq6a2qh4nr419q7tfax5sn400000001s0000000013z6q + - 20220805T184401Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000004nss x-cache: - CONFIG_NOCACHE x-processing-time: - - 138ms + - 224ms status: code: 200 message: OK @@ -194,14 +194,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07eb-777f-3ef0-8b3a0d00aacc"}}, - "chatMessageId": "1659602851782", "readOn": "2022-08-04T08:47:33Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", + "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}, + "chatMessageId": "1659725039297", "readOn": "2022-08-05T18:44:01Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -210,19 +210,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:47:33 GMT + - Fri, 05 Aug 2022 18:44:02 GMT ms-cv: - - eV4IeZDnv0KeJALXj5HhTg.0 + - 6WONVvWFlUWngEbI0AdB2g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084733Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001t2d2 + - 20220805T184401Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001x0ea x-cache: - CONFIG_NOCACHE x-processing-time: - - 64ms + - 124ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index 56cf1941274..0f03e9bff5d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -12,38 +12,40 @@ interactions: - '35' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:48:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Fri, 05 Aug 2022 18:45:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:48:41.5470251+00:00"}}' + "expiresOn": "2022-08-06T18:45:29.4384305+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: - - Thu, 04 Aug 2022 08:48:41 GMT + - Fri, 05 Aug 2022 18:45:29 GMT ms-cv: - - g8NVusuaBk+B702BcZHd5A.0 + - FfG/8wcIukqxjyQXjr3YFg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 06YfrYgAAAABPIGFAHmtTSKQTRxZLURdsWVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220805T184529Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002bekm x-cache: - CONFIG_NOCACHE x-processing-time: @@ -65,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - e02d26d5-5c67-404c-9ef4-d650e292c53f + - 0f5d35db-cd2a-4ff8-b802-667cccb1ba2c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-04T08:48:42Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:45:30Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -83,27 +85,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:42 GMT + - Fri, 05 Aug 2022 18:45:30 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A-N2e3Xu4rku5qjeY5HoumrzR5OAeUbpccU3ESBIM2I01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AihwKtIyLKl-1SsHSPa1GKJM16u4etjemNCujVLOm0601@thread.v2 ms-cv: - - bNd8pH3NWUmyz054muAGvA.0 + - i/PvZJ1OQ0296nQn39aTsw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084842Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001qhcf + - 20220805T184529Z-qtfd0d2efh3zh2gzxzkdhtv16800000002w0000000000vgy x-cache: - CONFIG_NOCACHE x-processing-time: - - 392ms + - 415ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-07ec-8c45-80f5-8b3a0d00434c"}}}]}' + "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f35-4ad9-290c-113a0d00998f"}}}]}' headers: Accept: - application/json @@ -116,7 +118,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -130,19 +132,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:43 GMT + - Fri, 05 Aug 2022 18:45:31 GMT ms-cv: - - sRRX+eG1B0CzDNxDCJ7QsA.0 + - g1//kAaucEKoYB3qOWqEhw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084842Z-tur6dybg817yr054hm9efewep800000000zg000000035mxb + - 20220805T184530Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002u0000000029y4r x-cache: - CONFIG_NOCACHE x-processing-time: - - 242ms + - 267ms status: code: 201 message: Created @@ -160,7 +162,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -172,17 +174,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 08:48:43 GMT + - Fri, 05 Aug 2022 18:45:32 GMT ms-cv: - - Pm5SUdw5ckShez7+GQ4c0w.0 + - S2+aR3aXEUOQtBGxhzy5tw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084843Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000003k5 + - 20220805T184531Z-q1z3stmybd47948vv0qhv9299w00000002vg000000001w3z x-cache: - CONFIG_NOCACHE x-processing-time: - - 357ms + - 343ms status: code: 204 message: No Content @@ -200,7 +202,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -215,19 +217,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 08:48:43 GMT + - Fri, 05 Aug 2022 18:45:32 GMT ms-cv: - - CEFtAZQl8UWuTrzNk38ddA.0 + - LRxSk39qwU6YFZmKxx6xLg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084843Z-k97maztpax51x2ee2r7vqbw7wg00000001q0000000029354 + - 20220805T184532Z-tur6dybg817yr054hm9efewep8000000023000000001fbe1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1ms + - 2ms status: code: 400 message: Bad Request @@ -245,7 +247,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -257,17 +259,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 08:48:44 GMT + - Fri, 05 Aug 2022 18:45:33 GMT ms-cv: - - vQKr0BtcHkaHluv7mnEyhg.0 + - QojtB/pYuE2jUfo8qx+DXw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T084844Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001vub + - 20220805T184532Z-91tba13kdd5mrb8h3w91379wbg00000002tg000000002245 x-cache: - CONFIG_NOCACHE x-processing-time: - - 257ms + - 96ms status: code: 204 message: No Content @@ -285,7 +287,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -301,19 +303,19 @@ interactions: content-type: - application/json date: - - Thu, 04 Aug 2022 08:48:44 GMT + - Fri, 05 Aug 2022 18:45:33 GMT ms-cv: - - Csk+OgW4cE+hNeCtcQPXMg.0 + - tKbjFBEjVkyodwEk4/uMdQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084844Z-nntkv2q0nd3zt4kemgcvznhu2400000001ug0000000037ae + - 20220805T184533Z-tur6dybg817yr054hm9efewep8000000022g00000001v9bu x-cache: - CONFIG_NOCACHE x-processing-time: - - 73ms + - 137ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index fe0b06ed8f8..d1d87108233 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 8b2a611b-f558-4a97-92c6-ae2c25e42c24 + - 5606e312-1d9e-4cfc-b946-21a37f5b7b72 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T08:48:45Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:45:29Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:46 GMT + - Fri, 05 Aug 2022 18:45:30 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AVgu-XHQqwckFp4ohK2MFoLUJ5c1gelcHGZblO0rL1Ek1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ADZMKgIPm4MlNVd4vcQwqOT3pSZeMm1TTvDrCzr9xaxo1@thread.v2 ms-cv: - - MgJ8Yei0f0O3XPZo5J8OEw.0 + - NRmpwLq5wUma4ZesXQHmNg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084845Z-afb852g2vh6591nsqudzty20xs00000001q000000002b8tk + - 20220805T184529Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002ug00000001nnvr x-cache: - CONFIG_NOCACHE x-processing-time: - - 924ms + - 280ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:46 GMT + - Fri, 05 Aug 2022 18:45:30 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AVgu-XHQqwckFp4ohK2MFoLUJ5c1gelcHGZblO0rL1Ek1@thread.v2/messages/1659602926752 + - https://clitest000002.communication.azure.com/chat/threads/19%3ADZMKgIPm4MlNVd4vcQwqOT3pSZeMm1TTvDrCzr9xaxo1@thread.v2/messages/1659725130693 ms-cv: - - kQ2rSuEcMkG6D4sCp2ILnw.0 + - JqHbnkuxqUy7EDa0w68KXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084846Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001tp0u + - 20220805T184530Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001xwe3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 207ms + - 179ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index cd6b2569f9b..f60b5130970 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - a67b5dad-e1f6-4261-ace5-c0be5410e6de + - bfe55a8b-d46f-4fb6-ae17-b5e25503a5c3 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-04T08:48:46Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:45:30Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:46 GMT + - Fri, 05 Aug 2022 18:45:30 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A5Mgy6d9706xk57tncqEEFw2ldvbDBt7a1FDMoudO8j41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASaJgkPpJzKHCormn4K_UWysH-V5dih1wolEhQQXq2hg1@thread.v2 ms-cv: - - rZrGmcxNzEmwDzeo198Mig.0 + - GjH0rnFVa0Ony+Q06EBAyA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084846Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001w7r + - 20220805T184530Z-1ykan7zabt1sxfcs379b67eye800000000ug00000000umay x-cache: - CONFIG_NOCACHE x-processing-time: - - 664ms + - 507ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:48:47 GMT + - Fri, 05 Aug 2022 18:45:31 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A5Mgy6d9706xk57tncqEEFw2ldvbDBt7a1FDMoudO8j41@thread.v2/messages/1659602927128 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASaJgkPpJzKHCormn4K_UWysH-V5dih1wolEhQQXq2hg1@thread.v2/messages/1659725131330 ms-cv: - - FMYGFUu+PUiCVTouuIxe4w.0 + - /SMmaosDU0CbruCBj3qu+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084847Z-q1z3stmybd47948vv0qhv9299w00000001q0000000029wxw + - 20220805T184531Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000000925 x-cache: - CONFIG_NOCACHE x-processing-time: - - 185ms + - 124ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index c4655798d3d..2eb4da11af7 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 5ad8f3a1-80d6-45c9-9d76-b6706da9e07f + - 5bc2dcef-299a-4215-8945-2c6ca4e6a447 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T08:49:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:45:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:49:09 GMT + - Fri, 05 Aug 2022 18:45:40 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AJVFuvI96q64b9xNuM3j5rM6Yt4WMgxH8sJkju9v3wjM1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AUu3jv4_XvuFkKFH4A6IYl9TrntMd9qpyOhLIHjwGL9A1@thread.v2 ms-cv: - - vhtH6gKXm0OX5vRYU/at/w.0 + - r9exP1WQM0aKXDtUM0Q2ZQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T084909Z-afb852g2vh6591nsqudzty20xs00000001q000000002bghg + - 20220805T184539Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002ug00000001nr8u x-cache: - CONFIG_NOCACHE x-processing-time: - - 734ms + - 922ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index 6c407901b4a..99cedad60fd 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 4200f6f6-9dca-4a4f-8da1-1c36deda294a + - 080bf3af-b8ee-4aac-bc0d-921f9db40027 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-04T08:50:21Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:47:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:22 GMT + - Fri, 05 Aug 2022 18:47:07 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AYcHGj8-Ir1zZAsoYyG-TNY-MvLfMttNE0sQWzpsu63M1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AvhujDBsWgFLkrVpLYheQrvLB5epY0nQpjopNqICjCjk1@thread.v2 ms-cv: - - mBCf4IYQHUOmjSl8FY4HeQ.0 + - y4sIFOOJY0OHw/yA4g+5zg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085021Z-tur6dybg817yr054hm9efewep800000000zg00000001w1z5 + - 20220805T184706Z-afb852g2vh6591nsqudzty20xs00000002wg0000000008fp x-cache: - CONFIG_NOCACHE x-processing-time: - - 565ms + - 513ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:22 GMT + - Fri, 05 Aug 2022 18:47:07 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AYcHGj8-Ir1zZAsoYyG-TNY-MvLfMttNE0sQWzpsu63M1@thread.v2/messages/1659603022584 + - https://clitest000002.communication.azure.com/chat/threads/19%3AvhujDBsWgFLkrVpLYheQrvLB5epY0nQpjopNqICjCjk1@thread.v2/messages/1659725227805 ms-cv: - - He1zwqKNQE2zIwSwEBMC/A.0 + - IDjDYLnPxUSK+c7/LPOXhQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085022Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001rbbn + - 20220805T184707Z-kpegq6a2qh4nr419q7tfax5sn400000002ug000000005cx6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 185ms + - 52ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index e6de79bfce8..fadec0677dd 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 8856c8cc-1afa-457c-aee1-19ce7fe8d64f + - 1b95d6c0-c605-4dfe-993b-d9aebb1d36ea method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T08:50:22Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:47:07Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:23 GMT + - Fri, 05 Aug 2022 18:47:07 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AeD59wa300lXxfkiHIfc7k0X9bvn3zc9uZieiBrIXxJQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Asf0TaGGOY9YJOAsoRc79y-ol3sWBZyFHzdvrkX5tiSE1@thread.v2 ms-cv: - - YUvbdY6ySUq1sAG19DqLnQ.0 + - In7zacugvEu8AcAC0/cXQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085022Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001vg000000002wbc + - 20220805T184706Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000006fxb x-cache: - CONFIG_NOCACHE x-processing-time: - - 617ms + - 487ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -77,21 +77,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:24 GMT + - Fri, 05 Aug 2022 18:47:08 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AeD59wa300lXxfkiHIfc7k0X9bvn3zc9uZieiBrIXxJQ1@thread.v2/messages/1659603023907 + - https://clitest000002.communication.azure.com/chat/threads/19%3Asf0TaGGOY9YJOAsoRc79y-ol3sWBZyFHzdvrkX5tiSE1@thread.v2/messages/1659725228312 ms-cv: - - RMJFWTkzZkWLcBAsmk9Cog.0 + - buUWrQ3H1EmSOCLK10+4Ug.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085023Z-k97maztpax51x2ee2r7vqbw7wg00000001q0000000029z52 + - 20220805T184707Z-1ykan7zabt1sxfcs379b67eye800000000vg00000000c8b5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 211ms + - 210ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: @@ -121,17 +121,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 08:50:24 GMT + - Fri, 05 Aug 2022 18:47:09 GMT ms-cv: - - AI/XDJ90J0Kl31PR+s6N3g.0 + - 4lC3z+U5e0Ols1FPQ8hPJQ.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085024Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001vg000000000612 + - 20220805T184708Z-qtfd0d2efh3zh2gzxzkdhtv16800000002u00000000088tc x-cache: - CONFIG_NOCACHE x-processing-time: - - 261ms + - 223ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index 959fe928e22..497846b808b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -13,15 +13,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 841e2193-3212-4bd0-976e-2610e0f29f0c + - c5b68e8e-f875-49d2-b3e3-27ecf09d049b method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-04T08:50:23Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-05T18:47:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +31,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:24 GMT + - Fri, 05 Aug 2022 18:47:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A2wvkuTP3t9OlOUUz4MhkG6__gA22MvPh1FJM0cEH2s41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AKlO64J4CS-AgAD6h6wqPaa0fIGET-Q7MvOc76o6kYpg1@thread.v2 ms-cv: - - KA3bpYlZ7UGqJI3pBN5Clw.0 + - g08JSEKNzEqemcwN31xz9w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085023Z-t3qxnf3gyp2hp65bg8hnzpg1t000000001u0000000005a1k + - 20220805T184708Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002u0000000001k73 x-cache: - CONFIG_NOCACHE x-processing-time: - - 806ms + - 596ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-09-07 response: @@ -75,17 +75,17 @@ interactions: connection: - keep-alive date: - - Thu, 04 Aug 2022 08:50:24 GMT + - Fri, 05 Aug 2022 18:47:10 GMT ms-cv: - - WnDZbGbCl0WwP8ePz6NkOw.0 + - J6L3QTCKRU+xhhYPpaVL5Q.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085024Z-91tba13kdd5mrb8h3w91379wbg00000001rg00000001fger + - 20220805T184710Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002u000000001v6mb x-cache: - CONFIG_NOCACHE x-processing-time: - - 335ms + - 255ms status: code: 204 message: No Content 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 c1a7f427059..fee570bee34 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,16 +17,16 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"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/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -34,9 +34,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:56:33 GMT + - Fri, 05 Aug 2022 18:48:49 GMT etag: - - '"070077c2-0000-0700-0000-62ec32820000"' + - '"0b00929e-0000-0700-0000-62ed66110000"' expires: - '-1' pragma: @@ -68,12 +68,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T20:56:33.9751261Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-05T18:48:49.5865793Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:57:04 GMT + - Fri, 05 Aug 2022 18:49:19 GMT etag: - - '"0d0079c6-0000-0800-0000-62ec32810000"' + - '"10005517-0000-0800-0000-62ed66110000"' expires: - '-1' pragma: @@ -114,12 +114,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-04T20:56:33.9751261Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-05T18:48:49.5865793Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:57:33 GMT + - Fri, 05 Aug 2022 18:49:49 GMT etag: - - '"0d0079c6-0000-0800-0000-62ec32810000"' + - '"10005517-0000-0800-0000-62ed66110000"' expires: - '-1' pragma: @@ -160,12 +160,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"76d29a58-1f7f-43b1-a08a-e520917912e8*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:56:33.9751261Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:48:49.5865793Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:03 GMT + - Fri, 05 Aug 2022 18:50:19 GMT etag: - - '"ba002f17-0000-0700-0000-62ec32c30000"' + - '"1000b417-0000-0800-0000-62ed66530000"' expires: - '-1' pragma: @@ -206,12 +206,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States"}}' headers: cache-control: @@ -221,9 +221,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:04 GMT + - Fri, 05 Aug 2022 18:50:20 GMT etag: - - '"07008bc2-0000-0700-0000-62ec32880000"' + - '"0b00b09e-0000-0700-0000-62ed66180000"' expires: - '-1' pragma: @@ -255,12 +255,12 @@ interactions: ParameterSetName: - --created --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States"}}' headers: cache-control: @@ -270,9 +270,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:05 GMT + - Fri, 05 Aug 2022 18:50:21 GMT etag: - - '"07008bc2-0000-0700-0000-62ec32880000"' + - '"0b00b09e-0000-0700-0000-62ed66180000"' expires: - '-1' pragma: @@ -304,12 +304,12 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States"}}' headers: cache-control: @@ -319,9 +319,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:06 GMT + - Fri, 05 Aug 2022 18:50:22 GMT etag: - - '"07008bc2-0000-0700-0000-62ec32880000"' + - '"0b00b09e-0000-0700-0000-62ed66180000"' expires: - '-1' pragma: @@ -353,12 +353,12 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States"}}]}' headers: cache-control: @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:06 GMT + - Fri, 05 Aug 2022 18:50:23 GMT expires: - '-1' pragma: @@ -400,12 +400,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:56:33.5680393Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States"}}]}' headers: cache-control: @@ -415,7 +415,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:07 GMT + - Fri, 05 Aug 2022 18:50:23 GMT expires: - '-1' pragma: @@ -451,12 +451,12 @@ interactions: ParameterSetName: - --name --tags --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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-08-04T20:56:33.5680393Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-04T20:58:07.7603778Z"},"properties":{"hostName":"mycommunicat7emkkvjgtem.communication.azure.com","immutableResourceId":"f6b7b8a6-b508-4801-a417-a022bfe8e5a1","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:50:24.0170604Z"},"properties":{"hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: @@ -466,9 +466,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:08 GMT + - Fri, 05 Aug 2022 18:50:24 GMT etag: - - '"0700d5c3-0000-0700-0000-62ec32e00000"' + - '"0b0040a0-0000-0700-0000-62ed66700000"' expires: - '-1' pragma: @@ -486,7 +486,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -509,7 +509,7 @@ interactions: ParameterSetName: - --name --connection-string --resource-id --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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: @@ -523,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:08 GMT + - Fri, 05 Aug 2022 18:50:25 GMT expires: - '-1' pragma: @@ -561,12 +561,12 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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":"+oKlKsSZl+VyT+js4eKtyfgBRlZKZ9gdU4Kj4xw/v1xrB1D1tUqHA+i5U9LvM/hb1QzOtj/Y5oKgJFjl8RHotA==","secondaryKey":"XKcigix5XQuOmGF/G+ve1r1mdG8h2RwttKxLNEwgVvyuT5C4PKr5iIKM7YXVM5gfaf+kL+0CZTogFZbGEAND9A==","primaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=+oKlKsSZl+VyT+js4eKtyfgBRlZKZ9gdU4Kj4xw/v1xrB1D1tUqHA+i5U9LvM/hb1QzOtj/Y5oKgJFjl8RHotA==","secondaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=XKcigix5XQuOmGF/G+ve1r1mdG8h2RwttKxLNEwgVvyuT5C4PKr5iIKM7YXVM5gfaf+kL+0CZTogFZbGEAND9A=="}' + string: '{"primaryKey":"lrU7IB2CqdoxdXRkqKvDgXIbLSL97+5oyIyIC543NoGYBWjwOGKQiFYag4+n13vntn/5HSFqGGnUTQNO3aSCNg==","secondaryKey":"fGC/TPNIIXVnHbqlFxfTdMcW9aMYN0zIbzzg7R1E3WzegsTvt7DdEkmYzeKOf/eSCS43f0saM0z/KOnFHQ2cwg==","primaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=lrU7IB2CqdoxdXRkqKvDgXIbLSL97+5oyIyIC543NoGYBWjwOGKQiFYag4+n13vntn/5HSFqGGnUTQNO3aSCNg==","secondaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=fGC/TPNIIXVnHbqlFxfTdMcW9aMYN0zIbzzg7R1E3WzegsTvt7DdEkmYzeKOf/eSCS43f0saM0z/KOnFHQ2cwg=="}' headers: cache-control: - no-cache @@ -575,7 +575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:09 GMT + - Fri, 05 Aug 2022 18:50:25 GMT expires: - '-1' pragma: @@ -615,12 +615,12 @@ interactions: ParameterSetName: - --name --key-type --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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":"R1ErAZPr5YG0TTy/eklAf2PBnQhipCR0gFOn2OxljSAeeGc1tc7Afvd2XlXVId+pCcenMldvXn2jO6S5brOAig==","primaryConnectionString":"endpoint=https://mycommunicat7emkkvjgtem.communication.azure.com/;accesskey=R1ErAZPr5YG0TTy/eklAf2PBnQhipCR0gFOn2OxljSAeeGc1tc7Afvd2XlXVId+pCcenMldvXn2jO6S5brOAig=="}' + string: '{"primaryKey":"8N2IDBkEM96wPbueJQPYfSMS1vPRzR5zsdoE4+msxifx8TNTalo2y74QtYfXV4HqKIefeSY87H/mG7Mpi8wEgg==","primaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=8N2IDBkEM96wPbueJQPYfSMS1vPRzR5zsdoE4+msxifx8TNTalo2y74QtYfXV4HqKIefeSY87H/mG7Mpi8wEgg=="}' headers: cache-control: - no-cache @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:10 GMT + - Fri, 05 Aug 2022 18:50:26 GMT expires: - '-1' pragma: @@ -667,7 +667,7 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-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: @@ -675,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -683,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:15 GMT + - Fri, 05 Aug 2022 18:50:27 GMT etag: - - '"0700eac3-0000-0700-0000-62ec32e70000"' + - '"0b004fa0-0000-0700-0000-62ed66730000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -717,12 +717,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T20:58:15.1194218Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-05T18:50:27.7919862Z"}' headers: cache-control: - no-cache @@ -731,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:58:45 GMT + - Fri, 05 Aug 2022 18:50:57 GMT etag: - - '"0d005fc7-0000-0800-0000-62ec32e70000"' + - '"10006c18-0000-0800-0000-62ed66730000"' expires: - '-1' pragma: @@ -759,12 +759,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-04T20:58:15.1194218Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-05T18:50:27.7919862Z"}' headers: cache-control: - no-cache @@ -773,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:59:15 GMT + - Fri, 05 Aug 2022 18:51:27 GMT etag: - - '"0d005fc7-0000-0800-0000-62ec32e70000"' + - '"10006c18-0000-0800-0000-62ed66730000"' expires: - '-1' pragma: @@ -801,12 +801,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:58:15.1194218Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:50:27.7919862Z","properties":null}' headers: cache-control: - no-cache @@ -815,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:59:45 GMT + - Fri, 05 Aug 2022 18:51:57 GMT etag: - - '"0d0087c8-0000-0800-0000-62ec332a0000"' + - '"050138c0-0000-0700-0000-62ed66b50000"' expires: - '-1' pragma: @@ -847,12 +847,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","name":"f0a60b3f-2b5f-443a-be4d-48d0b34c2de3*F0B4AF373D0B0C7EF9BB50B1E008B2576FBD06D0F1472BCA0657B5B48062FEB7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-04T20:58:15.1194218Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:50:27.7919862Z","properties":null}' headers: cache-control: - no-cache @@ -861,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 20:59:45 GMT + - Fri, 05 Aug 2022 18:51:57 GMT etag: - - '"0d0087c8-0000-0800-0000-62ec332a0000"' + - '"050138c0-0000-0700-0000-62ed66b50000"' 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 a67cf350e81..a2076a1e2ae 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 @@ -12,20 +12,20 @@ interactions: - '35' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:50:45 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Fri, 05 Aug 2022 18:47:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:50:46.4457809+00:00"}}' + "expiresOn": "2022-08-06T18:47:16.3294485+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:50:46 GMT + - Fri, 05 Aug 2022 18:47:16 GMT ms-cv: - - XW5ziKYD1UObnUnFf2u2Gg.0 + - FYJ+20sCoUi99C8HY/bYLg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085046Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000001rg00000001q7zy + - 20220805T184716Z-q1z3stmybd47948vv0qhv9299w00000002ug000000005b58 x-cache: - CONFIG_NOCACHE x-processing-time: - - 125ms + - 123ms 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 dbce3d96c66..bae7450b785 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 @@ -12,16 +12,16 @@ interactions: - '2' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:51:58 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-date: + - Fri, 05 Aug 2022 18:48:42 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:51:59 GMT + - Fri, 05 Aug 2022 18:48:44 GMT ms-cv: - - N5Wo2GG/ck6ni6OM8YyU0Q.0 + - GciWxBM6ckuM9k+wnpIHdw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085159Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000001u0000000002rau + - 20220805T184843Z-qtfd0d2efh3zh2gzxzkdhtv16800000002w0000000002yap x-cache: - CONFIG_NOCACHE x-processing-time: - - 110ms + - 111ms status: code: 201 message: Created @@ -65,19 +65,19 @@ interactions: - '20' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:51:58 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= + x-ms-date: + - Fri, 05 Aug 2022 18:48:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-05T08:51:59.9021822+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-06T18:48:44.9761779+00:00"}' headers: accept-ranges: - bytes @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:51:59 GMT + - Fri, 05 Aug 2022 18:48:45 GMT ms-cv: - - mFi5SS+R0EqPT/7EGNi/ig.0 + - NyVUH6KBNEG4Xx+gnAzbCQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085159Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001vg000000000hhe + - 20220805T184844Z-91tba13kdd5mrb8h3w91379wbg00000002u0000000001e4m x-cache: - CONFIG_NOCACHE x-processing-time: - - 175ms + - 178ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index 35069bbf696..ae5e0a2268e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -12,20 +12,20 @@ interactions: - '43' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:52:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= + x-ms-date: + - Fri, 05 Aug 2022 18:48:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-05T08:52:01.2527223+00:00"}}' + "expiresOn": "2022-08-06T18:48:45.1048931+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:52:01 GMT + - Fri, 05 Aug 2022 18:48:45 GMT ms-cv: - - YDTMAYVPSkaWe8z1VUbAxg.0 + - qbDOWRINBEKdwK7H9MIUmg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085201Z-q1z3stmybd47948vv0qhv9299w00000001rg00000001s7n9 + - 20220805T184844Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001zpe3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 110ms status: code: 201 message: Created 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 ab756cd1887..b92ac588610 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: - - Thu, 04 Aug 2022 08:52:21 GMT + - Fri, 05 Aug 2022 18:48:51 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:52:26 GMT + - Fri, 05 Aug 2022 18:48:56 GMT location: - - /availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 ms-cv: - - xp3HsJpWTEGjKCW9cWgfZQ.0 + - MsE+lstTuUGwwgQMQIiwoQ.0 operation-id: - - search_1580cc09-4b3d-46f2-b679-adb894e5a4f2 + - search_ccaad719-583d-4865-b362-ba79a27dcba8 operation-location: - - /phoneNumbers/operations/search_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + - /phoneNumbers/operations/search_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 search-id: - - 1580cc09-4b3d-46f2-b679-adb894e5a4f2 + - ccaad719-583d-4865-b362-ba79a27dcba8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085222Z-tur6dybg817yr054hm9efewep8000000010g00000000qh9u + - 20220805T184853Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002dqth x-cache: - CONFIG_NOCACHE x-processing-time: - - 4172ms + - 3333ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:52:56 GMT + - Fri, 05 Aug 2022 18:49:25 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07", - "createdDateTime": "2022-08-04T08:52:26.5151109+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:48:56.1619768+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:52:58 GMT + - Fri, 05 Aug 2022 18:49:27 GMT location: - - /availablePhoneNumbers/searchResults/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 ms-cv: - - 1TjD+IKWZ0+akzDPsCvykw.0 + - jepTN1KwG06vAvbyfqoK7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085257Z-tur6dybg817yr054hm9efewep8000000010g00000000qpeq + - 20220805T184926Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e30y x-cache: - CONFIG_NOCACHE x-processing-time: - - 769ms + - 407ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:52:57 GMT + - Fri, 05 Aug 2022 18:49:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 response: body: - string: '{"searchId": "1580cc09-4b3d-46f2-b679-adb894e5a4f2", "phoneNumbers": + string: '{"searchId": "ccaad719-583d-4865-b362-ba79a27dcba8", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:08:28.5065280+00:00"}' + "2022-08-05T19:04:58.9493554+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:52:59 GMT + - Fri, 05 Aug 2022 18:49:30 GMT ms-cv: - - thZdaQO9wk2FwoPnePu8ng.0 + - wcnX9ZkekEGWbEFmcYk9Ig.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085258Z-tur6dybg817yr054hm9efewep8000000010g00000000qpn3 + - 20220805T184927Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e3bz x-cache: - CONFIG_NOCACHE x-processing-time: - - 1231ms + - 2253ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "1580cc09-4b3d-46f2-b679-adb894e5a4f2"}' + body: '{"searchId": "ccaad719-583d-4865-b362-ba79a27dcba8"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 08:52:59 GMT + - Fri, 05 Aug 2022 18:49:29 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - httbxswchOJnIeup/j9Xy4YuqSeB1h3ZaslMmqcUQVA= + - ZCCj66Fg9CvF7RxGHkhQFyz2Th6GnGPk8CjndX6oxsk= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:53:02 GMT + - Fri, 05 Aug 2022 18:49:32 GMT ms-cv: - - GeYw1rDA8UWe66a5sj26aQ.0 + - wH/8Fzv0xEyP1KzkMEECSQ.0 operation-id: - - purchase_1580cc09-4b3d-46f2-b679-adb894e5a4f2 + - purchase_ccaad719-583d-4865-b362-ba79a27dcba8 operation-location: - - /phoneNumbers/operations/purchase_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 purchase-id: - - 1580cc09-4b3d-46f2-b679-adb894e5a4f2 + - ccaad719-583d-4865-b362-ba79a27dcba8 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085259Z-tur6dybg817yr054hm9efewep8000000010g00000000qpwm + - 20220805T184930Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e4aq x-cache: - CONFIG_NOCACHE x-processing-time: - - 2164ms + - 1942ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:53:31 GMT + - Fri, 05 Aug 2022 18:50:01 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_1580cc09-4b3d-46f2-b679-adb894e5a4f2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T08:52:26.5151109+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-05T18:48:56.1619768+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:33 GMT + - Fri, 05 Aug 2022 18:50:03 GMT ms-cv: - - qNNZZRkKfk2xwZEXdXwbSw.0 + - mR0XevoqtkinE35bFSImow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085332Z-tur6dybg817yr054hm9efewep8000000010g00000000qw0p + - 20220805T185002Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002eg81 x-cache: - CONFIG_NOCACHE x-processing-time: - - 607ms + - 491ms status: code: 200 message: OK @@ -278,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:53:32 GMT + - Fri, 05 Aug 2022 18:50:02 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -292,7 +292,7 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-08-04T08:53:16.2599385+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-05T18:49:48.4962728+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: @@ -302,19 +302,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:53:37 GMT + - Fri, 05 Aug 2022 18:50:06 GMT ms-cv: - - 6rueIm38tEWBG0WZZetqtw.0 + - ZUt2lJLvp0uM/fhSMrd5FA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085333Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000001ebs + - 20220805T185003Z-kpegq6a2qh4nr419q7tfax5sn400000002v00000000055hk x-cache: - CONFIG_NOCACHE x-processing-time: - - 3682ms + - 2579ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index 703c88a3137..089cefd8920 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -12,16 +12,16 @@ interactions: - '2' Content-Type: - application/json - Date: - - Thu, 04 Aug 2022 08:51:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-date: + - Fri, 05 Aug 2022 18:48:44 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -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: - - Thu, 04 Aug 2022 08:52:00 GMT + - Fri, 05 Aug 2022 18:48:45 GMT ms-cv: - - mTrsL/p4FE6rod7KuqZmiQ.0 + - K2JsYnuqWUe/FDjQ25coIg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085200Z-91tba13kdd5mrb8h3w91379wbg00000001q00000000242v3 + - 0DWbtYgAAAAB/PJpIExLsRqCcnNFRGKXTWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 108ms + - 51ms status: code: 201 message: Created @@ -63,16 +61,16 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Thu, 04 Aug 2022 08:51:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Fri, 05 Aug 2022 18:48:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 response: body: string: '' @@ -80,18 +78,16 @@ 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 date: - - Thu, 04 Aug 2022 08:52:00 GMT + - Fri, 05 Aug 2022 18:48:46 GMT ms-cv: - - s6BOPbL7VkqUN8wd3s9nyQ.0 + - /mGzCCfxD0y4VfBmXDxM/w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085200Z-nntkv2q0nd3zt4kemgcvznhu2400000001w0000000003arw + - 0DmbtYgAAAACeXr3z8ToiSKMZkpsMhODyWVZSMzExMDAwMTE2MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: 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 01a644c5c40..d2f715152d5 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: - - Thu, 04 Aug 2022 08:53:35 GMT + - Fri, 05 Aug 2022 18:50:21 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:53:41 GMT + - Fri, 05 Aug 2022 18:50:25 GMT location: - - /availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 ms-cv: - - ZaEQrnccj0uXOSvSQrFESw.0 + - Nfw4e7r+d0mdB2c3tDMBsA.0 operation-id: - - search_fdb2276d-430a-46af-af83-7f6e60c1e7e5 + - search_c877cced-6cc9-4aae-b5b4-227a657fe71e operation-location: - - /phoneNumbers/operations/search_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + - /phoneNumbers/operations/search_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 search-id: - - fdb2276d-430a-46af-af83-7f6e60c1e7e5 + - c877cced-6cc9-4aae-b5b4-227a657fe71e strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085336Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000001yng + - 20220805T185022Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002c2b x-cache: - CONFIG_NOCACHE x-processing-time: - - 3970ms + - 2732ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:10 GMT + - Fri, 05 Aug 2022 18:50:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07", - "createdDateTime": "2022-08-04T08:53:40.5342185+00:00", "id": "search_fdb2276d-430a-46af-af83-7f6e60c1e7e5", + "/availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:50:24.8447066+00:00", "id": "search_c877cced-6cc9-4aae-b5b4-227a657fe71e", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:11 GMT + - Fri, 05 Aug 2022 18:50:55 GMT location: - - /availablePhoneNumbers/searchResults/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 ms-cv: - - FWKAUUgfekGuD9hqE/83ng.0 + - tPzIUQ2gk0m+tnFW+lWcAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085411Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000027z9 + - 20220805T185055Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002myy x-cache: - CONFIG_NOCACHE x-processing-time: - - 423ms + - 488ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:10 GMT + - Fri, 05 Aug 2022 18:50:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 response: body: - string: '{"searchId": "fdb2276d-430a-46af-af83-7f6e60c1e7e5", "phoneNumbers": - ["+18443044020"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "c877cced-6cc9-4aae-b5b4-227a657fe71e", "phoneNumbers": + ["+18336036086"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:09:45.7847138+00:00"}' + "2022-08-05T19:06:27.3703922+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:14 GMT + - Fri, 05 Aug 2022 18:50:57 GMT ms-cv: - - gRWef31LkUGBQf+U3MF7ug.0 + - DX6L+gjCcUK8P3G9ViXBuQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085411Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u000000000284x + - 20220805T185055Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002n31 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2474ms + - 1260ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "fdb2276d-430a-46af-af83-7f6e60c1e7e5"}' + body: '{"searchId": "c877cced-6cc9-4aae-b5b4-227a657fe71e"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 08:54:13 GMT + - Fri, 05 Aug 2022 18:50:56 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - Hq6wHdEJcMYld8+IzRZcv/RLsajpMnHD2cKObxKy+YA= + - d6tKxZl7f6g841KEtWVdCMi6c5fvvFccBNkAaNWrNGo= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:54:16 GMT + - Fri, 05 Aug 2022 18:51:01 GMT ms-cv: - - UUHkIlEDkUe0OeMFx5vV2A.0 + - PV7iXoeMD0qB1u1i9NMIlQ.0 operation-id: - - purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5 + - purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e operation-location: - - /phoneNumbers/operations/purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 purchase-id: - - fdb2276d-430a-46af-af83-7f6e60c1e7e5 + - c877cced-6cc9-4aae-b5b4-227a657fe71e strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085414Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000028xp + - 20220805T185057Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002nf9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1820ms + - 3328ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:45 GMT + - Fri, 05 Aug 2022 18:51:30 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_fdb2276d-430a-46af-af83-7f6e60c1e7e5?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T08:53:40.5342185+00:00", "id": "purchase_fdb2276d-430a-46af-af83-7f6e60c1e7e5", + null, "createdDateTime": "2022-08-05T18:50:24.8447066+00:00", "id": "purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:46 GMT + - Fri, 05 Aug 2022 18:51:31 GMT ms-cv: - - QMZfzVu0gU6l3AHouTOuOQ.0 + - Ve6VfTYnY06EhGsl8jMAOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085446Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000002hpu + - 20220805T185131Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002xnp x-cache: - CONFIG_NOCACHE x-processing-time: - - 391ms + - 370ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 08:54:46 GMT + - Fri, 05 Aug 2022 18:51:31 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - g8dPz/x+TUzcyqt2AIQIoShmlXipRwB2g+A99PzG780= + - BErKtUuTMycJcfWw2H4gARF2/2GcUwhhr64HnDRR0qo= x-ms-return-client-request-id: - 'true' method: POST @@ -305,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:47 GMT + - Fri, 05 Aug 2022 18:51:32 GMT ms-cv: - - W7VsR4yI8kiI92YnPmMYOQ.0 + - 5kk3aDYYF0ulgclS5QfWTA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085446Z-kpegq6a2qh4nr419q7tfax5sn400000001qg00000002k1w5 + - 20220805T185132Z-q1z3stmybd47948vv0qhv9299w00000002u000000000amr7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 217ms + - 127ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index 0cdad30d369..c5d7016f602 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:02:33 GMT + - Fri, 05 Aug 2022 18:51:42 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 09:02:39 GMT + - Fri, 05 Aug 2022 18:51:46 GMT location: - - /availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 ms-cv: - - kZfTKfmwSUuXA8XRgS6dgg.0 + - lwaHoZD3EECj1MBx26vOxQ.0 operation-id: - - search_423da52c-b8a0-483b-96e8-b086f5880267 + - search_bd7495d0-257d-4ab9-87de-055470e9e496 operation-location: - - /phoneNumbers/operations/search_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + - /phoneNumbers/operations/search_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 search-id: - - 423da52c-b8a0-483b-96e8-b086f5880267 + - bd7495d0-257d-4ab9-87de-055470e9e496 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T090234Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006kc9 + - 20220805T185143Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005m9h x-cache: - CONFIG_NOCACHE x-processing-time: - - 4388ms + - 2638ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:03:08 GMT + - Fri, 05 Aug 2022 18:52:15 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07", - "createdDateTime": "2022-08-04T09:02:38.977525+00:00", "id": "search_423da52c-b8a0-483b-96e8-b086f5880267", + "/availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:51:45.8215137+00:00", "id": "search_bd7495d0-257d-4ab9-87de-055470e9e496", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:03:10 GMT + - Fri, 05 Aug 2022 18:52:16 GMT location: - - /availablePhoneNumbers/searchResults/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 ms-cv: - - UoyQsQ443E6wxQvnqvMz9A.0 + - gwIJ+3KOs0yqGZdnl51Zbg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090309Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006w4c + - 20220805T185216Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005ubc x-cache: - CONFIG_NOCACHE x-processing-time: - - 408ms + - 328ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:03:09 GMT + - Fri, 05 Aug 2022 18:52:15 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 response: body: - string: '{"searchId": "423da52c-b8a0-483b-96e8-b086f5880267", "phoneNumbers": - ["+18443044111"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "bd7495d0-257d-4ab9-87de-055470e9e496", "phoneNumbers": + ["+18335966373"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:18:41.4577288+00:00"}' + "2022-08-05T19:07:47.7395323+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:03:12 GMT + - Fri, 05 Aug 2022 18:52:19 GMT ms-cv: - - X6fiasTroEqG8HEOj19vAQ.0 + - xCohvMw6AEuH+pplHRq6Dg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090310Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006wa8 + - 20220805T185216Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005udf x-cache: - CONFIG_NOCACHE x-processing-time: - - 2149ms + - 2702ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "423da52c-b8a0-483b-96e8-b086f5880267"}' + body: '{"searchId": "bd7495d0-257d-4ab9-87de-055470e9e496"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:03:12 GMT + - Fri, 05 Aug 2022 18:52:18 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - gSA+jFxPRwPNj8Rh5dme2KygxnWJC0LdhDDrbvK+0BY= + - NKgGs5uUjoyOguaLnqBajWyYtKe1Fzg0dAmULrWKHEY= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 09:03:15 GMT + - Fri, 05 Aug 2022 18:52:22 GMT ms-cv: - - qJz7DwV0qEmZqu2YWg0osA.0 + - g7ZjtUIqYkCaPjEoIX4cDw.0 operation-id: - - purchase_423da52c-b8a0-483b-96e8-b086f5880267 + - purchase_bd7495d0-257d-4ab9-87de-055470e9e496 operation-location: - - /phoneNumbers/operations/purchase_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 purchase-id: - - 423da52c-b8a0-483b-96e8-b086f5880267 + - bd7495d0-257d-4ab9-87de-055470e9e496 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T090312Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u0000000006x1z + - 20220805T185219Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005uwb x-cache: - CONFIG_NOCACHE x-processing-time: - - 2290ms + - 2370ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:03:44 GMT + - Fri, 05 Aug 2022 18:52:51 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_423da52c-b8a0-483b-96e8-b086f5880267?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T09:02:38.977525+00:00", "id": "purchase_423da52c-b8a0-483b-96e8-b086f5880267", + null, "createdDateTime": "2022-08-05T18:51:45.8215137+00:00", "id": "purchase_bd7495d0-257d-4ab9-87de-055470e9e496", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:03:46 GMT + - Fri, 05 Aug 2022 18:52:53 GMT ms-cv: - - xBxYDX5lfUutyIslW29QEQ.0 + - /icR6uOyVECKFG5flNSUcQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090345Z-uc7yrm58kd5cb2tk4u9cfe74aw00000001u00000000076nu + - 20220805T185252Z-q1z3stmybd47948vv0qhv9299w00000002v000000000613h x-cache: - CONFIG_NOCACHE x-processing-time: - - 435ms + - 497ms status: code: 200 message: OK @@ -283,9 +283,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:03:45 GMT + - Fri, 05 Aug 2022 18:52:52 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -303,25 +303,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 09:03:49 GMT + - Fri, 05 Aug 2022 18:52:57 GMT location: - - /availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 ms-cv: - - 4+/p9ZHROUGooSFwSZzpkA.0 + - aTVy2j0pZE2CpEJ7i+paKQ.0 operation-id: - - search_01ab658d-0aaf-4e23-9bee-34cd875b46d8 + - search_f2e0beea-2d1a-4a25-a519-95de163c9fc0 operation-location: - - /phoneNumbers/operations/search_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + - /phoneNumbers/operations/search_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 search-id: - - 01ab658d-0aaf-4e23-9bee-34cd875b46d8 + - f2e0beea-2d1a-4a25-a519-95de163c9fc0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0covrYgAAAAAUFsXHnDf6QKWmpyEI0RTLWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0BWftYgAAAABfnmuFyyGuRJhdSmQ+MIotWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2847ms + - 3447ms status: code: 202 message: Accepted @@ -335,20 +335,20 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:04:19 GMT + - Fri, 05 Aug 2022 18:53:26 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07", - "createdDateTime": "2022-08-04T09:03:49.1515367+00:00", "id": "search_01ab658d-0aaf-4e23-9bee-34cd875b46d8", + "/availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:52:57.1006511+00:00", "id": "search_f2e0beea-2d1a-4a25-a519-95de163c9fc0", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -358,21 +358,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:04:19 GMT + - Fri, 05 Aug 2022 18:53:27 GMT location: - - /availablePhoneNumbers/searchResults/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 ms-cv: - - rJCf+OvHu0+T52a5yQyVSw.0 + - 44vbfuo8fEC9tIVHWWNckg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0k4vrYgAAAABhIKPdNzYTQpIA5v5N9iviWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0J2ftYgAAAABnb6b5IZx6SYOo4aG0vCbEWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 443ms + - 424ms status: code: 200 message: OK @@ -387,47 +387,47 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:04:19 GMT + - Fri, 05 Aug 2022 18:53:27 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 response: body: - string: '{"searchId": "01ab658d-0aaf-4e23-9bee-34cd875b46d8", "phoneNumbers": - ["+18335192114"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "f2e0beea-2d1a-4a25-a519-95de163c9fc0", "phoneNumbers": + ["+18335969413"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:19:51.5168106+00:00"}' + "2022-08-05T19:08:59.9239377+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:04:20 GMT + - Fri, 05 Aug 2022 18:53:28 GMT ms-cv: - - G3Nn//7FgU67RTTC6VUuxg.0 + - zBYAtkODlk2nczfWs4WUIA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0lIvrYgAAAAA/V80s6MolTqjThpcfgvKuWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0KGftYgAAAADlwZiL0zpcRrA/6eek+qRyWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1163ms + - 1190ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "01ab658d-0aaf-4e23-9bee-34cd875b46d8"}' + body: '{"searchId": "f2e0beea-2d1a-4a25-a519-95de163c9fc0"}' headers: Accept: - application/json @@ -440,11 +440,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:04:20 GMT + - Fri, 05 Aug 2022 18:53:28 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - GItPW+YzJ2kPGMZmo+FOZ8n6eDDng7pZCmwm4ga2jQ0= + - YBH4m29vPZXXVoV41YhmMK3AzfaeIT1HZPW5jSDILbs= x-ms-return-client-request-id: - 'true' method: POST @@ -460,23 +460,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 09:04:22 GMT + - Fri, 05 Aug 2022 18:53:31 GMT ms-cv: - - DQwge1MGzUqQNT2gbWRiPQ.0 + - y3j6OKpghUqvRCF0VJCCWA.0 operation-id: - - purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8 + - purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0 operation-location: - - /phoneNumbers/operations/purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 purchase-id: - - 01ab658d-0aaf-4e23-9bee-34cd875b46d8 + - f2e0beea-2d1a-4a25-a519-95de163c9fc0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0lYvrYgAAAAAnJoTymApPT5EVrww69dWMWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0KWftYgAAAADgSdD+2aHCSLbdafJxadwPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2055ms + - 2448ms status: code: 202 message: Accepted @@ -490,19 +490,19 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:04:53 GMT + - Fri, 05 Aug 2022 18:54:01 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_01ab658d-0aaf-4e23-9bee-34cd875b46d8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T09:03:49.1515367+00:00", "id": "purchase_01ab658d-0aaf-4e23-9bee-34cd875b46d8", + null, "createdDateTime": "2022-08-05T18:52:57.1006511+00:00", "id": "purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -510,19 +510,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:04:54 GMT + - Fri, 05 Aug 2022 18:54:02 GMT ms-cv: - - l0gefiXMBkKbRnffdiLXaQ.0 + - Yq0d6nE4Yki37HHtpAFE3A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0tYvrYgAAAABd+K02y/FLQJbj7aipeObvWVZSMzExMDAwMTE2MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0SWftYgAAAAD8leg6+wr0T7u4aj8OLyAcWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 476ms + - 448ms status: code: 200 message: OK @@ -542,9 +542,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:04:53 GMT + - Fri, 05 Aug 2022 18:54:01 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -559,30 +559,28 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 09:04:57 GMT + - Fri, 05 Aug 2022 18:54:05 GMT location: - - /availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 ms-cv: - - JXry3VjR3EehMZX9rzWt3g.0 + - sdPUXX5j2UusmPTDqy5YgA.0 operation-id: - - search_068d56bc-7495-4161-8ac6-284d05f658a7 + - search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2 operation-location: - - /phoneNumbers/operations/search_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + - /phoneNumbers/operations/search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 search-id: - - 068d56bc-7495-4161-8ac6-284d05f658a7 + - 99db6b79-5d5f-4d1d-960d-b173dfefe3b2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T090454Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bff7 + - 0SmftYgAAAABnJ+TIpFlmTpTK1tCFDPgeWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2518ms + - 2514ms status: code: 202 message: Accepted @@ -596,46 +594,44 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:05:26 GMT + - Fri, 05 Aug 2022 18:54:34 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07", - "createdDateTime": "2022-08-04T09:04:56.7791073+00:00", "id": "search_068d56bc-7495-4161-8ac6-284d05f658a7", + "/availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:54:05.2193549+00:00", "id": "search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2", "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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:05:27 GMT + - Fri, 05 Aug 2022 18:54:35 GMT location: - - /availablePhoneNumbers/searchResults/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 ms-cv: - - TwJW9CI1E02qO7GLrKfKlQ.0 + - KFjFBIMNSUSyNB0NtkFqQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090527Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bsdx + - 0a2ftYgAAAACwKxns6hAgQ5U+Y3PFeUtTWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 443ms + - 345ms status: code: 200 message: OK @@ -650,49 +646,47 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:05:27 GMT + - Fri, 05 Aug 2022 18:54:35 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 response: body: - string: '{"searchId": "068d56bc-7495-4161-8ac6-284d05f658a7", "phoneNumbers": - ["+18442942441"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "99db6b79-5d5f-4d1d-960d-b173dfefe3b2", "phoneNumbers": + ["+18335969407"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:20:59.2696786+00:00"}' + "2022-08-05T19:10:07.6258305+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:05:29 GMT + - Fri, 05 Aug 2022 18:54:36 GMT ms-cv: - - dL+uq47RyEiBm9I4qkzP3g.0 + - 7f/7ALZFU0Gf7EzC4nVTzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090527Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bsm3 + - 0bGftYgAAAAC/j0wFIwkrQ7psPZP/FuvMWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1362ms + - 976ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "068d56bc-7495-4161-8ac6-284d05f658a7"}' + body: '{"searchId": "99db6b79-5d5f-4d1d-960d-b173dfefe3b2"}' headers: Accept: - application/json @@ -705,11 +699,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:05:28 GMT + - Fri, 05 Aug 2022 18:54:36 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 1EYBYjnaf1aLhLMwDKuUSKUGiu+brkQZ1SuPdXh7xnA= + - 2oYm0XAlISQwVY/mxTfqGM7f+bTGb4Pw3PTDlkK2aLw= x-ms-return-client-request-id: - 'true' method: POST @@ -722,28 +716,26 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Thu, 04 Aug 2022 09:05:31 GMT + - Fri, 05 Aug 2022 18:54:38 GMT ms-cv: - - SKz/B3vwWEee4HksMw/8bw.0 + - 9/qCzWPpVEuT9MUgN98Otw.0 operation-id: - - purchase_068d56bc-7495-4161-8ac6-284d05f658a7 + - purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2 operation-location: - - /phoneNumbers/operations/purchase_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 purchase-id: - - 068d56bc-7495-4161-8ac6-284d05f658a7 + - 99db6b79-5d5f-4d1d-960d-b173dfefe3b2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T090529Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002bszy + - 0bWftYgAAAADLv3RJmMaiSJw5vSnTS+O+WVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2161ms + - 1965ms status: code: 202 message: Accepted @@ -757,41 +749,39 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 09:06:01 GMT + - Fri, 05 Aug 2022 18:55:08 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_068d56bc-7495-4161-8ac6-284d05f658a7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T09:04:56.7791073+00:00", "id": "purchase_068d56bc-7495-4161-8ac6-284d05f658a7", + null, "createdDateTime": "2022-08-05T18:54:05.2193549+00:00", "id": "purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:06:02 GMT + - Fri, 05 Aug 2022 18:55:08 GMT ms-cv: - - Ta7RnVwvokGyn1gyIys1xQ.0 + - pIwrbHiEqkCj7P0VvW5hlQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090601Z-91tba13kdd5mrb8h3w91379wbg00000001q000000002c1by + - 0jWftYgAAAABaZaeWjzlISow90Qhlm+fiWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 463ms + - 292ms status: code: 200 message: OK @@ -813,11 +803,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 09:06:01 GMT + - Fri, 05 Aug 2022 18:55:08 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - WIdUlgpcYDLYm2/F7G2Q+3AWXI7O5Jr+/NOV83NAxg4= + - 32Sm4vkYcI2QwiD5CLnxIP0CW2Z9dsKNk47etOwddQw= x-ms-return-client-request-id: - 'true' method: POST @@ -831,24 +821,22 @@ interactions: headers: api-supported-versions: - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 09:06:03 GMT + - Fri, 05 Aug 2022 18:55:10 GMT ms-cv: - - 6VnrPYg+sUyikXDupIsV2g.0 + - cLvazjaMc0WWdZnmsIaB/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T090602Z-afb852g2vh6591nsqudzty20xs00000001q000000002qbuf + - 0jWftYgAAAACgBOHskYEETYJhiP7dxKGNWVZSMzBFREdFMDMwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 320ms + - 558ms 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 1aa49a16ce5..754f6f50ca1 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: - - Thu, 04 Aug 2022 08:53:35 GMT + - Fri, 05 Aug 2022 18:50:19 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:53:40 GMT + - Fri, 05 Aug 2022 18:50:25 GMT location: - - /availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 ms-cv: - - 2878PipW7EixAufRjuHztA.0 + - S4Rs5PFJm0aE3fB0pz+Ilw.0 operation-id: - - search_39d2b921-028a-4dca-8024-7f18e06335f1 + - search_f40b843c-7899-4495-84be-f8b8fd153e5f operation-location: - - /phoneNumbers/operations/search_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + - /phoneNumbers/operations/search_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 search-id: - - 39d2b921-028a-4dca-8024-7f18e06335f1 + - f40b843c-7899-4495-84be-f8b8fd153e5f strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085336Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001z8c8 + - 20220805T185020Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001m5h3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 4131ms + - 4134ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:10 GMT + - Fri, 05 Aug 2022 18:50:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07", - "createdDateTime": "2022-08-04T08:53:40.2316034+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07", + "createdDateTime": "2022-08-05T18:50:24.9359185+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:11 GMT + - Fri, 05 Aug 2022 18:50:56 GMT location: - - /availablePhoneNumbers/searchResults/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 ms-cv: - - AfWQZc3P3kiRZRanLWIZ2A.0 + - qMb6f9UaYE+I1nViXfvISQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085410Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zkeb + - 20220805T185055Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdaz x-cache: - CONFIG_NOCACHE x-processing-time: - - 466ms + - 327ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:10 GMT + - Fri, 05 Aug 2022 18:50:55 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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/39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 response: body: - string: '{"searchId": "39d2b921-028a-4dca-8024-7f18e06335f1", "phoneNumbers": + string: '{"searchId": "f40b843c-7899-4495-84be-f8b8fd153e5f", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-04T09:09:42.8775482+00:00"}' + "2022-08-05T19:06:27.2949590+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:12 GMT + - Fri, 05 Aug 2022 18:50:57 GMT ms-cv: - - UOFHbLvKcUKIiu9oa/GC5A.0 + - FxRjBNoSe0KfV5PCF2k43g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085411Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zkmm + - 20220805T185056Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdg1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1293ms + - 1301ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "39d2b921-028a-4dca-8024-7f18e06335f1"}' + body: '{"searchId": "f40b843c-7899-4495-84be-f8b8fd153e5f"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 04 Aug 2022 08:54:12 GMT + - Fri, 05 Aug 2022 18:50:56 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - X1MRIpxTKz1wmWjOiimm6TbPzk3RjmDk6bUNDr+teyY= + - cyW10eOlSelGv69y4g3cwLvutCSfDcRZ6bRiHm66FRQ= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Thu, 04 Aug 2022 08:54:14 GMT + - Fri, 05 Aug 2022 18:51:00 GMT ms-cv: - - +OZpkI+5jkibtQFelM4h8Q.0 + - JqoCW4rfUU2V83W9oQJEnA.0 operation-id: - - purchase_39d2b921-028a-4dca-8024-7f18e06335f1 + - purchase_f40b843c-7899-4495-84be-f8b8fd153e5f operation-location: - - /phoneNumbers/operations/purchase_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 purchase-id: - - 39d2b921-028a-4dca-8024-7f18e06335f1 + - f40b843c-7899-4495-84be-f8b8fd153e5f strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220804T085412Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zm0g + - 20220805T185057Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdtr x-cache: - CONFIG_NOCACHE x-processing-time: - - 1995ms + - 1996ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:44 GMT + - Fri, 05 Aug 2022 18:51:29 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-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_39d2b921-028a-4dca-8024-7f18e06335f1?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-04T08:53:40.2316034+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-05T18:50:24.9359185+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:45 GMT + - Fri, 05 Aug 2022 18:51:30 GMT ms-cv: - - F4sJ3S1T402tSFVC5jaSVA.0 + - P2ysBWIFM0mdY/Cj2HWrgg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085444Z-kpegq6a2qh4nr419q7tfax5sn400000001r000000001zvtw + - 20220805T185130Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mp3c x-cache: - CONFIG_NOCACHE x-processing-time: - - 696ms + - 358ms status: code: 200 message: OK @@ -278,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Thu, 04 Aug 2022 08:54:45 GMT + - Fri, 05 Aug 2022 18:51:29 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-04T08:54:29.2753114+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-05T18:51:16.3688733+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 04 Aug 2022 08:54:48 GMT + - Fri, 05 Aug 2022 18:51:35 GMT ms-cv: - - GY9mLmxPpEuLK5s/BbhZYg.0 + - VggTwDSdrUSKNJhVb0OsYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220804T085446Z-qtfd0d2efh3zh2gzxzkdhtv16800000001rg00000001wa6q + - 20220805T185131Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002vg000000013h9y x-cache: - CONFIG_NOCACHE x-processing-time: - - 2153ms + - 3758ms 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 8c8b0fa682f..319cbbbb037 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-08-04 20:56:31.307324|2022-08-04 20:58:04.809543| -|step_show|successed||||2022-08-04 20:58:04.809543|2022-08-04 20:58:05.261707| -|step_list|successed||||2022-08-04 20:58:05.261707|2022-08-04 20:58:05.718899| -|step_list2|successed||||2022-08-04 20:58:05.719911|2022-08-04 20:58:06.098533| -|step_update|successed||||2022-08-04 20:58:06.098533|2022-08-04 20:58:07.903817| -|step_link_notification_hub|successed||||2022-08-04 20:58:07.904819|2022-08-04 20:58:08.718079| -|step_list_key|successed||||2022-08-04 20:58:08.719013|2022-08-04 20:58:09.286399| -|step_regenerate_key|successed||||2022-08-04 20:58:09.287384|2022-08-04 20:58:10.174517| -|step_delete|successed||||2022-08-04 20:58:10.175517|2022-08-04 20:59:44.855693| +|step_create|successed||||2022-08-05 18:55:24.271292|2022-08-05 18:55:24.658489| +|step_show|successed||||2022-08-05 18:55:24.658489|2022-08-05 18:55:24.711476| +|step_list|successed||||2022-08-05 18:55:24.711476|2022-08-05 18:55:24.766000| +|step_list2|successed||||2022-08-05 18:55:24.766977|2022-08-05 18:55:24.831889| +|step_update|successed||||2022-08-05 18:55:24.831889|2022-08-05 18:55:24.886446| +|step_link_notification_hub|successed||||2022-08-05 18:55:24.886446|2022-08-05 18:55:24.945352| +|step_list_key|successed||||2022-08-05 18:55:24.946266|2022-08-05 18:55:24.999697| +|step_regenerate_key|successed||||2022-08-05 18:55:24.999697|2022-08-05 18:55:25.053435| +|step_delete|successed||||2022-08-05 18:55:25.053435|2022-08-05 18:55:25.401281| Coverage: 9/9 From 7116c359d5ed5a79b6d885b1fbf83bb52c674aa1 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Mon, 8 Aug 2022 15:43:52 -0700 Subject: [PATCH 15/26] [Communication] update chat and identity tests --- .../azext_communication/manual/custom.py | 1 + .../tests/latest/preparers.py | 24 +- .../recordings/test_chat_add_participant.yaml | 90 ++++-- .../test_chat_add_participant_bad_user.yaml | 84 ++++- ...hat_add_participant_with_display_name.yaml | 90 ++++-- ...hat_add_participant_with_history_time.yaml | 90 ++++-- .../recordings/test_chat_create_thread.yaml | 68 ++++- ...test_chat_create_thread_without_topic.yaml | 56 ++++ .../recordings/test_chat_delete_message.yaml | 86 +++++- .../recordings/test_chat_get_message.yaml | 90 ++++-- .../recordings/test_chat_list_messages.yaml | 98 ++++-- .../test_chat_list_participants.yaml | 80 ++++- ..._chat_list_participants_bad_thread_id.yaml | 62 +++- .../test_chat_list_threads_no_endpoint.yaml | 56 ++++ ...t_chat_list_threads_with_cmdline_auth.yaml | 62 +++- .../test_chat_list_threads_with_env_auth.yaml | 62 +++- .../recordings/test_chat_read_receipts.yaml | 132 +++++--- .../test_chat_remove_participants.yaml | 132 +++++--- .../test_chat_send_html_message.yaml | 80 ++++- .../recordings/test_chat_send_message.yaml | 80 ++++- ...est_chat_send_message_without_content.yaml | 68 ++++- .../test_chat_send_text_message.yaml | 78 ++++- .../recordings/test_chat_update_message.yaml | 86 +++++- .../recordings/test_chat_update_topic.yaml | 76 ++++- .../test_communication_scenario.yaml | 130 ++++---- .../recordings/test_issue_access_token.yaml | 12 +- .../test_issue_access_token_with_id.yaml | 28 +- ...sue_access_token_with_multiple_scopes.yaml | 12 +- .../recordings/test_list_phonenumbers.yaml | 110 +++---- .../recordings/test_revoke_access_tokens.yaml | 20 +- .../latest/recordings/test_send_sms.yaml | 100 +++--- .../test_send_sms_n_recipients.yaml | 288 +++++++++--------- .../recordings/test_show_phonenumbers.yaml | 98 +++--- .../test_communication_chat_scenario.py | 203 ++++++------ .../test_communication_scenario_coverage.md | 18 +- 35 files changed, 2004 insertions(+), 846 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml diff --git a/src/communication/azext_communication/manual/custom.py b/src/communication/azext_communication/manual/custom.py index e3dc1fc18ef..e5107abec6c 100644 --- a/src/communication/azext_communication/manual/custom.py +++ b/src/communication/azext_communication/manual/custom.py @@ -34,6 +34,7 @@ def communication_identity_issue_access_token(client, scopes, user_id=None): def communication_identity_revoke_access_tokens(client, user_id): from azure.communication.identity import CommunicationUserIdentifier + return client.revoke_tokens(CommunicationUserIdentifier(user_id)) diff --git a/src/communication/azext_communication/tests/latest/preparers.py b/src/communication/azext_communication/tests/latest/preparers.py index 2989e38b985..64cb361fff1 100644 --- a/src/communication/azext_communication/tests/latest/preparers.py +++ b/src/communication/azext_communication/tests/latest/preparers.py @@ -50,32 +50,14 @@ def create_resource(self, name, **kwargs): account_key = None endpoint = None - try: - access_token_response = self.live_only_execute(self.cli_ctx, 'az communication identity issue-access-token --scope chat --query [user_id,token]') - res = access_token_response.get_output_in_json() - userid = res[0] - access_token = res[1] - except AttributeError: # live only execute returns None if playing from record - userid = None - access_token = None - self.test_class_instance.kwargs[self.key] = name - # header is encoded form of {"alg":"sanitized","kid":"1","x5t":"sanitized","typ":"sanitized"} - header = 'eyJhbGciOiJzYW5pdGl6ZWQiLCJraWQiOiIxIiwieDV0Ijoic2FuaXRpemVkIiwidHlwIjoic2FuaXRpemVkIn0=' - # payload is encoded form of {"skypeid":"acs:sanitized","scp":1792,"csi":"1657788332","exp":1657874732,"acsScope":"chat","resourceId":"sanitized","iat":1657788332} - payload = 'eyJza3lwZWlkIjoiYWNzOnNhbml0aXplZCIsInNjcCI6MTc5MiwiY3NpIjoiMTY1Nzc4ODMzMiIsImV4cCI6MTY1Nzg3NDczMiwiYWNzU2NvcGUiOiJjaGF0IiwicmVzb3VyY2VJZCI6InNhbml0aXplZCIsImlhdCI6MTY1Nzc4ODMzMn0=' - signature = '1234' - sanitized_token = '{header}.{payload}.{signature}'.format(header=header, payload=payload, signature=signature) return {self.parameter_name: name, - self.parameter_name + '_info': (name, account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake==='), - self.parameter_name + '_chat_info': + self.parameter_name + '_info': (name, - endpoint or 'https://sanitized.communication.azure.com/', - userid or '8:fake===', - access_token or sanitized_token, - account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake===')} + account_key or 'endpoint=https://sanitized.communication.azure.com/;accesskey=fake===', + endpoint or 'https://sanitized.communication.azure.com/', )} def remove_resource(self, name, **kwargs): if not self.skip_delete and not self.dev_setting_name: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml index c05529e2d67..e1ce14087b0 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Fri, 05 Aug 2022 18:38:59 GMT + - Mon, 08 Aug 2022 22:20:57 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:39:00.5934099+00:00"}}' + "expiresOn": "2022-08-09T22:20:58.3288753+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,73 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:00 GMT + - Mon, 08 Aug 2022 22:20:58 GMT ms-cv: - - ITUh2ZWw9UioGfIPI8K3aA.0 + - eb73yOFmJESXUUYyLh7bpg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T183900Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002rg00000002zrvn + - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000055g00000000u8u4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 98ms + - 115ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:20:58 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:20:58.9078171+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: + - Mon, 08 Aug 2022 22:20:59 GMT + ms-cv: + - cw81KCqDXU64xL2ClOryfQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222058Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000frqu + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 119ms status: code: 201 message: Created @@ -69,13 +123,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 34095724-1711-4158-b69a-187ceb5e494f + - eb88ebc4-57c8-4894-9164-7d5653eaab4e method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-05T18:39:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:02 GMT + - Mon, 08 Aug 2022 22:21:00 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A2RUB27Km1q3PoyQ5jfsTpsWLXcgSHgD3TrRQa-P8_Pw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AOlqElfBxa4nDy6BPor4q43CebIGAxN1GX-miek7y2TA1@thread.v2 ms-cv: - - BdNHmTPL+0uZthOZVtY+pQ.0 + - yzmNur2gIkSodm6Jjumicg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183901Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002s000000000vkh0 + - 20220808T222059Z-afb852g2vh6591nsqudzty20xs000000056g00000000n3m9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 798ms + - 921ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-5bec-7f07-113a0d00a4a7"}}}]}' + "8:acs:648db452-6cf0-4f59-b4c5-48df9b6207a7_00000013-1f6d-a896-69ff-9c3a0d00f411"}}}]}' headers: Accept: - application/json @@ -132,19 +186,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:10 GMT + - Mon, 08 Aug 2022 22:21:01 GMT ms-cv: - - LmFrko3DcUaCVns5AsJEnQ.0 + - 78sGbHuVTkS2TGQL1vAzlQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183902Z-nntkv2q0nd3zt4kemgcvznhu2400000002w000000000gqkz + - 20220808T222100Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000005600000000206n4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 236ms + - 160ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml index bbc7f86ec00..93a113e32d7 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:20:57 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:20:58.0890131+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: + - Mon, 08 Aug 2022 22:20:58 GMT + ms-cv: + - Qa3Q89E7YEK4qDcmhEx/Qw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222058Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001tfss + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 121ms + status: + code: 201 + message: Created - request: body: '{"topic": "chat-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - d272db42-7d4c-43f8-bd4d-337ec11e6b94 + - 840eaf0b-092d-4f2f-ba5d-bb64fea9d839 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-05T18:39:00Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:20:58Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:01 GMT + - Mon, 08 Aug 2022 22:20:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AtN9pzmjbOY64J43Xz5GOA83YUIBu9aVcXTNk4Xpth5E1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A9gvdOV5cxRSOmdfRaI980k2LWJYJxfc9oQlqIoya3_M1@thread.v2 ms-cv: - - FMqdF251EE26pFYFl7Qfow.0 + - XnnJO0Ubn0WMmPqMXj6xZg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183900Z-kpegq6a2qh4nr419q7tfax5sn400000002u00000000024uw + - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000055g00000000u8x9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 552ms + - 702ms status: code: 201 message: Created @@ -79,19 +133,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:02 GMT + - Mon, 08 Aug 2022 22:21:00 GMT ms-cv: - - 3f34arucKkS0eMj+obst1A.0 + - +CLq0cFgCEGpgZwQ6hVV5Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183901Z-q1z3stmybd47948vv0qhv9299w00000002ug0000000014uk + - 20220808T222059Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000023kx0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 220ms status: code: 201 message: Created @@ -125,19 +179,19 @@ interactions: content-type: - application/json date: - - Fri, 05 Aug 2022 18:39:02 GMT + - Mon, 08 Aug 2022 22:21:00 GMT ms-cv: - - D3Az1cuX4UmiAvvFcORfzQ.0 + - zMSk3JlGD0Wik37aD/YA9g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183902Z-q1z3stmybd47948vv0qhv9299w00000002vg00000000078d + - 20220808T222100Z-tur6dybg817yr054hm9efewep800000004eg000000024327 x-cache: - CONFIG_NOCACHE x-processing-time: - - 10ms + - 57ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml index 6e76826f72d..e1de5214412 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:20:57 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:20:58.410046+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: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 08 Aug 2022 22:20:58 GMT + ms-cv: + - pbIO7fc4FkaMCL0g/Qjx6Q.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001ss77 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 110ms + status: + code: 201 + message: Created - request: body: '{"topic": "chat-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - da70a822-1657-491b-b587-b88a57b81d48 + - 3bac1894-e43f-49d7-9cc0-a9ba60b8e532 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-05T18:39:01Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:01 GMT + - Mon, 08 Aug 2022 22:20:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASVwwSALW7hVl3JFVNoCDV6tmWF6WrJ_bawAWheHfeII1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AtsDwQU1hLhhnF5vKtSqDD4dC4k8uASpBnnclhEmAqrM1@thread.v2 ms-cv: - - B8ZlGuNj6ki3PbvtpcB3LA.0 + - 0OvQDM6JdUGojbnKIBid2Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183901Z-1ykan7zabt1sxfcs379b67eye800000000ug00000000r87h + - 20220808T222058Z-afb852g2vh6591nsqudzty20xs0000000580000000003xdv x-cache: - CONFIG_NOCACHE x-processing-time: - - 577ms + - 651ms status: code: 201 message: Created @@ -67,7 +121,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Fri, 05 Aug 2022 18:39:01 GMT + - Mon, 08 Aug 2022 22:20:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,7 +129,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:39:02.1844182+00:00"}}' + "expiresOn": "2022-08-09T22:21:00.2173573+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -87,25 +141,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:02 GMT + - Mon, 08 Aug 2022 22:21:00 GMT ms-cv: - - N1wXM2ZTfUqSFslSNVU5jg.0 + - vr/iumFwSE2o0PdI5aUHLw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T183902Z-1ykan7zabt1sxfcs379b67eye800000000u000000000wt40 + - 20220808T222059Z-qtfd0d2efh3zh2gzxzkdhtv168000000054g00000001tksx x-cache: - CONFIG_NOCACHE x-processing-time: - - 108ms + - 113ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-6220-290c-113a0d00992b"}}, + "8:acs:a975c1aa-8997-4d07-a29d-bcd72f8b8903_00000013-1f6d-adb3-9806-113a0d00f911"}}, "displayName": "John Doe"}]}' headers: Accept: @@ -133,19 +187,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:03 GMT + - Mon, 08 Aug 2022 22:21:00 GMT ms-cv: - - SWiFD1WUPUi3OlT1dLZmUw.0 + - UF8YIxkE4Eq0CE2wHta5+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183902Z-tur6dybg817yr054hm9efewep8000000023000000001cb0y + - 20220808T222100Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001tgnu x-cache: - CONFIG_NOCACHE x-processing-time: - - 308ms + - 168ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml index 71e11e1471e..dd851f248d3 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:20:57 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:20:58.3819296+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: + - Mon, 08 Aug 2022 22:20:58 GMT + ms-cv: + - GzAEuKxL/kWJh2BnIw3Mtg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222058Z-tur6dybg817yr054hm9efewep800000004e000000002sd96 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created - request: body: '{"topic": "chat-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 87e8466e-ff1b-408a-8698-5d8ddc3e2ad8 + - 721c36a2-3a09-4b6d-a79b-9677a93fe6db method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-05T18:39:00Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:01 GMT + - Mon, 08 Aug 2022 22:20:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A3UlIjwqqLUWp0TSF4taGLROVMyWgxneieSPZ3ztFjGY1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A3LHqAYg1zhBaqvAVDwtSdm7TqkSdthorDuQKp-f31tE1@thread.v2 ms-cv: - - OhKmaVpi5EWUE7RbBlpqew.0 + - wKI+SV2D7UqNqE80YoNm0Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183900Z-4wf38k6bv57vh8d4wkrqw24dx000000000ug00000001uqrt + - 20220808T222058Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000023kp8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 623ms + - 600ms status: code: 201 message: Created @@ -67,7 +121,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Fri, 05 Aug 2022 18:39:00 GMT + - Mon, 08 Aug 2022 22:20:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,7 +129,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:39:01.7519765+00:00"}}' + "expiresOn": "2022-08-09T22:21:00.1707202+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -87,25 +141,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:01 GMT + - Mon, 08 Aug 2022 22:21:00 GMT ms-cv: - - lBXPStDFek2GQv6lViXaQg.0 + - WWZB1At6VUWyye5DQFLbqw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T183901Z-nntkv2q0nd3zt4kemgcvznhu2400000002u000000002cza6 + - 20220808T222059Z-afb852g2vh6591nsqudzty20xs000000057g0000000076nt x-cache: - CONFIG_NOCACHE x-processing-time: - - 98ms + - 113ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f2f-6073-69ff-9c3a0d009dce"}}, + "8:acs:257d3a6a-4a24-4368-b0ae-bf1e798c54d0_00000013-1f6d-ad85-3dfe-9c3a0d00f29c"}}, "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' headers: Accept: @@ -133,19 +187,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:39:02 GMT + - Mon, 08 Aug 2022 22:21:01 GMT ms-cv: - - WFBPRN32p0G+CnmTZEmScg.0 + - EO9kQOHU9UODO8aUM0WUDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T183902Z-4wf38k6bv57vh8d4wkrqw24dx000000000ug00000001ur8s + - 20220808T222100Z-kpegq6a2qh4nr419q7tfax5sn4000000056000000000h8h4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 309ms + - 352ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index 88f7f737e3f..a3d2dcf21ae 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:22:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:22:36.2626723+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: + - Mon, 08 Aug 2022 22:22:36 GMT + ms-cv: + - bCQxvX7iTkutk2guW8sulw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222235Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000024m1t + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 117ms + status: + code: 201 + message: Created - request: body: '{"topic": "some-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - dedbd9ae-26a0-42be-b0ce-93399d33e432 + - 59bfb76e-51c1-4647-b58a-ea1b7a00c269 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-05T18:40:45Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:22:36Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:46 GMT + - Mon, 08 Aug 2022 22:22:37 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AuF952eWjCy5sy9IZZJ77h7kU4i2X-isoMt0a95F7aZQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A6qb38npfPAHcYf4v7s5Rj_bpT5fsJ3vWFPTtvbFTxZs1@thread.v2 ms-cv: - - o5YfYdNPzkqM64Myz34gDQ.0 + - tRcrnbO5IEey1mxhm0CGDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184045Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001v3hb + - 20220808T222236Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001tmgq x-cache: - CONFIG_NOCACHE x-processing-time: - - 514ms + - 712ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml new file mode 100644 index 00000000000..f12740b8e1d --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml @@ -0,0 +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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:22:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:22:36.291509+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: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 08 Aug 2022 22:22:36 GMT + ms-cv: + - XSG1bX8jX06kRl0GMEUsBA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222235Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000058000000000xv8m + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 115ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 5779b7b9562..294d9e6ed51 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:22:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:22:36.3096812+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: + - Mon, 08 Aug 2022 22:22:36 GMT + ms-cv: + - mEyRZ3mDg0CowtgilmdVjw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222235Z-tur6dybg817yr054hm9efewep800000004fg000000013n3d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 115ms + status: + code: 201 + message: Created - request: body: '{"topic": "some-other-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - a1983494-8278-4256-9c93-33cc39cd3a40 + - b400e577-3772-4c59-aaf2-928286577e91 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-05T18:40:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:22:36Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:39 GMT + - Mon, 08 Aug 2022 22:22:37 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ABzbt8B_F4_7qqC2TzYEvyicyr4ON3VW5AN0tikwo9m01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AdYvPEIhs5JGSn6ZmzOWnxiaSi3uPbSQdNxmq3Urmkg41@thread.v2 ms-cv: - - YhGVm/2b902NLIMwokwbiw.0 + - Z88Oo5O+kEqlZe78bCXu7Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184039Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002sg000000008mwt + - 20220808T222236Z-afb852g2vh6591nsqudzty20xs000000057000000000dz2a x-cache: - CONFIG_NOCACHE x-processing-time: - - 458ms + - 636ms status: code: 201 message: Created @@ -77,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:40 GMT + - Mon, 08 Aug 2022 22:22:38 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ABzbt8B_F4_7qqC2TzYEvyicyr4ON3VW5AN0tikwo9m01@thread.v2/messages/1659724840355 + - https://clitest000002.communication.azure.com/chat/threads/19%3AdYvPEIhs5JGSn6ZmzOWnxiaSi3uPbSQdNxmq3Urmkg41@thread.v2/messages/1659997357995 ms-cv: - - xU0NvozrKkKAX1p7waO0wQ.0 + - aenEGuPX+EaRJmWVs/KUsw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184040Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002rg00000001xebf + - 20220808T222237Z-q1z3stmybd47948vv0qhv9299w000000056g00000000crv0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 223ms + - 230ms status: code: 201 message: Created @@ -121,17 +175,17 @@ interactions: connection: - keep-alive date: - - Fri, 05 Aug 2022 18:40:41 GMT + - Mon, 08 Aug 2022 22:22:38 GMT ms-cv: - - yCNhAMzyBECVMg4uV+qcpA.0 + - WTFrP62nrUi43WvFHfv6fA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184040Z-q1z3stmybd47948vv0qhv9299w00000002w000000000052n + - 20220808T222238Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001tn1s x-cache: - CONFIG_NOCACHE x-processing-time: - - 317ms + - 334ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index 8deb17020e2..0cd626097f7 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:22:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:22:36.6187256+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: + - Mon, 08 Aug 2022 22:22:36 GMT + ms-cv: + - LjiImZp8ZkKZUmxwk+mu1Q.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222236Z-kpegq6a2qh4nr419q7tfax5sn4000000055g00000000zudv + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 114ms + status: + code: 201 + message: Created - request: body: '{"topic": "new-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - d28fd1db-826e-43c6-95a9-29a66c613fac + - c9a23501-04ab-432e-95d7-177b30345e5f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-05T18:40:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:22:37Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:39 GMT + - Mon, 08 Aug 2022 22:22:37 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ApcQHLwV4v1Zrb4LIrprhcUA2N3kCDJ_Qx7k9QBhwAlM1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AhQ7bwVTGDHgwIktEr4cpg-bw6QidkbtYmBGB7Chf8Bs1@thread.v2 ms-cv: - - RvgcA2MbZ0u3YyWXXc8uCg.0 + - fqFIV2gxbU+rYJEcrI3Vtw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184039Z-qtfd0d2efh3zh2gzxzkdhtv16800000002v0000000001vde + - 20220808T222236Z-91tba13kdd5mrb8h3w91379wbg000000056000000000fm1u x-cache: - CONFIG_NOCACHE x-processing-time: - - 481ms + - 596ms status: code: 201 message: Created @@ -77,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:40 GMT + - Mon, 08 Aug 2022 22:22:38 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ApcQHLwV4v1Zrb4LIrprhcUA2N3kCDJ_Qx7k9QBhwAlM1@thread.v2/messages/1659724840475 + - https://clitest000002.communication.azure.com/chat/threads/19%3AhQ7bwVTGDHgwIktEr4cpg-bw6QidkbtYmBGB7Chf8Bs1@thread.v2/messages/1659997358363 ms-cv: - - g67bCyN1FEuTQ0Vk0tf70Q.0 + - XNsOyAv7GkiI+u1xnJjD5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184040Z-nntkv2q0nd3zt4kemgcvznhu2400000002vg000000011zx6 + - 20220808T222238Z-q1z3stmybd47948vv0qhv9299w000000056g00000000crwy x-cache: - CONFIG_NOCACHE x-processing-time: - - 132ms + - 152ms status: code: 201 message: Created @@ -110,8 +164,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659724840475", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-05T18:40:40Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659997358363", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-08T22:22:38Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -122,19 +176,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:40:41 GMT + - Mon, 08 Aug 2022 22:22:39 GMT ms-cv: - - J7NDWOkhjUOjYhVPu5TmfQ.0 + - 6dCQVg8PE0WsUweeuxg+JQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184040Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000002t4n + - 20220808T222238Z-nntkv2q0nd3zt4kemgcvznhu24000000058000000000xqze x-cache: - CONFIG_NOCACHE x-processing-time: - - 191ms + - 88ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index 58afdf706ac..e8ffc4543c5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:24:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:24:12.5111707+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: + - Mon, 08 Aug 2022 22:24:12 GMT + ms-cv: + - 3jEeqf4S/E+Jq3HFCqyjGw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222412Z-kpegq6a2qh4nr419q7tfax5sn4000000055000000001hcwn + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 115ms + status: + code: 201 + message: Created - request: body: '{"topic": "another-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 11bf3b08-7905-4e13-9670-c58a3cb8dacc + - 9f0255de-7ce6-4760-b927-3dfda6fcb620 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-05T18:42:15Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:24:13Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:42:15 GMT + - Mon, 08 Aug 2022 22:24:13 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A-Lb8zV1yXo3xZnzdMabHwmAsU3kJzEJiS8IhwiWrQc81@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A2TLYnsWNIN6_6bkXI1Gv5GyX17GWVLVeFh0jW4oScY81@thread.v2 ms-cv: - - AWtEv1piIk6zfihT4wtD/Q.0 + - L8C3iZZ6REuS8+QoKfG0tg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184214Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002u000000001smam + - 20220808T222412Z-afb852g2vh6591nsqudzty20xs000000056000000001085n x-cache: - CONFIG_NOCACHE x-processing-time: - - 642ms + - 636ms status: code: 201 message: Created @@ -64,18 +118,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659724935443", "type": "topicUpdated", "sequenceId": - "2", "version": "1659724935443", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}}, - "createdOn": "2022-08-05T18:42:15Z"}, {"id": "1659724935376", "type": "participantAdded", - "sequenceId": "1", "version": "1659724935376", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}, + string: '{"value": [{"id": "1659997453520", "type": "topicUpdated", "sequenceId": + "2", "version": "1659997453520", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", + "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}}, + "createdOn": "2022-08-08T22:24:13Z"}, {"id": "1659997453439", "type": "participantAdded", + "sequenceId": "1", "version": "1659997453439", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", + "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f32-50e7-3dfe-9c3a0d009e7e"}}}, - "createdOn": "2022-08-05T18:42:15Z"}]}' + {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", + "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}}, + "createdOn": "2022-08-08T22:24:13Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -84,19 +138,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:42:16 GMT + - Mon, 08 Aug 2022 22:24:14 GMT ms-cv: - - aqJedavSTkKsDw31VURziQ.0 + - EZJb+N1XXUydCAjO5vXz7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184215Z-tur6dybg817yr054hm9efewep8000000025g0000000003c4 + - 20220808T222414Z-4wf38k6bv57vh8d4wkrqw24dx0000000038g00000000ktc9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 98ms + - 94ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index 308c1fbd47d..e9c637ef469 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:25:49 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:25:49.9241774+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: + - Mon, 08 Aug 2022 22:25:50 GMT + ms-cv: + - b/wFgmm2GUezFQcXI0KJ+Q.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222549Z-q1z3stmybd47948vv0qhv9299w000000055g000000015bru + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 119ms + status: + code: 201 + message: Created - request: body: '{"topic": "some-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 23d976cf-2446-4bb3-9a61-43a3494f30d2 + - 5c6019a6-4f13-4a44-b49b-a5848b786ed5 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-05T18:43:52Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:25:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:43:53 GMT + - Mon, 08 Aug 2022 22:25:51 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ATH4JSQy-8Y1l6XRpxtan2n6QtNwVj1YLjw7uKDFC4kA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AG6_QXTgLPsd1UKOJ33A7SB0-O76jMG3BFZDfnCFraa41@thread.v2 ms-cv: - - amLhbRZqJk655AUp3x5x/w.0 + - fhRP135COkuf9vq8KxsdCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184352Z-tur6dybg817yr054hm9efewep800000002200000000263z3 + - 20220808T222550Z-afb852g2vh6591nsqudzty20xs000000057000000000fq33 x-cache: - CONFIG_NOCACHE x-processing-time: - - 868ms + - 592ms status: code: 201 message: Created @@ -64,8 +118,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-cdcd-0cf9-9c3a0d0093b7", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-cdcd-0cf9-9c3a0d0093b7"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:497b0010-29c8-49d9-9886-c1967ac9ee11_00000013-1f72-195f-9ffb-9c3a0d00d5a5", + "communicationUser": {"id": "8:acs:497b0010-29c8-49d9-9886-c1967ac9ee11_00000013-1f72-195f-9ffb-9c3a0d00d5a5"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -75,19 +129,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:43:54 GMT + - Mon, 08 Aug 2022 22:25:51 GMT ms-cv: - - 5kX6f8kglEuUdGX97NUzUA.0 + - BPaRlIFllE2cbuIHPr/s4g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184353Z-kpegq6a2qh4nr419q7tfax5sn400000002u0000000004zff + - 20220808T222551Z-tur6dybg817yr054hm9efewep800000004eg0000000277tf x-cache: - CONFIG_NOCACHE x-processing-time: - - 91ms + - 84ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index e7636c70880..f8daa6bdc3f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:24:13 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:24:14.437718+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: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 08 Aug 2022 22:24:14 GMT + ms-cv: + - 7ivSNf9DF0iNyKMxIfAzIQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222414Z-nntkv2q0nd3zt4kemgcvznhu24000000057g00000001a7up + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 127ms + status: + code: 201 + message: Created - request: body: null headers: @@ -23,19 +77,19 @@ interactions: content-type: - application/json date: - - Fri, 05 Aug 2022 18:42:17 GMT + - Mon, 08 Aug 2022 22:24:15 GMT ms-cv: - - vgtTowfjeUyR7To3m67a3w.0 + - BvDt5HrKxEmBJVZr7zqKqw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184217Z-1ykan7zabt1sxfcs379b67eye800000000u000000000yxph + - 20220808T222414Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000056g00000001rwqq x-cache: - CONFIG_NOCACHE x-processing-time: - - 496ms + - 218ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml new file mode 100644 index 00000000000..cae96f40391 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml @@ -0,0 +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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:24:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:24:12.7838836+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: + - Mon, 08 Aug 2022 22:24:12 GMT + ms-cv: + - dlF+ebH7IkWOrSbJnqNcAw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222412Z-uc7yrm58kd5cb2tk4u9cfe74aw000000057g00000001tfwp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 144ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index 440fe48d486..428dc845038 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:25:47 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:25:48.4394576+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: + - Mon, 08 Aug 2022 22:25:48 GMT + ms-cv: + - Jg9TGd54TEemT1NrOZo87w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222548Z-tur6dybg817yr054hm9efewep800000004fg000000014w67 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 113ms + status: + code: 201 + message: Created - request: body: null headers: @@ -23,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:43:53 GMT + - Mon, 08 Aug 2022 22:25:49 GMT ms-cv: - - V+sD3kd/U0CfwgfDbyn2yQ.0 + - ZQCxGztluEGS/gcaWQNo3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184353Z-q1z3stmybd47948vv0qhv9299w00000002u0000000005dse + - 20220808T222548Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001czsn x-cache: - CONFIG_NOCACHE x-processing-time: - - 73ms + - 87ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index 4bee3545acd..bc4e46710dc 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:25:49 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:25:49.9208646+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: + - Mon, 08 Aug 2022 22:25:50 GMT + ms-cv: + - G+Qly9swtE6iEz4rSO7wfQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222549Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001wzys + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 121ms + status: + code: 201 + message: Created - request: body: null headers: @@ -23,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:43:52 GMT + - Mon, 08 Aug 2022 22:25:50 GMT ms-cv: - - fFXyF4TYMU6qRT8V8ESy9A.0 + - s2+ZU0Cuhk6A4nRX3R54Xw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184352Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000004k25 + - 20220808T222550Z-1ykan7zabt1sxfcs379b67eye8000000037g00000000dkb0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 76ms + - 19ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index 7ecad5e3095..ef81785fa58 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:25:48 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:25:49.4420099+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: + - Mon, 08 Aug 2022 22:25:49 GMT + ms-cv: + - Zbjmvr0qtEWjkcWQ7f50Iw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222549Z-afb852g2vh6591nsqudzty20xs000000056000000001195d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 120ms + status: + code: 201 + message: Created - request: body: '{"topic": "thread-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - c1d11c56-5688-4734-8ba7-3bcb7421fb29 + - 2f633236-5577-4ad6-8659-0f2d82fbe862 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-05T18:43:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:25:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:43:59 GMT + - Mon, 08 Aug 2022 22:25:50 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AzE30qJp6Gni6yIjF7mWvFvLUWQBRjOffU8wXG2by37A1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASVy-d1J316jFnvtQe_cVaJ6SLcQl0Y8xunMNbWxENMM1@thread.v2 ms-cv: - - u4sjU3JpG0upNdin9riFiQ.0 + - VcFIgfhl60uCU21n5vXi4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184358Z-qtfd0d2efh3zh2gzxzkdhtv16800000002u00000000067k1 + - 20220808T222549Z-1ykan7zabt1sxfcs379b67eye8000000039g000000000zsz x-cache: - CONFIG_NOCACHE x-processing-time: - - 470ms + - 709ms status: code: 201 message: Created @@ -73,19 +127,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:44:00 GMT + - Mon, 08 Aug 2022 22:25:51 GMT ms-cv: - - eTSeKmgFBUGT16KSmopHfg.0 + - 9YrMLw/MJU+humfS/mlgxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184359Z-4wf38k6bv57vh8d4wkrqw24dx000000000v000000001dwp7 + - 20220808T222550Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000057000000001g7qg x-cache: - CONFIG_NOCACHE x-processing-time: - - 90ms + - 82ms status: code: 200 message: OK @@ -104,18 +158,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659725039297", "type": "topicUpdated", "sequenceId": - "2", "version": "1659725039297", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}}, - "createdOn": "2022-08-05T18:43:59Z"}, {"id": "1659725039274", "type": "participantAdded", - "sequenceId": "1", "version": "1659725039274", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}, + string: '{"value": [{"id": "1659997550500", "type": "topicUpdated", "sequenceId": + "2", "version": "1659997550500", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", + "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}}, + "createdOn": "2022-08-08T22:25:50Z"}, {"id": "1659997550475", "type": "participantAdded", + "sequenceId": "1", "version": "1659997550475", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", + "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}}, - "createdOn": "2022-08-05T18:43:59Z"}]}' + {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", + "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}}, + "createdOn": "2022-08-08T22:25:50Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -124,24 +178,24 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:44:00 GMT + - Mon, 08 Aug 2022 22:25:51 GMT ms-cv: - - YMe4vUvSh0CWOyOAkX8O8g.0 + - dmzOrNOZ/kCDASY6DiqrSg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184400Z-q1z3stmybd47948vv0qhv9299w00000002w0000000000eb3 + - 20220808T222551Z-1ykan7zabt1sxfcs379b67eye8000000037g00000000dkmh x-cache: - CONFIG_NOCACHE x-processing-time: - - 89ms + - 157ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1659725039297"}' + body: '{"chatMessageId": "1659997550500"}' headers: Accept: - application/json @@ -170,17 +224,17 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:44:01 GMT + - Mon, 08 Aug 2022 22:25:52 GMT ms-cv: - - 6GEh1f3CMkmEK7hcokkwFA.0 + - AcFjkvkhg0yFproQmyhxFA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184401Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000004nss + - 20220808T222552Z-91tba13kdd5mrb8h3w91379wbg000000056000000000gy47 x-cache: - CONFIG_NOCACHE x-processing-time: - - 224ms + - 113ms status: code: 200 message: OK @@ -199,30 +253,28 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136", - "communicationUser": {"id": "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f33-e718-9806-113a0d00a136"}}, - "chatMessageId": "1659725039297", "readOn": "2022-08-05T18:44:01Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", + "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}, + "chatMessageId": "1659997550500", "readOn": "2022-08-08T22:25:52Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:44:02 GMT + - Mon, 08 Aug 2022 22:25:52 GMT ms-cv: - - 6WONVvWFlUWngEbI0AdB2g.0 + - VTf7JReOfUuBhqtN8PQFfg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184401Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001x0ea + - 0cI3xYgAAAACZBdkzXWx4QpPco04GMlcLWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 124ms + - 148ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index 0f03e9bff5d..04bfb9f1098 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Fri, 05 Aug 2022 18:45:28 GMT + - Mon, 08 Aug 2022 22:27:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:45:29.4384305+00:00"}}' + "expiresOn": "2022-08-09T22:27:24.7027108+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,73 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:29 GMT + - Mon, 08 Aug 2022 22:27:24 GMT ms-cv: - - FfG/8wcIukqxjyQXjr3YFg.0 + - Lm69KOPffkqZ13jelI0XJw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184529Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002bekm + - 20220808T222724Z-kpegq6a2qh4nr419q7tfax5sn40000000570000000003y3w x-cache: - CONFIG_NOCACHE x-processing-time: - - 97ms + - 113ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:27:24 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:27:25.4953743+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: + - Mon, 08 Aug 2022 22:27:25 GMT + ms-cv: + - swdaH8yQFk2behlgC2VvVA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222725Z-q1z3stmybd47948vv0qhv9299w000000055000000001tadx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 128ms status: code: 201 message: Created @@ -69,13 +123,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 0f5d35db-cd2a-4ff8-b802-667cccb1ba2c + - 449ca962-4751-46d8-a0b4-0b8ce2120263 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-05T18:45:30Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:27:26Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:30 GMT + - Mon, 08 Aug 2022 22:27:26 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AihwKtIyLKl-1SsHSPa1GKJM16u4etjemNCujVLOm0601@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AvuG9eXvSh39mwYCzmBTbA3GKffUCCNvxrhrxXjneuKg1@thread.v2 ms-cv: - - i/PvZJ1OQ0296nQn39aTsw.0 + - j9rvYgPUGEaZlRZ6OgsPBw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184529Z-qtfd0d2efh3zh2gzxzkdhtv16800000002w0000000000vgy + - 20220808T222725Z-1ykan7zabt1sxfcs379b67eye8000000037000000000h350 x-cache: - CONFIG_NOCACHE x-processing-time: - - 415ms + - 605ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:0f59b30a-421f-4769-bca0-70396a952e80_00000013-0f35-4ad9-290c-113a0d00998f"}}}]}' + "8:acs:c4ed01aa-cb5c-4b0c-8397-93e824f97877_00000013-1f73-8eb2-0cf9-9c3a0d00d291"}}}]}' headers: Accept: - application/json @@ -127,24 +181,22 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:31 GMT + - Mon, 08 Aug 2022 22:27:26 GMT ms-cv: - - g1//kAaucEKoYB3qOWqEhw.0 + - Rr7NqLLDtESw/r2XKBvKbQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184530Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002u0000000029y4r + - 0zo3xYgAAAAB2EtU0nPhbQ5yrrbNbEPZ+WVZSMzBFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 267ms + - 216ms status: code: 201 message: Created @@ -171,20 +223,18 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive date: - - Fri, 05 Aug 2022 18:45:32 GMT + - Mon, 08 Aug 2022 22:27:27 GMT ms-cv: - - S2+aR3aXEUOQtBGxhzy5tw.0 + - gVTnDfhLCUWB2rGThgcUKw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184531Z-q1z3stmybd47948vv0qhv9299w00000002vg000000001w3z + - 0z43xYgAAAACvxiSrBwIrSKaoQ3T38rGJWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 343ms + - 288ms status: code: 204 message: No Content @@ -212,24 +262,22 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json date: - - Fri, 05 Aug 2022 18:45:32 GMT + - Mon, 08 Aug 2022 22:27:27 GMT ms-cv: - - LRxSk39qwU6YFZmKxx6xLg.0 + - eUoz/luzC0+M/IUQMAXuow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184532Z-tur6dybg817yr054hm9efewep8000000023000000001fbe1 + - 00I3xYgAAAAB7FHPL3QN7RKN3QBfsRgm5WVZSMzExMDAwMTE1MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2ms + - 23ms status: code: 400 message: Bad Request @@ -256,20 +304,18 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive date: - - Fri, 05 Aug 2022 18:45:33 GMT + - Mon, 08 Aug 2022 22:27:27 GMT ms-cv: - - QojtB/pYuE2jUfo8qx+DXw.0 + - 8MabvnyqokWlPg+sl/p/jg.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184532Z-91tba13kdd5mrb8h3w91379wbg00000002tg000000002245 + - 00I3xYgAAAAAZr3QLdpsCSLqlav8g7PkPWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 96ms + - 299ms status: code: 204 message: No Content @@ -298,24 +344,22 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json date: - - Fri, 05 Aug 2022 18:45:33 GMT + - Mon, 08 Aug 2022 22:27:28 GMT ms-cv: - - tKbjFBEjVkyodwEk4/uMdQ.0 + - nc9bVTdDsEeGGfJc+40cWA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184533Z-tur6dybg817yr054hm9efewep8000000022g00000001v9bu + - 00I3xYgAAAAArjkUbTxxwSqX994DLudmjWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 137ms + - 53ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index d1d87108233..4c0a38d6d79 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -1,4 +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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:27:27 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:27:28.0276328+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 08 Aug 2022 22:27:27 GMT + ms-cv: + - rbQkHd2PPE6WNWoWTfsV3A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0z43xYgAAAACUCK1WB/v8QJ7RBPLp0/ZtWVZSMzExMDAwMTE1MDUxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 113ms + status: + code: 201 + message: Created - request: body: '{"topic": "yet-another-topic", "participants": []}' headers: @@ -15,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 5606e312-1d9e-4cfc-b946-21a37f5b7b72 + - 7ec96aaf-88f0-434f-8b02-644f8e18e033 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-05T18:45:29Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:27:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:30 GMT + - Mon, 08 Aug 2022 22:27:28 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ADZMKgIPm4MlNVd4vcQwqOT3pSZeMm1TTvDrCzr9xaxo1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AlbQgYo8P9E-EBUNLfeICWgUL92k-qBhh_W4kJp4V3NM1@thread.v2 ms-cv: - - NRmpwLq5wUma4ZesXQHmNg.0 + - qbOxzKfIqEakuw/gf8HHng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184529Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002ug00000001nnvr + - 00I3xYgAAAADEqP4ijK5bSqba7maEZciQWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 280ms + - 633ms status: code: 201 message: Created @@ -72,26 +122,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:30 GMT + - Mon, 08 Aug 2022 22:27:29 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ADZMKgIPm4MlNVd4vcQwqOT3pSZeMm1TTvDrCzr9xaxo1@thread.v2/messages/1659725130693 + - https://clitest000002.communication.azure.com/chat/threads/19%3AlbQgYo8P9E-EBUNLfeICWgUL92k-qBhh_W4kJp4V3NM1@thread.v2/messages/1659997649619 ms-cv: - - JqHbnkuxqUy7EDa0w68KXA.0 + - ffXb/fNUn0G69c+Q5Kog6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184530Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001xwe3 + - 00Y3xYgAAAAD8/SBiaWPjQ4fX2Cw5c12ZWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 179ms + - 107ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index f60b5130970..e703add7d1b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -1,4 +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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:27:26 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:27:27.3265214+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 08 Aug 2022 22:27:27 GMT + ms-cv: + - nTkyrp1OXUqjZB6XJrVTLg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0zo3xYgAAAABNdPI+pumXRL7AW2R9WknZWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 135ms + status: + code: 201 + message: Created - request: body: '{"topic": "some-other-topic", "participants": []}' headers: @@ -15,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - bfe55a8b-d46f-4fb6-ae17-b5e25503a5c3 + - 12d79056-7273-4aee-9ef8-f7ae29a21708 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-05T18:45:30Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:27:27Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:30 GMT + - Mon, 08 Aug 2022 22:27:27 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASaJgkPpJzKHCormn4K_UWysH-V5dih1wolEhQQXq2hg1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Alu1rM3x0esJBeB6KLZcLt9jPEeOKBd9NuB_qZ3EWMX81@thread.v2 ms-cv: - - GjH0rnFVa0Ony+Q06EBAyA.0 + - nSy1JBjTG0u2OIpYTFutRg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184530Z-1ykan7zabt1sxfcs379b67eye800000000ug00000000umay + - 0z43xYgAAAABfYh25X2GWT79/MHKqeMsMWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 507ms + - 775ms status: code: 201 message: Created @@ -72,26 +122,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:31 GMT + - Mon, 08 Aug 2022 22:27:29 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASaJgkPpJzKHCormn4K_UWysH-V5dih1wolEhQQXq2hg1@thread.v2/messages/1659725131330 + - https://clitest000002.communication.azure.com/chat/threads/19%3Alu1rM3x0esJBeB6KLZcLt9jPEeOKBd9NuB_qZ3EWMX81@thread.v2/messages/1659997649124 ms-cv: - - /SMmaosDU0CbruCBj3qu+g.0 + - d0yWu6brmUSEXLBpoP57KQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184531Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000000925 + - 00I3xYgAAAABXc4fTqVzaSamCeNKkKKTCWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 124ms + - 160ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index 2eb4da11af7..1002d6b4b24 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:27:25 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:27:26.0535425+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: + - Mon, 08 Aug 2022 22:27:26 GMT + ms-cv: + - SkoGxjenQUCZKA8zXv80kA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222725Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000059000000000ga09 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 124ms + status: + code: 201 + message: Created - request: body: '{"topic": "yet-another-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 5bc2dcef-299a-4215-8945-2c6ca4e6a447 + - d537c0bb-9a10-43eb-8888-c0125526660a method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-05T18:45:39Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:27:26Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:45:40 GMT + - Mon, 08 Aug 2022 22:27:27 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AUu3jv4_XvuFkKFH4A6IYl9TrntMd9qpyOhLIHjwGL9A1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ARArxleM3ItyRIvyunKIWyFVG8ttIkDikFFkmPGwgU141@thread.v2 ms-cv: - - r9exP1WQM0aKXDtUM0Q2ZQ.0 + - E8GeMG6KqE67qS//nk5orw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184539Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002ug00000001nr8u + - 20220808T222726Z-91tba13kdd5mrb8h3w91379wbg000000056g000000009ywc x-cache: - CONFIG_NOCACHE x-processing-time: - - 922ms + - 612ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index 99cedad60fd..19c13ffbe82 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:29:03 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:29:04.3646721+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: + - Mon, 08 Aug 2022 22:29:04 GMT + ms-cv: + - NVb2QAVi5U2qkLJe0LIELw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222904Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001ega5 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 117ms + status: + code: 201 + message: Created - request: body: '{"topic": "yet-another-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 080bf3af-b8ee-4aac-bc0d-921f9db40027 + - 4a66c621-2663-46b3-9525-9f4a21db140b method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-05T18:47:06Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:29:05Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:07 GMT + - Mon, 08 Aug 2022 22:29:05 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AvhujDBsWgFLkrVpLYheQrvLB5epY0nQpjopNqICjCjk1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AhUO9NB43oln2hfb9tX-vMNrR0HiEt8ZYWew1X5OV0TQ1@thread.v2 ms-cv: - - y4sIFOOJY0OHw/yA4g+5zg.0 + - Qtb5sIeNGUuEAg1ZcW66zw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184706Z-afb852g2vh6591nsqudzty20xs00000002wg0000000008fp + - 20220808T222904Z-afb852g2vh6591nsqudzty20xs000000056g00000000ssx7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 513ms + - 545ms status: code: 201 message: Created @@ -77,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:07 GMT + - Mon, 08 Aug 2022 22:29:06 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AvhujDBsWgFLkrVpLYheQrvLB5epY0nQpjopNqICjCjk1@thread.v2/messages/1659725227805 + - https://clitest000002.communication.azure.com/chat/threads/19%3AhUO9NB43oln2hfb9tX-vMNrR0HiEt8ZYWew1X5OV0TQ1@thread.v2/messages/1659997746061 ms-cv: - - IDjDYLnPxUSK+c7/LPOXhQ.0 + - 2gXW8BTUMEWqIdF8GyMWDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184707Z-kpegq6a2qh4nr419q7tfax5sn400000002ug000000005cx6 + - 20220808T222905Z-tm7vmh1bsd3kxfvqbrpytcwbkg0000000560000000024513 x-cache: - CONFIG_NOCACHE x-processing-time: - - 52ms + - 170ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index fadec0677dd..439f7945b98 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:29:02 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:29:03.0187911+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: + - Mon, 08 Aug 2022 22:29:03 GMT + ms-cv: + - VfuwAs6900CyAcyqe08EUQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222902Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000nxmc + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 120ms + status: + code: 201 + message: Created - request: body: '{"topic": "thread-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 1b95d6c0-c605-4dfe-993b-d9aebb1d36ea + - 7def4dd0-a53f-47f8-b525-a683ed5ef302 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-05T18:47:07Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:29:03Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:07 GMT + - Mon, 08 Aug 2022 22:29:04 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Asf0TaGGOY9YJOAsoRc79y-ol3sWBZyFHzdvrkX5tiSE1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ALJjbZEYqt6gAzKDd_aAmqxjaxFp0MOhI_ccImnnHbZE1@thread.v2 ms-cv: - - In7zacugvEu8AcAC0/cXQQ.0 + - yQLzdtsez0icfLNQcMVwUg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184706Z-qtfd0d2efh3zh2gzxzkdhtv16800000002ug000000006fxb + - 20220808T222903Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001eg4q x-cache: - CONFIG_NOCACHE x-processing-time: - - 487ms + - 583ms status: code: 201 message: Created @@ -77,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:08 GMT + - Mon, 08 Aug 2022 22:29:04 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Asf0TaGGOY9YJOAsoRc79y-ol3sWBZyFHzdvrkX5tiSE1@thread.v2/messages/1659725228312 + - https://clitest000002.communication.azure.com/chat/threads/19%3ALJjbZEYqt6gAzKDd_aAmqxjaxFp0MOhI_ccImnnHbZE1@thread.v2/messages/1659997744716 ms-cv: - - buUWrQ3H1EmSOCLK10+4Ug.0 + - 4h0P7wfCLEWWWBzznuCNsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184707Z-1ykan7zabt1sxfcs379b67eye800000000vg00000000c8b5 + - 20220808T222904Z-4wf38k6bv57vh8d4wkrqw24dx000000003800000000107nk x-cache: - CONFIG_NOCACHE x-processing-time: - - 210ms + - 189ms status: code: 201 message: Created @@ -121,17 +175,17 @@ interactions: connection: - keep-alive date: - - Fri, 05 Aug 2022 18:47:09 GMT + - Mon, 08 Aug 2022 22:29:05 GMT ms-cv: - - 4lC3z+U5e0Ols1FPQ8hPJQ.0 + - Bx9p5Prtd0iipVu3j06SYw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184708Z-qtfd0d2efh3zh2gzxzkdhtv16800000002u00000000088tc + - 20220808T222905Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001egfs x-cache: - CONFIG_NOCACHE x-processing-time: - - 223ms + - 405ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index 497846b808b..e4bdfbfb867 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -1,4 +1,58 @@ interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Mon, 08 Aug 2022 22:29:03 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-09T22:29:04.9438718+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: + - Mon, 08 Aug 2022 22:29:05 GMT + ms-cv: + - BAi8YiaC8UW4qJ5iH2iOlQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220808T222904Z-tur6dybg817yr054hm9efewep800000004e000000002y2zv + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created - request: body: '{"topic": "thread-topic", "participants": []}' headers: @@ -15,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - c5b68e8e-f875-49d2-b3e3-27ecf09d049b + - 1a8563e9-7b27-4715-8f1a-c71e84dfbbca method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-05T18:47:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-08T22:29:05Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -31,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:09 GMT + - Mon, 08 Aug 2022 22:29:06 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AKlO64J4CS-AgAD6h6wqPaa0fIGET-Q7MvOc76o6kYpg1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A8K_JvYLpdekNXspy0sdRnXNb9FyZctHnnCHpZA7jQ9A1@thread.v2 ms-cv: - - g08JSEKNzEqemcwN31xz9w.0 + - dsqo4m3HdUyUxgjq9sqHuQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184708Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002u0000000001k73 + - 20220808T222905Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000058000000000zv6m x-cache: - CONFIG_NOCACHE x-processing-time: - - 596ms + - 818ms status: code: 201 message: Created @@ -75,17 +129,17 @@ interactions: connection: - keep-alive date: - - Fri, 05 Aug 2022 18:47:10 GMT + - Mon, 08 Aug 2022 22:29:07 GMT ms-cv: - - J6L3QTCKRU+xhhYPpaVL5Q.0 + - MB60EeoKOUeMBRRiBvVn5g.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184710Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002u000000001v6mb + - 20220808T222906Z-kpegq6a2qh4nr419q7tfax5sn4000000054g00000002950s x-cache: - CONFIG_NOCACHE x-processing-time: - - 255ms + - 236ms status: code: 204 message: No Content 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 fee570bee34..60df0297965 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 @@ -22,21 +22,21 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"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/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 cache-control: - no-cache content-length: - - '578' + - '576' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:48:49 GMT + - Mon, 08 Aug 2022 22:30:46 GMT etag: - - '"0b00929e-0000-0700-0000-62ed66110000"' + - '"18006e59-0000-0700-0000-62f18e960000"' expires: - '-1' pragma: @@ -70,10 +70,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-05T18:48:49.5865793Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-08T22:30:46.3346335Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:49:19 GMT + - Mon, 08 Aug 2022 22:31:16 GMT etag: - - '"10005517-0000-0800-0000-62ed66110000"' + - '"1b004991-0000-0800-0000-62f18e960000"' expires: - '-1' pragma: @@ -116,10 +116,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-05T18:48:49.5865793Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-08T22:30:46.3346335Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:49:49 GMT + - Mon, 08 Aug 2022 22:31:46 GMT etag: - - '"10005517-0000-0800-0000-62ed66110000"' + - '"1b004991-0000-0800-0000-62f18e960000"' expires: - '-1' pragma: @@ -162,10 +162,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"dd0cd851-024a-4c83-8867-c0cb82df95d9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:48:49.5865793Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:30:46.3346335Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:19 GMT + - Mon, 08 Aug 2022 22:32:16 GMT etag: - - '"1000b417-0000-0800-0000-62ed66530000"' + - '"1b00a291-0000-0800-0000-62f18ed80000"' expires: - '-1' pragma: @@ -211,19 +211,19 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:20 GMT + - Mon, 08 Aug 2022 22:32:16 GMT etag: - - '"0b00b09e-0000-0700-0000-62ed66180000"' + - '"18008759-0000-0700-0000-62f18e9e0000"' expires: - '-1' pragma: @@ -260,19 +260,19 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:21 GMT + - Mon, 08 Aug 2022 22:32:16 GMT etag: - - '"0b00b09e-0000-0700-0000-62ed66180000"' + - '"18008759-0000-0700-0000-62f18e9e0000"' expires: - '-1' pragma: @@ -309,19 +309,19 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:22 GMT + - Mon, 08 Aug 2022 22:32:17 GMT etag: - - '"0b00b09e-0000-0700-0000-62ed66180000"' + - '"18008759-0000-0700-0000-62f18e9e0000"' expires: - '-1' pragma: @@ -358,17 +358,17 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '713' + - '711' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:23 GMT + - Mon, 08 Aug 2022 22:32:17 GMT expires: - '-1' pragma: @@ -405,17 +405,17 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:48:49.2572953Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '713' + - '711' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:23 GMT + - Mon, 08 Aug 2022 22:32:17 GMT expires: - '-1' pragma: @@ -456,19 +456,19 @@ interactions: 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-08-05T18:48:49.2572953Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-05T18:50:24.0170604Z"},"properties":{"hostName":"mycommunicahwdu4557nwzn.communication.azure.com","immutableResourceId":"f36ed9a1-f134-41ec-a0b4-ff7b1ff1bde9","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:32:19.0622283Z"},"properties":{"hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '728' + - '727' content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:24 GMT + - Mon, 08 Aug 2022 22:32:20 GMT etag: - - '"0b0040a0-0000-0700-0000-62ed66700000"' + - '"1800e55a-0000-0700-0000-62f18ef30000"' expires: - '-1' pragma: @@ -486,7 +486,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -523,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:25 GMT + - Mon, 08 Aug 2022 22:32:20 GMT expires: - '-1' pragma: @@ -566,7 +566,7 @@ interactions: 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":"lrU7IB2CqdoxdXRkqKvDgXIbLSL97+5oyIyIC543NoGYBWjwOGKQiFYag4+n13vntn/5HSFqGGnUTQNO3aSCNg==","secondaryKey":"fGC/TPNIIXVnHbqlFxfTdMcW9aMYN0zIbzzg7R1E3WzegsTvt7DdEkmYzeKOf/eSCS43f0saM0z/KOnFHQ2cwg==","primaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=lrU7IB2CqdoxdXRkqKvDgXIbLSL97+5oyIyIC543NoGYBWjwOGKQiFYag4+n13vntn/5HSFqGGnUTQNO3aSCNg==","secondaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=fGC/TPNIIXVnHbqlFxfTdMcW9aMYN0zIbzzg7R1E3WzegsTvt7DdEkmYzeKOf/eSCS43f0saM0z/KOnFHQ2cwg=="}' + string: '{"primaryKey":"672xbXJBtggXjUZ7FFV2jOyeiMcqGik8coQbBWj6AQdmCVB3R1cPHag7GPpyAvnQ9H/qBd5CtR2c0chvuGc/jg==","secondaryKey":"elLEfhhqWfBvJrIyukGpTGMsuooNmMCWDIgn85+dPYYTHuUdE0lmqi9dY4Svb0+1JNCjllqf3NCjhRgsFVTjjw==","primaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=672xbXJBtggXjUZ7FFV2jOyeiMcqGik8coQbBWj6AQdmCVB3R1cPHag7GPpyAvnQ9H/qBd5CtR2c0chvuGc/jg==","secondaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=elLEfhhqWfBvJrIyukGpTGMsuooNmMCWDIgn85+dPYYTHuUdE0lmqi9dY4Svb0+1JNCjllqf3NCjhRgsFVTjjw=="}' headers: cache-control: - no-cache @@ -575,7 +575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:25 GMT + - Mon, 08 Aug 2022 22:32:20 GMT expires: - '-1' pragma: @@ -620,7 +620,7 @@ interactions: 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":"8N2IDBkEM96wPbueJQPYfSMS1vPRzR5zsdoE4+msxifx8TNTalo2y74QtYfXV4HqKIefeSY87H/mG7Mpi8wEgg==","primaryConnectionString":"endpoint=https://mycommunicahwdu4557nwzn.communication.azure.com/;accesskey=8N2IDBkEM96wPbueJQPYfSMS1vPRzR5zsdoE4+msxifx8TNTalo2y74QtYfXV4HqKIefeSY87H/mG7Mpi8wEgg=="}' + string: '{"primaryKey":"R07pghyt8ZPm3yyHMOxKFT3ZmW79aBDrtLde/jOEPNRQDIjXPmaPjYpGQ0HZ12x8qpdFsvPDmPHGUAlhdvTPOg==","primaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=R07pghyt8ZPm3yyHMOxKFT3ZmW79aBDrtLde/jOEPNRQDIjXPmaPjYpGQ0HZ12x8qpdFsvPDmPHGUAlhdvTPOg=="}' headers: cache-control: - no-cache @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:26 GMT + - Mon, 08 Aug 2022 22:32:20 GMT expires: - '-1' pragma: @@ -675,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -683,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:27 GMT + - Mon, 08 Aug 2022 22:32:22 GMT etag: - - '"0b004fa0-0000-0700-0000-62ed66730000"' + - '"1800f65a-0000-0700-0000-62f18ef60000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -719,10 +719,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-05T18:50:27.7919862Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-08T22:32:22.7070781Z"}' headers: cache-control: - no-cache @@ -731,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:57 GMT + - Mon, 08 Aug 2022 22:32:52 GMT etag: - - '"10006c18-0000-0800-0000-62ed66730000"' + - '"1b001b92-0000-0800-0000-62f18ef60000"' expires: - '-1' pragma: @@ -761,10 +761,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-05T18:50:27.7919862Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-08T22:32:22.7070781Z"}' headers: cache-control: - no-cache @@ -773,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:27 GMT + - Mon, 08 Aug 2022 22:33:22 GMT etag: - - '"10006c18-0000-0800-0000-62ed66730000"' + - '"1b001b92-0000-0800-0000-62f18ef60000"' expires: - '-1' pragma: @@ -803,10 +803,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:50:27.7919862Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:32:22.7070781Z","properties":null}' headers: cache-control: - no-cache @@ -815,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:57 GMT + - Mon, 08 Aug 2022 22:33:52 GMT etag: - - '"050138c0-0000-0700-0000-62ed66b50000"' + - '"1b00cc92-0000-0800-0000-62f18f390000"' expires: - '-1' pragma: @@ -849,10 +849,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","name":"27adac87-5d3d-4d8c-a125-591a0c704cc9*334A438B465C0B7C57E14EAB884766E498D8B38566BFF60FDD12E66C71B0E13B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-05T18:50:27.7919862Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:32:22.7070781Z","properties":null}' headers: cache-control: - no-cache @@ -861,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:57 GMT + - Mon, 08 Aug 2022 22:33:52 GMT etag: - - '"050138c0-0000-0700-0000-62ed66b50000"' + - '"1b00cc92-0000-0800-0000-62f18f390000"' 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 a2076a1e2ae..b1c994d4d24 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Fri, 05 Aug 2022 18:47:14 GMT + - Mon, 08 Aug 2022 22:29:04 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:47:16.3294485+00:00"}}' + "expiresOn": "2022-08-09T22:29:05.1419401+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:47:16 GMT + - Mon, 08 Aug 2022 22:29:05 GMT ms-cv: - - FYJ+20sCoUi99C8HY/bYLg.0 + - XocDOFyMPUGVjjb8KG35zg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184716Z-q1z3stmybd47948vv0qhv9299w00000002ug000000005b58 + - 20220808T222905Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000nyb6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 123ms + - 111ms 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 bae7450b785..0c9abd7c854 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Fri, 05 Aug 2022 18:48:42 GMT + - Mon, 08 Aug 2022 22:30:41 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -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: - - Fri, 05 Aug 2022 18:48:44 GMT + - Mon, 08 Aug 2022 22:30:41 GMT ms-cv: - - GciWxBM6ckuM9k+wnpIHdw.0 + - kLcSi1rua0mTOpheuyW29g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184843Z-qtfd0d2efh3zh2gzxzkdhtv16800000002w0000000002yap + - 0kY7xYgAAAADdazs9VCRkQLa2oIPiOjvZWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 107ms status: code: 201 message: Created @@ -70,40 +68,36 @@ interactions: x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-date: - - Fri, 05 Aug 2022 18:48:43 GMT + - Mon, 08 Aug 2022 22:30:41 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-06T18:48:44.9761779+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-09T22:30:42.2352355+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: - - Fri, 05 Aug 2022 18:48:45 GMT + - Mon, 08 Aug 2022 22:30:41 GMT ms-cv: - - NyVUH6KBNEG4Xx+gnAzbCQ.0 + - Hp6V8gmkn0+t98ht9tGWCA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184844Z-91tba13kdd5mrb8h3w91379wbg00000002u0000000001e4m + - 0ko7xYgAAAAC1CfKw9eCsS4tG8JVEUdnVWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 178ms + - 56ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index ae5e0a2268e..dc31bd8924a 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= x-ms-date: - - Fri, 05 Aug 2022 18:48:43 GMT + - Mon, 08 Aug 2022 22:30:42 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,27 +25,25 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-06T18:48:45.1048931+00:00"}}' + "expiresOn": "2022-08-09T22:30:42.8694419+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: - - Fri, 05 Aug 2022 18:48:45 GMT + - Mon, 08 Aug 2022 22:30:42 GMT ms-cv: - - qbDOWRINBEKdwK7H9MIUmg.0 + - iH7AQgIJpUyAafYPHo+fXg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184844Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002ug00000001zpe3 + - 0ko7xYgAAAADSFXtbEKQtS6TxSHqNa43yWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: 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 b92ac588610..05784df48af 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:48:51 GMT + - Mon, 08 Aug 2022 22:30:40 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -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, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Fri, 05 Aug 2022 18:48:56 GMT + - Mon, 08 Aug 2022 22:30:44 GMT location: - - /availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 ms-cv: - - MsE+lstTuUGwwgQMQIiwoQ.0 + - NdpKCYc+nUGVfolrpu00eg.0 operation-id: - - search_ccaad719-583d-4865-b362-ba79a27dcba8 + - search_c66bd25d-0d79-4a49-8556-524b2f82aba9 operation-location: - - /phoneNumbers/operations/search_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + - /phoneNumbers/operations/search_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 search-id: - - ccaad719-583d-4865-b362-ba79a27dcba8 + - c66bd25d-0d79-4a49-8556-524b2f82aba9 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184853Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002dqth + - 0kY7xYgAAAAB1VWGf5lL/Spd+yrh6/nO3WVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3333ms + - 4252ms status: code: 202 message: Accepted @@ -68,7 +66,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:49:25 GMT + - Mon, 08 Aug 2022 22:31:15 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,38 +74,36 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:48:56.1619768+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:30:45.2703528+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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:49:27 GMT + - Mon, 08 Aug 2022 22:31:16 GMT location: - - /availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 ms-cv: - - jepTN1KwG06vAvbyfqoK7w.0 + - PFwIQFFe2UaL+HrSjtFTHQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184926Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e30y + - 0s47xYgAAAACByQnNEdXaSZOL0SyHfXSoWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 407ms + - 378ms status: code: 200 message: OK @@ -122,7 +118,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:49:26 GMT + - Mon, 08 Aug 2022 22:31:16 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,41 +126,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 response: body: - string: '{"searchId": "ccaad719-583d-4865-b362-ba79a27dcba8", "phoneNumbers": + string: '{"searchId": "c66bd25d-0d79-4a49-8556-524b2f82aba9", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:04:58.9493554+00:00"}' + "2022-08-08T22:46:47.6996334+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:49:30 GMT + - Mon, 08 Aug 2022 22:31:17 GMT ms-cv: - - wcnX9ZkekEGWbEFmcYk9Ig.0 + - edMt8JtkekmoloJjmSQjTQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T184927Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e3bz + - 0tI7xYgAAAABDZILYSQpVSbB7njNVVJ2XWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2253ms + - 1135ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "ccaad719-583d-4865-b362-ba79a27dcba8"}' + body: '{"searchId": "c66bd25d-0d79-4a49-8556-524b2f82aba9"}' headers: Accept: - application/json @@ -177,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:49:29 GMT + - Mon, 08 Aug 2022 22:31:17 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - ZCCj66Fg9CvF7RxGHkhQFyz2Th6GnGPk8CjndX6oxsk= + - pDWby37lsoBSqSPOx6OtDkUZgVf6laQ3TRV+uaghYlI= 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, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Fri, 05 Aug 2022 18:49:32 GMT + - Mon, 08 Aug 2022 22:31:19 GMT ms-cv: - - wH/8Fzv0xEyP1KzkMEECSQ.0 + - LcpsCX9c4EiapujjNJU7kw.0 operation-id: - - purchase_ccaad719-583d-4865-b362-ba79a27dcba8 + - purchase_c66bd25d-0d79-4a49-8556-524b2f82aba9 operation-location: - - /phoneNumbers/operations/purchase_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 purchase-id: - - ccaad719-583d-4865-b362-ba79a27dcba8 + - c66bd25d-0d79-4a49-8556-524b2f82aba9 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T184930Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002e4aq + - 0tY7xYgAAAACzqTGUVa7pR6Qv3EcVmK+EWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1942ms + - 2108ms status: code: 202 message: Accepted @@ -229,7 +221,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:01 GMT + - Mon, 08 Aug 2022 22:31:49 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,33 +229,31 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_ccaad719-583d-4865-b362-ba79a27dcba8?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:48:56.1619768+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-08T22:30:45.2703528+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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:03 GMT + - Mon, 08 Aug 2022 22:31:49 GMT ms-cv: - - mR0XevoqtkinE35bFSImow.0 + - EwijiT3eMEO8XRKI/PeOOg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185002Z-4wf38k6bv57vh8d4wkrqw24dx000000000u000000002eg81 + - 01Y7xYgAAAACx4ZIOg8rvTpBaIUeifEAFWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 491ms + - 401ms status: code: 200 message: OK @@ -278,7 +268,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:02 GMT + - Mon, 08 Aug 2022 22:31:50 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -292,29 +282,27 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-08-05T18:49:48.4962728+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-08T22:31:36.3074245+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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:06 GMT + - Mon, 08 Aug 2022 22:31:53 GMT ms-cv: - - ZUt2lJLvp0uM/fhSMrd5FA.0 + - ts5Gsr1bWEiej4lWFWUoGA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185003Z-kpegq6a2qh4nr419q7tfax5sn400000002v00000000055hk + - 01o7xYgAAAAC4XezlVEBdR7ofchdPvuCBWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2579ms + - 3470ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index 089cefd8920..93fcc3a8402 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Fri, 05 Aug 2022 18:48:44 GMT + - Mon, 08 Aug 2022 22:30:41 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -34,19 +34,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:48:45 GMT + - Mon, 08 Aug 2022 22:30:41 GMT ms-cv: - - K2JsYnuqWUe/FDjQ25coIg.0 + - of437i8EPE2hOHs1AICsRQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0DWbtYgAAAAB/PJpIExLsRqCcnNFRGKXTWVZSMzBFREdFMDMxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 0kY7xYgAAAABY//G3yY3sRLPBgpI2FqtfWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 115ms status: code: 201 message: Created @@ -66,7 +66,7 @@ interactions: x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Fri, 05 Aug 2022 18:48:45 GMT + - Mon, 08 Aug 2022 22:30:42 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -79,19 +79,19 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01 date: - - Fri, 05 Aug 2022 18:48:46 GMT + - Mon, 08 Aug 2022 22:30:41 GMT ms-cv: - - /mGzCCfxD0y4VfBmXDxM/w.0 + - HoH3Tw1d8U6HNXef7+Y5+g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0DmbtYgAAAACeXr3z8ToiSKMZkpsMhODyWVZSMzExMDAwMTE2MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0ko7xYgAAAAAwABL3oes+Q6RG5gnp0MmbWVZSMzBFREdFMDMwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 107ms + - 41ms status: code: 204 message: No Content 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 d2f715152d5..2090024b046 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:50:21 GMT + - Mon, 08 Aug 2022 22:32:17 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:50:25 GMT + - Mon, 08 Aug 2022 22:32:22 GMT location: - - /availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 ms-cv: - - Nfw4e7r+d0mdB2c3tDMBsA.0 + - cKYEkFMKK0qS8Tsvmr9U0A.0 operation-id: - - search_c877cced-6cc9-4aae-b5b4-227a657fe71e + - search_c025f3c2-2d18-4a21-a914-4b4687790507 operation-location: - - /phoneNumbers/operations/search_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + - /phoneNumbers/operations/search_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 search-id: - - c877cced-6cc9-4aae-b5b4-227a657fe71e + - c025f3c2-2d18-4a21-a914-4b4687790507 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185022Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002c2b + - 20220808T223218Z-afb852g2vh6591nsqudzty20xs0000000560000000015qmg x-cache: - CONFIG_NOCACHE x-processing-time: - - 2732ms + - 4357ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:54 GMT + - Mon, 08 Aug 2022 22:32:52 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:50:24.8447066+00:00", "id": "search_c877cced-6cc9-4aae-b5b4-227a657fe71e", + "/availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:32:22.4246381+00:00", "id": "search_c025f3c2-2d18-4a21-a914-4b4687790507", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:55 GMT + - Mon, 08 Aug 2022 22:32:53 GMT location: - - /availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 ms-cv: - - tPzIUQ2gk0m+tnFW+lWcAQ.0 + - zawuAcgwuUap1D5wsELdWg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185055Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002myy + - 20220808T223252Z-afb852g2vh6591nsqudzty20xs000000056000000001626g x-cache: - CONFIG_NOCACHE x-processing-time: - - 488ms + - 458ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:54 GMT + - Mon, 08 Aug 2022 22:32:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 response: body: - string: '{"searchId": "c877cced-6cc9-4aae-b5b4-227a657fe71e", "phoneNumbers": - ["+18336036086"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "c025f3c2-2d18-4a21-a914-4b4687790507", "phoneNumbers": + ["+18336392535"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:06:27.3703922+00:00"}' + "2022-08-08T22:48:25.1590432+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:57 GMT + - Mon, 08 Aug 2022 22:32:55 GMT ms-cv: - - DX6L+gjCcUK8P3G9ViXBuQ.0 + - 2Ue9BhgebkSa8RAVZy1h5w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185055Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002n31 + - 20220808T223253Z-afb852g2vh6591nsqudzty20xs00000005600000000162f0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1260ms + - 1561ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c877cced-6cc9-4aae-b5b4-227a657fe71e"}' + body: '{"searchId": "c025f3c2-2d18-4a21-a914-4b4687790507"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:50:56 GMT + - Mon, 08 Aug 2022 22:32:55 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - d6tKxZl7f6g841KEtWVdCMi6c5fvvFccBNkAaNWrNGo= + - 2FuvpIbiiPNzd+JMWdeABDTPodHHPEqg0QiMu6dqj7M= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:51:01 GMT + - Mon, 08 Aug 2022 22:32:58 GMT ms-cv: - - PV7iXoeMD0qB1u1i9NMIlQ.0 + - zopF63fPSUC4rlki/JtDQA.0 operation-id: - - purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e + - purchase_c025f3c2-2d18-4a21-a914-4b4687790507 operation-location: - - /phoneNumbers/operations/purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 purchase-id: - - c877cced-6cc9-4aae-b5b4-227a657fe71e + - c025f3c2-2d18-4a21-a914-4b4687790507 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185057Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002nf9 + - 20220808T223255Z-afb852g2vh6591nsqudzty20xs0000000560000000016356 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3328ms + - 2946ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:51:30 GMT + - Mon, 08 Aug 2022 22:33:28 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:50:24.8447066+00:00", "id": "purchase_c877cced-6cc9-4aae-b5b4-227a657fe71e", + null, "createdDateTime": "2022-08-08T22:32:22.4246381+00:00", "id": "purchase_c025f3c2-2d18-4a21-a914-4b4687790507", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:31 GMT + - Mon, 08 Aug 2022 22:33:29 GMT ms-cv: - - Ve6VfTYnY06EhGsl8jMAOw.0 + - avoiORjloUySTzNsnonBoA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185131Z-hk9fc1hqnx3xh6y9eh1b1ua6zw00000002ug000000002xnp + - 20220808T223329Z-afb852g2vh6591nsqudzty20xs0000000560000000016fc4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 370ms + - 350ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:51:31 GMT + - Mon, 08 Aug 2022 22:33:29 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - BErKtUuTMycJcfWw2H4gARF2/2GcUwhhr64HnDRR0qo= + - zrU5f+hqXr/qw3FOXQHygDKpjqTg5Yx+x8kMdVm2/sE= x-ms-return-client-request-id: - 'true' method: POST @@ -305,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:32 GMT + - Mon, 08 Aug 2022 22:33:30 GMT ms-cv: - - 5kk3aDYYF0ulgclS5QfWTA.0 + - J5b1y39EV0qit7elU3L6Fg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185132Z-q1z3stmybd47948vv0qhv9299w00000002u000000000amr7 + - 20220808T223329Z-tur6dybg817yr054hm9efewep800000004gg00000000dyk6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 127ms + - 128ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index c5d7016f602..2df8c2af0b1 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:51:42 GMT + - Mon, 08 Aug 2022 22:32:17 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:51:46 GMT + - Mon, 08 Aug 2022 22:32:21 GMT location: - - /availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 ms-cv: - - lwaHoZD3EECj1MBx26vOxQ.0 + - c9CldfQl3Uu3SoMDGmCYNw.0 operation-id: - - search_bd7495d0-257d-4ab9-87de-055470e9e496 + - search_71cc40a6-3f3d-4030-b300-53e356cff427 operation-location: - - /phoneNumbers/operations/search_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + - /phoneNumbers/operations/search_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 search-id: - - bd7495d0-257d-4ab9-87de-055470e9e496 + - 71cc40a6-3f3d-4030-b300-53e356cff427 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185143Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005m9h + - 20220808T223217Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000hued x-cache: - CONFIG_NOCACHE x-processing-time: - - 2638ms + - 3068ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:52:15 GMT + - Mon, 08 Aug 2022 22:32:51 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:51:45.8215137+00:00", "id": "search_bd7495d0-257d-4ab9-87de-055470e9e496", + "/availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:32:20.799364+00:00", "id": "search_71cc40a6-3f3d-4030-b300-53e356cff427", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:52:16 GMT + - Mon, 08 Aug 2022 22:32:51 GMT location: - - /availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 ms-cv: - - gwIJ+3KOs0yqGZdnl51Zbg.0 + - 8RBu/Oqbm0mQbp0U1LDcww.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185216Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005ubc + - 20220808T223251Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k06d x-cache: - CONFIG_NOCACHE x-processing-time: - - 328ms + - 371ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:52:15 GMT + - Mon, 08 Aug 2022 22:32:51 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 response: body: - string: '{"searchId": "bd7495d0-257d-4ab9-87de-055470e9e496", "phoneNumbers": - ["+18335966373"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "71cc40a6-3f3d-4030-b300-53e356cff427", "phoneNumbers": + ["+18336392539"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:07:47.7395323+00:00"}' + "2022-08-08T22:48:23.2039004+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:52:19 GMT + - Mon, 08 Aug 2022 22:32:54 GMT ms-cv: - - xCohvMw6AEuH+pplHRq6Dg.0 + - PAc4zxqYHUWwnrhIRAgPSg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185216Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005udf + - 20220808T223251Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k08f x-cache: - CONFIG_NOCACHE x-processing-time: - - 2702ms + - 2692ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "bd7495d0-257d-4ab9-87de-055470e9e496"}' + body: '{"searchId": "71cc40a6-3f3d-4030-b300-53e356cff427"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:52:18 GMT + - Mon, 08 Aug 2022 22:32:54 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - NKgGs5uUjoyOguaLnqBajWyYtKe1Fzg0dAmULrWKHEY= + - DNVvoeaJ/IAV5iIerWUNIYEETk0sU+tyWdLgQYkAUyk= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:52:22 GMT + - Mon, 08 Aug 2022 22:32:56 GMT ms-cv: - - g7ZjtUIqYkCaPjEoIX4cDw.0 + - WG/oZgvW70O8iEU2IRM4fw.0 operation-id: - - purchase_bd7495d0-257d-4ab9-87de-055470e9e496 + - purchase_71cc40a6-3f3d-4030-b300-53e356cff427 operation-location: - - /phoneNumbers/operations/purchase_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 purchase-id: - - bd7495d0-257d-4ab9-87de-055470e9e496 + - 71cc40a6-3f3d-4030-b300-53e356cff427 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185219Z-q1z3stmybd47948vv0qhv9299w00000002v0000000005uwb + - 20220808T223254Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k0q8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2370ms + - 1838ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:52:51 GMT + - Mon, 08 Aug 2022 22:33:26 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_bd7495d0-257d-4ab9-87de-055470e9e496?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:51:45.8215137+00:00", "id": "purchase_bd7495d0-257d-4ab9-87de-055470e9e496", + null, "createdDateTime": "2022-08-08T22:32:20.799364+00:00", "id": "purchase_71cc40a6-3f3d-4030-b300-53e356cff427", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:52:53 GMT + - Mon, 08 Aug 2022 22:33:27 GMT ms-cv: - - /icR6uOyVECKFG5flNSUcQ.0 + - SC7pZ6N6skeiUKItiY1AlQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185252Z-q1z3stmybd47948vv0qhv9299w00000002v000000000613h + - 20220808T223327Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k6hc x-cache: - CONFIG_NOCACHE x-processing-time: - - 497ms + - 405ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:52:52 GMT + - Mon, 08 Aug 2022 22:33:27 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -303,25 +303,25 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:52:57 GMT + - Mon, 08 Aug 2022 22:33:30 GMT location: - - /availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 ms-cv: - - aTVy2j0pZE2CpEJ7i+paKQ.0 + - q+5vmCRB/0GoA1d3sIqdyg.0 operation-id: - - search_f2e0beea-2d1a-4a25-a519-95de163c9fc0 + - search_d5503c8a-0034-4575-bc60-58260be6169b operation-location: - - /phoneNumbers/operations/search_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + - /phoneNumbers/operations/search_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 search-id: - - f2e0beea-2d1a-4a25-a519-95de163c9fc0 + - d5503c8a-0034-4575-bc60-58260be6169b strict-transport-security: - max-age=2592000 x-azure-ref: - - 0BWftYgAAAABfnmuFyyGuRJhdSmQ+MIotWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0OI/xYgAAAACIg41hDp61ToYDvJuBOuICWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 3447ms + - 2469ms status: code: 202 message: Accepted @@ -335,7 +335,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:53:26 GMT + - Mon, 08 Aug 2022 22:34:00 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -343,12 +343,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:52:57.1006511+00:00", "id": "search_f2e0beea-2d1a-4a25-a519-95de163c9fc0", + "/availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:33:30.1973435+00:00", "id": "search_d5503c8a-0034-4575-bc60-58260be6169b", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -358,21 +358,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:53:27 GMT + - Mon, 08 Aug 2022 22:34:00 GMT location: - - /availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 ms-cv: - - 44vbfuo8fEC9tIVHWWNckg.0 + - WQdPKzr0M0myBNv13qtfZw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0J2ftYgAAAABnb6b5IZx6SYOo4aG0vCbEWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0WI/xYgAAAAB4VK6Mbg9qRJ0pMaNXAY3+WVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 424ms + - 371ms status: code: 200 message: OK @@ -387,7 +387,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:53:27 GMT + - Mon, 08 Aug 2022 22:34:01 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -395,39 +395,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 response: body: - string: '{"searchId": "f2e0beea-2d1a-4a25-a519-95de163c9fc0", "phoneNumbers": - ["+18335969413"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "d5503c8a-0034-4575-bc60-58260be6169b", "phoneNumbers": + ["+18336393100"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:08:59.9239377+00:00"}' + "2022-08-08T22:49:32.8803566+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:53:28 GMT + - Mon, 08 Aug 2022 22:34:02 GMT ms-cv: - - zBYAtkODlk2nczfWs4WUIA.0 + - Gay1fG2ioEqhRc1wguqiQg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0KGftYgAAAADlwZiL0zpcRrA/6eek+qRyWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0WY/xYgAAAAAUijvW12MyQbu0vFLk3tcUWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1190ms + - 1017ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "f2e0beea-2d1a-4a25-a519-95de163c9fc0"}' + body: '{"searchId": "d5503c8a-0034-4575-bc60-58260be6169b"}' headers: Accept: - application/json @@ -440,11 +440,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:53:28 GMT + - Mon, 08 Aug 2022 22:34:02 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - YBH4m29vPZXXVoV41YhmMK3AzfaeIT1HZPW5jSDILbs= + - EtdlKq7Akv0aCrxerwOIFIG4v3wXICi9DxoA/NZJFxY= x-ms-return-client-request-id: - 'true' method: POST @@ -460,23 +460,23 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:53:31 GMT + - Mon, 08 Aug 2022 22:34:04 GMT ms-cv: - - y3j6OKpghUqvRCF0VJCCWA.0 + - 22DwgRzBHUiY5civ+kCDLQ.0 operation-id: - - purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0 + - purchase_d5503c8a-0034-4575-bc60-58260be6169b operation-location: - - /phoneNumbers/operations/purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 purchase-id: - - f2e0beea-2d1a-4a25-a519-95de163c9fc0 + - d5503c8a-0034-4575-bc60-58260be6169b strict-transport-security: - max-age=2592000 x-azure-ref: - - 0KWftYgAAAADgSdD+2aHCSLbdafJxadwPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0Wo/xYgAAAAAn33o9/KbYQrRfhimlS6G9WVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2448ms + - 1893ms status: code: 202 message: Accepted @@ -490,7 +490,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:54:01 GMT + - Mon, 08 Aug 2022 22:34:34 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -498,11 +498,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:52:57.1006511+00:00", "id": "purchase_f2e0beea-2d1a-4a25-a519-95de163c9fc0", + null, "createdDateTime": "2022-08-08T22:33:30.1973435+00:00", "id": "purchase_d5503c8a-0034-4575-bc60-58260be6169b", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -510,19 +510,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:54:02 GMT + - Mon, 08 Aug 2022 22:34:34 GMT ms-cv: - - Yq0d6nE4Yki37HHtpAFE3A.0 + - QnouOw/i5kC+n74XzW/WOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0SWftYgAAAAD8leg6+wr0T7u4aj8OLyAcWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0eo/xYgAAAACkB7TvrWIeQ6DXggjuiPEdWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 448ms + - 368ms status: code: 200 message: OK @@ -542,7 +542,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:54:01 GMT + - Mon, 08 Aug 2022 22:34:34 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -559,28 +559,30 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Fri, 05 Aug 2022 18:54:05 GMT + - Mon, 08 Aug 2022 22:34:37 GMT location: - - /availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 ms-cv: - - sdPUXX5j2UusmPTDqy5YgA.0 + - Oba64c8DHEOIF3WaEG6Sjw.0 operation-id: - - search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2 + - search_231778ad-b32b-4d99-9b41-a0ed0d18e55e operation-location: - - /phoneNumbers/operations/search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + - /phoneNumbers/operations/search_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 search-id: - - 99db6b79-5d5f-4d1d-960d-b173dfefe3b2 + - 231778ad-b32b-4d99-9b41-a0ed0d18e55e strict-transport-security: - max-age=2592000 x-azure-ref: - - 0SmftYgAAAABnJ+TIpFlmTpTK1tCFDPgeWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220808T223435Z-tur6dybg817yr054hm9efewep800000004e0000000031wpr x-cache: - CONFIG_NOCACHE x-processing-time: - - 2514ms + - 2315ms status: code: 202 message: Accepted @@ -594,7 +596,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:54:34 GMT + - Mon, 08 Aug 2022 22:35:07 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -602,36 +604,38 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:54:05.2193549+00:00", "id": "search_99db6b79-5d5f-4d1d-960d-b173dfefe3b2", + "/availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:34:37.4214365+00:00", "id": "search_231778ad-b32b-4d99-9b41-a0ed0d18e55e", "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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:54:35 GMT + - Mon, 08 Aug 2022 22:35:08 GMT location: - - /availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 ms-cv: - - KFjFBIMNSUSyNB0NtkFqQQ.0 + - GiGAyyjNwU+J2M1K/XfaXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0a2ftYgAAAACwKxns6hAgQ5U+Y3PFeUtTWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220808T223507Z-tur6dybg817yr054hm9efewep800000004e00000000328tk x-cache: - CONFIG_NOCACHE x-processing-time: - - 345ms + - 413ms status: code: 200 message: OK @@ -646,7 +650,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:54:35 GMT + - Mon, 08 Aug 2022 22:35:08 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -654,39 +658,41 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 response: body: - string: '{"searchId": "99db6b79-5d5f-4d1d-960d-b173dfefe3b2", "phoneNumbers": - ["+18335969407"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "231778ad-b32b-4d99-9b41-a0ed0d18e55e", "phoneNumbers": + ["+18336392491"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:10:07.6258305+00:00"}' + "2022-08-08T22:50:40.0954495+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:54:36 GMT + - Mon, 08 Aug 2022 22:35:10 GMT ms-cv: - - 7f/7ALZFU0Gf7EzC4nVTzA.0 + - 9lOGbR0PtEKrGG0qj+kXSQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0bGftYgAAAAC/j0wFIwkrQ7psPZP/FuvMWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220808T223508Z-tur6dybg817yr054hm9efewep800000004e00000000328yu x-cache: - CONFIG_NOCACHE x-processing-time: - - 976ms + - 1775ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "99db6b79-5d5f-4d1d-960d-b173dfefe3b2"}' + body: '{"searchId": "231778ad-b32b-4d99-9b41-a0ed0d18e55e"}' headers: Accept: - application/json @@ -699,11 +705,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:54:36 GMT + - Mon, 08 Aug 2022 22:35:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 2oYm0XAlISQwVY/mxTfqGM7f+bTGb4Pw3PTDlkK2aLw= + - 42cFEiFbu4VeHvsSIVQoIehzmE78tOf3pDyqrjo0PKU= x-ms-return-client-request-id: - 'true' method: POST @@ -716,26 +722,28 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Fri, 05 Aug 2022 18:54:38 GMT + - Mon, 08 Aug 2022 22:35:13 GMT ms-cv: - - 9/qCzWPpVEuT9MUgN98Otw.0 + - RKwTr4pQTUmIYqLoqCZvNQ.0 operation-id: - - purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2 + - purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e operation-location: - - /phoneNumbers/operations/purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 purchase-id: - - 99db6b79-5d5f-4d1d-960d-b173dfefe3b2 + - 231778ad-b32b-4d99-9b41-a0ed0d18e55e strict-transport-security: - max-age=2592000 x-azure-ref: - - 0bWftYgAAAADLv3RJmMaiSJw5vSnTS+O+WVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220808T223510Z-tur6dybg817yr054hm9efewep800000004e00000000329ku x-cache: - CONFIG_NOCACHE x-processing-time: - - 1965ms + - 2910ms status: code: 202 message: Accepted @@ -749,7 +757,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:55:08 GMT + - Mon, 08 Aug 2022 22:35:43 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -757,31 +765,33 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:54:05.2193549+00:00", "id": "purchase_99db6b79-5d5f-4d1d-960d-b173dfefe3b2", + null, "createdDateTime": "2022-08-08T22:34:37.4214365+00:00", "id": "purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:55:08 GMT + - Mon, 08 Aug 2022 22:35:43 GMT ms-cv: - - pIwrbHiEqkCj7P0VvW5hlQ.0 + - ZniH3Jqu/02F8jjaLvoPPg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0jWftYgAAAABaZaeWjzlISow90Qhlm+fiWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220808T223543Z-tur6dybg817yr054hm9efewep800000004e0000000032pdn x-cache: - CONFIG_NOCACHE x-processing-time: - - 292ms + - 447ms status: code: 200 message: OK @@ -803,11 +813,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:55:08 GMT + - Mon, 08 Aug 2022 22:35:43 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - 32Sm4vkYcI2QwiD5CLnxIP0CW2Z9dsKNk47etOwddQw= + - /UioWS2Dbgcf8h8VuTjvoVkQeX80MgWX1cOyZNt54rk= x-ms-return-client-request-id: - 'true' method: POST @@ -821,22 +831,24 @@ interactions: headers: api-supported-versions: - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:55:10 GMT + - Mon, 08 Aug 2022 22:35:44 GMT ms-cv: - - cLvazjaMc0WWdZnmsIaB/g.0 + - QZvNwNHKDUqPSBPVIAOyKg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0jWftYgAAAACgBOHskYEETYJhiP7dxKGNWVZSMzBFREdFMDMwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220808T223544Z-nntkv2q0nd3zt4kemgcvznhu24000000056g00000002m2p0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 558ms + - 314ms 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 754f6f50ca1..46d3646213a 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:50:19 GMT + - Mon, 08 Aug 2022 22:33:29 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:50:25 GMT + - Mon, 08 Aug 2022 22:33:32 GMT location: - - /availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 ms-cv: - - S4Rs5PFJm0aE3fB0pz+Ilw.0 + - Te/dPoulAU6UrgRA6paJoQ.0 operation-id: - - search_f40b843c-7899-4495-84be-f8b8fd153e5f + - search_4ea5ec44-f450-4a67-9568-72785f877bfb operation-location: - - /phoneNumbers/operations/search_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + - /phoneNumbers/operations/search_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 search-id: - - f40b843c-7899-4495-84be-f8b8fd153e5f + - 4ea5ec44-f450-4a67-9568-72785f877bfb strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185020Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001m5h3 + - 20220808T223329Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c5wu x-cache: - CONFIG_NOCACHE x-processing-time: - - 4134ms + - 2883ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:54 GMT + - Mon, 08 Aug 2022 22:34:02 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07", - "createdDateTime": "2022-08-05T18:50:24.9359185+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07", + "createdDateTime": "2022-08-08T22:33:32.3302413+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:56 GMT + - Mon, 08 Aug 2022 22:34:03 GMT location: - - /availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 ms-cv: - - qMb6f9UaYE+I1nViXfvISQ.0 + - TPNuogLyQkmY2fTRNfe2BA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185055Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdaz + - 20220808T223402Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8m4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 327ms + - 634ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:50:55 GMT + - Mon, 08 Aug 2022 22:34:03 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 response: body: - string: '{"searchId": "f40b843c-7899-4495-84be-f8b8fd153e5f", "phoneNumbers": + string: '{"searchId": "4ea5ec44-f450-4a67-9568-72785f877bfb", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-05T19:06:27.2949590+00:00"}' + "2022-08-08T22:49:34.7817585+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:50:57 GMT + - Mon, 08 Aug 2022 22:34:04 GMT ms-cv: - - FxRjBNoSe0KfV5PCF2k43g.0 + - N/XFUEPVSkKYkMlnOhh9Ug.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185056Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdg1 + - 20220808T223403Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8ph x-cache: - CONFIG_NOCACHE x-processing-time: - - 1301ms + - 979ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "f40b843c-7899-4495-84be-f8b8fd153e5f"}' + body: '{"searchId": "4ea5ec44-f450-4a67-9568-72785f877bfb"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Aug 2022 18:50:56 GMT + - Mon, 08 Aug 2022 22:34:04 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: - - cyW10eOlSelGv69y4g3cwLvutCSfDcRZ6bRiHm66FRQ= + - 6v1tid2pNzu+ic1hE4cd1S3GuooIkMZSrfyXsD7QQaU= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Fri, 05 Aug 2022 18:51:00 GMT + - Mon, 08 Aug 2022 22:34:06 GMT ms-cv: - - JqoCW4rfUU2V83W9oQJEnA.0 + - zYBzLB/GEUOlMO9C+sRueg.0 operation-id: - - purchase_f40b843c-7899-4495-84be-f8b8fd153e5f + - purchase_4ea5ec44-f450-4a67-9568-72785f877bfb operation-location: - - /phoneNumbers/operations/purchase_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 purchase-id: - - f40b843c-7899-4495-84be-f8b8fd153e5f + - 4ea5ec44-f450-4a67-9568-72785f877bfb strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220805T185057Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mdtr + - 20220808T223404Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8sn x-cache: - CONFIG_NOCACHE x-processing-time: - - 1996ms + - 2032ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:51:29 GMT + - Mon, 08 Aug 2022 22:34:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_f40b843c-7899-4495-84be-f8b8fd153e5f?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-05T18:50:24.9359185+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-08T22:33:32.3302413+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:30 GMT + - Mon, 08 Aug 2022 22:34:37 GMT ms-cv: - - P2ysBWIFM0mdY/Cj2HWrgg.0 + - 1A6gFArAmEaOaKcOpbeHwQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185130Z-uc7yrm58kd5cb2tk4u9cfe74aw00000002v000000001mp3c + - 20220808T223436Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000cbtv x-cache: - CONFIG_NOCACHE x-processing-time: - - 358ms + - 399ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Fri, 05 Aug 2022 18:51:29 GMT + - Mon, 08 Aug 2022 22:34:37 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) x-ms-content-sha256: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-05T18:51:16.3688733+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-08T22:34:23.3919557+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Aug 2022 18:51:35 GMT + - Mon, 08 Aug 2022 22:34:39 GMT ms-cv: - - VggTwDSdrUSKNJhVb0OsYg.0 + - rkqD3YNLh0WDrt9+ahAnwA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220805T185131Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000002vg000000013h9y + - 20220808T223437Z-tur6dybg817yr054hm9efewep800000004g000000000u6mv x-cache: - CONFIG_NOCACHE x-processing-time: - - 3758ms + - 1965ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index b10f955ec48..801565f179d 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -16,33 +16,83 @@ def __init__(self, method_name): URIIdentityReplacer(), BodyReplacerProcessor(keys=["id", "token", "rawId"]), ]) + + + def __create_thread(self, topic): + self.kwargs.update({ + 'topic': topic }) + return self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + + + def __create_user(self, communication_resource_info): + connection_str = communication_resource_info[1] + if self.is_live or self.in_recording: + self.kwargs.update({ 'connection_string': connection_str}) + else: + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = connection_str + res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() + return res['user_id'] + + + def __get_endpoint_from_resource_info(self, communication_resource_info): + return communication_resource_info[2] + + def __get_or_create_token(self, communication_resource_info): + if self.is_live or self.in_recording: + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + self.kwargs.update({ 'connection_string': communication_resource_info[1] }) + res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() + return res['token'] + else: + # header is encoded form of + # {"alg":"sanitized","kid":"1","x5t":"sanitized","typ":"sanitized"} + header = 'eyJhbGciOiJzYW5pdGl6ZWQiLCJraWQiOiIxIiwieDV0Ijoic2FuaXRpemVkIiwidHlwIjoic2FuaXRpemVkIn0=' + + # payload is encoded form of + # {"skypeid":"acs:sanitized","scp":1792,"csi":"1657788332","exp":1657874732,"acsScope":"chat","resourceId":"sanitized","iat":1657788332} + payload = 'eyJza3lwZWlkIjoiYWNzOnNhbml0aXplZCIsInNjcCI6MTc5MiwiY3NpIjoiMTY1Nzc4ODMzMiIsImV4cCI6MTY1Nzg3NDczMiwiYWNzU2NvcGUiOiJjaGF0IiwicmVzb3VyY2VJZCI6InNhbml0aXplZCIsImlhdCI6MTY1Nzc4ODMzMn0=' + + signature = '1234' + return '{header}.{payload}.{signature}'.format(header=header, payload=payload, signature=signature) + + + def __update_environ(self, communication_resource_info): + endpoint = self.__get_endpoint_from_resource_info(communication_resource_info) + os.environ['AZURE_COMMUNICATION_ENDPOINT'] = endpoint + + token = self.__get_or_create_token(communication_resource_info) + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = token + + return endpoint, token @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_with_env_auth(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_list_threads_with_env_auth(self, communication_resource_info): + self.__update_environ(communication_resource_info) threads = self.cmd('az communication chat list-threads').get_output_in_json() assert len(threads) == 0 @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_with_cmdline_auth(self, communication_resource_chat_info): + def test_chat_list_threads_with_cmdline_auth(self, communication_resource_info): + endpoint, token = self.__update_environ(communication_resource_info) self.kwargs.update({ - 'access_token': communication_resource_chat_info[3], - 'endpoint': communication_resource_chat_info[1] }) + 'access_token': token, + 'endpoint': endpoint }) threads = self.cmd('az communication chat list-threads --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() assert len(threads) == 0 @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_no_endpoint(self, communication_resource_chat_info): + def test_chat_list_threads_no_endpoint(self, communication_resource_info): from azure.cli.core.azclierror import RequiredArgumentMissingError - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + token = self.__get_or_create_token(communication_resource_info) + os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = token + self.kwargs.pop('endpoint', None) os.environ.pop('AZURE_COMMUNICATION_ENDPOINT', None) @@ -55,10 +105,10 @@ def test_chat_list_threads_no_endpoint(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_no_token(self, communication_resource_chat_info): + def test_chat_list_threads_no_token(self, communication_resource_info): from azure.cli.core.azclierror import RequiredArgumentMissingError - self.kwargs.update({'endpoint': communication_resource_chat_info[1]}) + self.kwargs.update({ 'endpoint': self.__get_endpoint_from_resource_info(communication_resource_info) }) self.kwargs.pop('access-token', None) os.environ.pop('AZURE_COMMUNICATION_ACCESS_TOKEN', None) @@ -71,9 +121,8 @@ def test_chat_list_threads_no_token(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_create_thread(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_create_thread(self, communication_resource_info): + self.__update_environ(communication_resource_info) chat_topic = 'some-topic' self.kwargs.update({ @@ -86,9 +135,8 @@ def test_chat_create_thread(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_create_thread_without_topic(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_create_thread_without_topic(self, communication_resource_info): + self.__update_environ(communication_resource_info) with self.assertRaises(SystemExit) as raises: self.cmd('az communication chat create-thread').get_output_in_json() @@ -97,9 +145,8 @@ def test_chat_create_thread_without_topic(self, communication_resource_chat_info @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_participants(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_list_participants(self, communication_resource_info): + self.__update_environ(communication_resource_info) chat_topic = 'some-topic' self.kwargs.update({ @@ -115,11 +162,10 @@ def test_chat_list_participants(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_participants_bad_thread_id(self, communication_resource_chat_info): + def test_chat_list_participants_bad_thread_id(self, communication_resource_info): from azure.core.exceptions import HttpResponseError - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + self.__update_environ(communication_resource_info) thread_id = 'sanitized' self.kwargs.update({ @@ -129,28 +175,12 @@ def test_chat_list_participants_bad_thread_id(self, communication_resource_chat_ self.check('httpStatusCode', '400')]) - def __create_thread(self, topic): - self.kwargs.update({ - 'topic': topic }) - return self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() - - - def __create_user(self, connection_str): - if self.is_live or self.in_recording: - self.kwargs.update({ 'connection_string': connection_str}) - else: - os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = connection_str - res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() - return res['user_id'] - - @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_add_participant(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_add_participant(self, communication_resource_info): + endpoint, token = self.__update_environ(communication_resource_info) - user_id = self.__create_user(communication_resource_chat_info[4]) + user_id = self.__create_user(communication_resource_info) # create a new thread self.kwargs.update({ @@ -163,7 +193,7 @@ def test_chat_add_participant(self, communication_resource_chat_info): self.kwargs.update({ 'thread_id': thread_id, 'user_id': user_id, - 'access_token': communication_resource_chat_info[3] }) + 'access_token': token }) add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}').get_output_in_json() @@ -172,9 +202,8 @@ def test_chat_add_participant(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_add_participant_bad_user(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_add_participant_bad_user(self, communication_resource_info): + endpoint, token = self.__update_environ(communication_resource_info) # create a new thread self.kwargs.update({ @@ -187,7 +216,7 @@ def test_chat_add_participant_bad_user(self, communication_resource_chat_info): self.kwargs.update({ 'thread_id': thread_id, 'user_id': user_id, - 'access_token': communication_resource_chat_info[3] }) + 'access_token': token }) add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}', checks = [ self.check('[0].code', '403'), @@ -208,13 +237,12 @@ def test_chat_add_participant_bad_user(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_remove_participants(self, communication_resource_chat_info): + def test_chat_remove_participants(self, communication_resource_info): from azure.core.exceptions import HttpResponseError - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + self.__update_environ(communication_resource_info) - user_id = self.__create_user(communication_resource_chat_info[4]) + user_id = self.__create_user(communication_resource_info) # create a new thread thread = self.__create_thread('chat-topic') @@ -250,20 +278,20 @@ def test_chat_remove_participants(self, communication_resource_chat_info): # try to remove the original user again, should raise an error with self.assertRaises(HttpResponseError) as raises: self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + assert 'The initiator doesn\'t have the permission to perform the requested operation.' in str(raises.exception) @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_add_participant_with_display_name(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_add_participant_with_display_name(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread thread = self.__create_thread('chat-topic') thread_id = thread['chatThread']['id'] - user_id = self.__create_user(communication_resource_chat_info[4]) + user_id = self.__create_user(communication_resource_info) # add the new user to the chat thread display_name = '\"John Doe\"' @@ -277,15 +305,14 @@ def test_chat_add_participant_with_display_name(self, communication_resource_cha @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_add_participant_with_history_time(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_add_participant_with_history_time(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread thread = self.__create_thread('chat-topic') thread_id = thread['chatThread']['id'] - user_id = self.__create_user(communication_resource_chat_info[4]) + user_id = self.__create_user(communication_resource_info) # add the new user to the chat thread start_time = '2022-01-01T00:00:00' @@ -299,9 +326,8 @@ def test_chat_add_participant_with_history_time(self, communication_resource_cha @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_messages(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_list_messages(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('another-topic') @@ -315,9 +341,8 @@ def test_chat_list_messages(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_messages(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_list_messages(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('another-topic') @@ -333,9 +358,8 @@ def test_chat_list_messages(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_send_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_send_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('some-other-topic') @@ -351,9 +375,8 @@ def test_chat_send_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_send_message_without_content(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_send_message_without_content(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('yet-another-topic') @@ -367,9 +390,8 @@ def test_chat_send_message_without_content(self, communication_resource_chat_inf @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_send_text_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_send_text_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('yet-another-topic') @@ -385,9 +407,8 @@ def test_chat_send_text_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_send_html_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_send_html_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('yet-another-topic') @@ -403,9 +424,8 @@ def test_chat_send_html_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_get_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_get_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('new-topic') @@ -425,9 +445,8 @@ def test_chat_get_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_update_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_update_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('some-other-topic') @@ -450,9 +469,8 @@ def test_chat_update_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_delete_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_delete_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('some-other-topic') @@ -473,9 +491,8 @@ def test_chat_delete_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_update_message(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_update_message(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('thread-topic') @@ -497,9 +514,8 @@ def test_chat_update_message(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_update_topic(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_update_topic(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('thread-topic') @@ -515,9 +531,8 @@ def test_chat_update_topic(self, communication_resource_chat_info): @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_read_receipts(self, communication_resource_chat_info): - os.environ['AZURE_COMMUNICATION_ENDPOINT'] = communication_resource_chat_info[1] - os.environ['AZURE_COMMUNICATION_ACCESS_TOKEN'] = communication_resource_chat_info[3] + def test_chat_read_receipts(self, communication_resource_info): + self.__update_environ(communication_resource_info) # create a new thread first thread = self.__create_thread('thread-topic') 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 319cbbbb037..a15cadd764d 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-08-05 18:55:24.271292|2022-08-05 18:55:24.658489| -|step_show|successed||||2022-08-05 18:55:24.658489|2022-08-05 18:55:24.711476| -|step_list|successed||||2022-08-05 18:55:24.711476|2022-08-05 18:55:24.766000| -|step_list2|successed||||2022-08-05 18:55:24.766977|2022-08-05 18:55:24.831889| -|step_update|successed||||2022-08-05 18:55:24.831889|2022-08-05 18:55:24.886446| -|step_link_notification_hub|successed||||2022-08-05 18:55:24.886446|2022-08-05 18:55:24.945352| -|step_list_key|successed||||2022-08-05 18:55:24.946266|2022-08-05 18:55:24.999697| -|step_regenerate_key|successed||||2022-08-05 18:55:24.999697|2022-08-05 18:55:25.053435| -|step_delete|successed||||2022-08-05 18:55:25.053435|2022-08-05 18:55:25.401281| +|step_create|successed||||2022-08-08 22:41:22.883685|2022-08-08 22:41:23.409382| +|step_show|successed||||2022-08-08 22:41:23.409382|2022-08-08 22:41:23.461645| +|step_list|successed||||2022-08-08 22:41:23.461645|2022-08-08 22:41:23.510634| +|step_list2|successed||||2022-08-08 22:41:23.510634|2022-08-08 22:41:23.564151| +|step_update|successed||||2022-08-08 22:41:23.564151|2022-08-08 22:41:23.615118| +|step_link_notification_hub|successed||||2022-08-08 22:41:23.615118|2022-08-08 22:41:23.671500| +|step_list_key|successed||||2022-08-08 22:41:23.672459|2022-08-08 22:41:23.723282| +|step_regenerate_key|successed||||2022-08-08 22:41:23.723282|2022-08-08 22:41:23.774824| +|step_delete|successed||||2022-08-08 22:41:23.774824|2022-08-08 22:41:24.114065| Coverage: 9/9 From 6a5663f62e13a8b60a705c0ec7302f98d9759176 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 14:23:00 -0700 Subject: [PATCH 16/26] [Communication] Update help and readme for chat and identity, add more tests --- src/communication/README.md | 18 +- .../azext_communication/manual/_help.py | 170 +++++++++++++++++- .../recordings/test_chat_create_thread.yaml | 26 +-- .../recordings/test_chat_delete_thread.yaml | 138 ++++++++++++++ .../test_communication_chat_scenario.py | 16 ++ 5 files changed, 351 insertions(+), 17 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml diff --git a/src/communication/README.md b/src/communication/README.md index ada0634dfea..6c308110f4a 100644 --- a/src/communication/README.md +++ b/src/communication/README.md @@ -55,17 +55,29 @@ az communication regenerate-key --name "MyCommunicationResource" --key-type "Pri ``` az communication delete --name "MyCommunicationResource" --resource-group "MyResourceGroup" ``` +##### Create-User ##### +``` +az communication identity create-user +``` +##### Delete-User ##### +``` +az communication identity delete-user --user-id "8:acs:xxxxxx" +``` ##### Issue-Access-Token ##### ``` az communication identity issue-access-token --scope chat -az communication identity issue-access-token --scope chat voip --userid "8:acs:xxxxxx" +az communication identity issue-access-token --scope chat voip --user-id "8:acs:xxxxxx" ``` ##### Revoke-Access-Tokens ##### ``` -az communication identity revoke-access-tokens --userid "8:acs:xxxxxx" +az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" -az communication identity revoke-access-tokens --userid "8:acs:xxxxxx" "8:acs:xxxxxy" "8:acs:xxxxxz" +az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" "8:acs:xxxxxy" "8:acs:xxxxxz" +``` +##### Get-Token-For-Teams-User ##### +``` +az communication identity get-token-for-teams-user --aad-token "MyAzureADToken" --client-id "MyAzureADAppId" --user-object-id "MyTeamsUserId" ``` ##### Send-SMS ##### ``` diff --git a/src/communication/azext_communication/manual/_help.py b/src/communication/azext_communication/manual/_help.py index 737a049a0f4..8b750094c15 100644 --- a/src/communication/azext_communication/manual/_help.py +++ b/src/communication/azext_communication/manual/_help.py @@ -117,6 +117,24 @@ short-summary: Commands to manage User Identity for a CommunicationService resource. """ +helps['communication identity create-user'] = """ + type: command + short-summary: "Craetes a new ACS identity." + examples: + - name: create-user + text: |- + az communication identity create-user +""" + +helps['communication identity delete-user'] = """ + type: command + short-summary: "Deletes the ACS identity, revokes all tokens for the identity and deletes all associated data." + examples: + - name: delete-user + text: |- + az communication identity delete-user --user-id "8:acs:xxxxxx" +""" + helps['communication identity issue-access-token'] = """ type: command short-summary: "Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well." @@ -126,7 +144,25 @@ az communication identity issue-access-token --scope chat - name: issue-access-token with multiple scopes and userid text: |- - az communication identity issue-access-token --scope chat voip --userid "8:acs:xxxxxx" + az communication identity issue-access-token --scope chat voip --user-id "8:acs:xxxxxx" +""" + +helps['communication identity revoke-access-tokens'] = """ + type: command + short-summary: "Revokes all access tokens for the specific identity." + examples: + - name: revoke-access-tokens + text: |- + az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" +""" + +helps['communication identity get-token-for-teams-user'] = """ + type: command + short-summary: "Exchanges an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication Identity access token with a matching expiration time." + examples: + - name: get-token-for-teams-user + text: |- + az communication identity get-token-for-teams-user --aad-token "aad-123-xyz" --client-id "app-id-123-xyz" --user-object-id "uid" """ helps['communication sms'] = """ @@ -166,3 +202,135 @@ text: |- az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx" """ + +helps['communication chat'] = """ + type: group + short-summary: Commands to interact with Azure Communication Services Chat gateway. +""" + +helps['communication chat list-threads'] = """ + type: command + short-summary: "Gets the list of chat threads of a user." + examples: + - name: chat list-threads + text: |- + az communication chat list-threads +""" + +helps['communication chat create-thread'] = """ + type: command + short-summary: "Creates a chat thread." + examples: + - name: chat create-thread + text: |- + az communication chat create-thread --topic "chat-topic" +""" + +helps['communication chat delete-thread'] = """ + type: command + short-summary: "Deletes a chat thread." + examples: + - name: chat delete-thread + text: |- + az communication chat delete-thread --thread-id "19:a-bcd=xyz" +""" + +helps['communication chat list-participants'] = """ + type: command + short-summary: "Gets the participants of a chat thread." + examples: + - name: chat list-participants + text: |- + az communication chat list-participants --thread-id "19:a-bcd=xyz" --skip "4" +""" + +helps['communication chat add-participant'] = """ + type: command + short-summary: "Adds a participant to a chat thread." + examples: + - name: chat add-participant + text: |- + az communication chat add-participant --thread-id "19:a-bcd=xyz" --user-id "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-07-14T10:21" +""" + +helps['communication chat remove-participant'] = """ + type: command + short-summary: "Removes a participant to a chat thread." + examples: + - name: chat remove-participant + text: |- + az communication chat remove-participant --thread-id "19:a-bcd=xyz" --user-id "8:acs:xxxxxx" +""" + +helps['communication chat send-message'] = """ + type: command + short-summary: "Sends a message to a chat thread." + examples: + - name: chat send-message + text: |- + az communication chat send-message --thread-id "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text" +""" + +helps['communication chat list-messages'] = """ + type: command + short-summary: "Gets list of messages from a chat thread." + examples: + - name: chat list-messages + text: |- + az communication chat list-messages --thread-id "19:a-bcd=xyz" --start-time "2022-07-14T10:21" +""" + +helps['communication chat get-message'] = """ + type: command + short-summary: "Gets a message from a chat thread by id." + examples: + - name: chat get-message + text: |- + az communication chat get-message --thread-id "19:a-bcd=xyz" --message-id "12345678" +""" + +helps['communication chat update-message'] = """ + type: command + short-summary: "Updates a message." + examples: + - name: chat update-message + text: |- + az communication chat update-message --thread-id "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!" +""" + +helps['communication chat delete-message'] = """ + type: command + short-summary: "Deletes a message from a chat thread by id." + examples: + - name: chat delete-message + text: |- + az communication chat delete-message --thread-id "19:a-bcd=xyz" --message-id "12345678" +""" + +helps['communication chat update-topic'] = """ + type: command + short-summary: "Updates the topic of a chat thread." + examples: + - name: chat update-topic + text: |- + az communication chat update-topic --thread-id "19:a-bcd=xyz" --topic "New topic!" +""" + +helps['communication chat list-read-receipts'] = """ + type: command + short-summary: "Gets read receipts of a chat thread." + examples: + - name: chat list-read-receipts + text: |- + az communication chat list-read-receipts --thread-id "19:a-bcd=xyz" --skip "4" +""" + +helps['communication chat send-read-receipt'] = """ + type: command + short-summary: "Posts a read receipt event to a chat thread, on behalf of a user." + examples: + - name: chat send-read-receipt + text: |- + az communication chat send-read-receipt --thread-id "19:a-bcd=xyz" --message-id "12345678" +""" + diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index a3d2dcf21ae..6b23b7b4894 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:22:35 GMT + - Tue, 09 Aug 2022 00:20:00 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:22:36.2626723+00:00"}}' + "expiresOn": "2022-08-10T00:20:01.4346403+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:36 GMT + - Tue, 09 Aug 2022 00:20:01 GMT ms-cv: - - bCQxvX7iTkutk2guW8sulw.0 + - bYqRJApsyEi/i00r+3I4AA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222235Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000024m1t + - 20220809T002001Z-uc7yrm58kd5cb2tk4u9cfe74aw00000005a0000000013xhv x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 116ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) repeatability-request-id: - - 59bfb76e-51c1-4647-b58a-ea1b7a00c269 + - 4bdef2f8-c5c6-43ca-a007-2e0d640da650 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-08T22:22:36Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-09T00:20:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:37 GMT + - Tue, 09 Aug 2022 00:20:02 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A6qb38npfPAHcYf4v7s5Rj_bpT5fsJ3vWFPTtvbFTxZs1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A48cEM_arzL2lZaTE1kN_g6X_tPZ72ZFVFYYTEV_IHB41@thread.v2 ms-cv: - - tRcrnbO5IEey1mxhm0CGDA.0 + - X7jZP7QuyUSDfhJJx9c4Zg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222236Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001tmgq + - 20220809T002001Z-1ykan7zabt1sxfcs379b67eye8000000037000000002ppb3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 712ms + - 545ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml new file mode 100644 index 00000000000..c489581178b --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml @@ -0,0 +1,138 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 09 Aug 2022 16:55:51 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-10T16:55:52.6965013+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 Aug 2022 16:55:52 GMT + ms-cv: + - y6i8BzG+Zk+pumfJFA6uHw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0mJHyYgAAAACJBa4mgFqERLoBabTsbRExWVZSMzExMDAwMTE1MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 117ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "some-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 048396fd-de9d-439c-942c-62fda1445bdb + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": + "2022-08-09T16:55:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 09 Aug 2022 16:55:54 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3A0TffqmDzk9HeP0RsPzWhiyL4gUr6L3bjYI3Y2u9f3CE1@thread.v2 + ms-cv: + - i6mevZ44e02v65aP0/Ad6A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0mZHyYgAAAAAHc20sw65RQJjuEjGASogDWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 959ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-09-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + date: + - Tue, 09 Aug 2022 16:55:54 GMT + ms-cv: + - w2DUDcnzSk6tnSxT5A3CBw.0 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0mpHyYgAAAAA9R+M68NOLSLKrIDsImnU+WVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 204ms + status: + code: 204 + message: No Content +version: 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index 801565f179d..f96ffc44cc4 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -109,6 +109,7 @@ def test_chat_list_threads_no_token(self, communication_resource_info): from azure.cli.core.azclierror import RequiredArgumentMissingError self.kwargs.update({ 'endpoint': self.__get_endpoint_from_resource_info(communication_resource_info) }) + self.kwargs.pop('access-token', None) os.environ.pop('AZURE_COMMUNICATION_ACCESS_TOKEN', None) @@ -143,6 +144,21 @@ def test_chat_create_thread_without_topic(self, communication_resource_info): assert raises.exception.code == 2 + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_chat_delete_thread(self, communication_resource_info): + self.__update_environ(communication_resource_info) + + chat_topic = 'some-topic' + self.kwargs.update({ + 'topic': chat_topic }) + res = self.__create_thread(chat_topic) + thread_id = res['chatThread']['id'] + + self.kwargs.update({ 'thread_id': thread_id }) + self.cmd('az communication chat delete-thread --thread-id {thread_id}') + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_chat_list_participants(self, communication_resource_info): From e5e0a40cfc31c2abcdb9286412c18e1f320aa3db Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 14:39:30 -0700 Subject: [PATCH 17/26] [Communication] Remove python 3.6 to match python sdk and support all communication commands --- src/communication/setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/communication/setup.py b/src/communication/setup.py index ed9db695f4e..0a0b9a6690a 100644 --- a/src/communication/setup.py +++ b/src/communication/setup.py @@ -24,7 +24,6 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', From e6b74f063d32eb3be1451d960e71bd9e17020d98 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 14:42:33 -0700 Subject: [PATCH 18/26] [Communication] add dependency to azure-communication-identity >= 1.1.0 --- src/communication/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication/setup.py b/src/communication/setup.py index 0a0b9a6690a..19b5c79a603 100644 --- a/src/communication/setup.py +++ b/src/communication/setup.py @@ -29,7 +29,7 @@ 'License :: OSI Approved :: MIT License', ] -DEPENDENCIES = ['azure-core', 'azure-communication-identity', +DEPENDENCIES = ['azure-core', 'azure-communication-identity>=1.1.0', 'azure-communication-phonenumbers', 'azure-communication-sms', 'azure-communication-chat'] From b3f49fdc561d917455a7b59f433ff38921709c42 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 14:44:05 -0700 Subject: [PATCH 19/26] [Communication] address help file style warnings --- src/communication/azext_communication/manual/_help.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/communication/azext_communication/manual/_help.py b/src/communication/azext_communication/manual/_help.py index 8b750094c15..a930f308bfc 100644 --- a/src/communication/azext_communication/manual/_help.py +++ b/src/communication/azext_communication/manual/_help.py @@ -123,7 +123,7 @@ examples: - name: create-user text: |- - az communication identity create-user + az communication identity create-user """ helps['communication identity delete-user'] = """ @@ -333,4 +333,3 @@ text: |- az communication chat send-read-receipt --thread-id "19:a-bcd=xyz" --message-id "12345678" """ - From e2ed2efac6d6f77f0d7a37b1e8102a1495ca9d59 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 14:55:59 -0700 Subject: [PATCH 20/26] [Communication] add python-3.7 as required --- src/communication/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/communication/setup.py b/src/communication/setup.py index 19b5c79a603..42523aca151 100644 --- a/src/communication/setup.py +++ b/src/communication/setup.py @@ -54,6 +54,7 @@ license='MIT', classifiers=CLASSIFIERS, packages=find_packages(), + python_requires='>=3.7', install_requires=DEPENDENCIES, package_data={'azext_communication': ['azext_metadata.json']}, ) From 953e2d496eca220896b563c661f69fc86b17c147 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 9 Aug 2022 19:54:59 -0700 Subject: [PATCH 21/26] [Communication] update tests, record on python 3.8 --- .../recordings/test_chat_add_participant.yaml | 56 +-- .../test_chat_add_participant_bad_user.yaml | 50 +-- ...hat_add_participant_with_display_name.yaml | 58 ++-- ...hat_add_participant_with_history_time.yaml | 56 +-- .../recordings/test_chat_create_thread.yaml | 30 +- ...test_chat_create_thread_without_topic.yaml | 16 +- .../recordings/test_chat_delete_message.yaml | 50 +-- .../recordings/test_chat_delete_thread.yaml | 46 +-- .../recordings/test_chat_get_message.yaml | 56 +-- .../recordings/test_chat_list_messages.yaml | 62 ++-- .../test_chat_list_participants.yaml | 46 +-- ..._chat_list_participants_bad_thread_id.yaml | 26 +- .../test_chat_list_threads_no_endpoint.yaml | 14 +- ...t_chat_list_threads_with_cmdline_auth.yaml | 24 +- .../test_chat_list_threads_with_env_auth.yaml | 24 +- .../recordings/test_chat_read_receipts.yaml | 102 +++--- .../test_chat_remove_participants.yaml | 106 +++--- .../test_chat_send_html_message.yaml | 48 +-- .../recordings/test_chat_send_message.yaml | 48 +-- ...est_chat_send_message_without_content.yaml | 30 +- .../test_chat_send_text_message.yaml | 42 +-- .../recordings/test_chat_update_message.yaml | 52 +-- .../recordings/test_chat_update_topic.yaml | 40 +-- .../test_communication_scenario.yaml | 164 ++++----- .../latest/recordings/test_create_user.yaml | 55 +++ .../latest/recordings/test_delete_user.yaml | 102 ++++++ .../recordings/test_issue_access_token.yaml | 14 +- .../test_issue_access_token_with_id.yaml | 32 +- ...sue_access_token_with_multiple_scopes.yaml | 16 +- .../recordings/test_list_phonenumbers.yaml | 122 ++++--- .../recordings/test_revoke_access_tokens.yaml | 28 +- .../latest/recordings/test_send_sms.yaml | 112 +++--- .../test_send_sms_n_recipients.yaml | 318 +++++++++--------- .../recordings/test_show_phonenumbers.yaml | 110 +++--- .../test_communication_chat_scenario.py | 17 - .../test_communication_identity_scenario.py | 19 ++ .../test_communication_scenario_coverage.md | 18 +- 37 files changed, 1216 insertions(+), 993 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml index e1ce14087b0..3187a15d44b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:57 GMT + - Wed, 10 Aug 2022 02:08:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:20:58.3288753+00:00"}}' + "expiresOn": "2022-08-11T02:08:18.1405279+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:58 GMT + - Wed, 10 Aug 2022 02:08:18 GMT ms-cv: - - eb73yOFmJESXUUYyLh7bpg.0 + - fI7/ZVlyHkaTkZzjcmV/hQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000055g00000000u8u4 + - 20220810T020817Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug0000000055cq x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 225ms status: code: 201 message: Created @@ -67,11 +67,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:58 GMT + - Wed, 10 Aug 2022 02:08:18 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -79,7 +79,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:20:58.9078171+00:00"}}' + "expiresOn": "2022-08-11T02:08:18.7997812+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:18 GMT ms-cv: - - cw81KCqDXU64xL2ClOryfQ.0 + - KvLB2yF7yU+LxhtwDtTI1A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222058Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000frqu + - 20220810T020818Z-huevmdadqx2sz9yxspbd0a0pg800000000s000000000rcm5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 143ms status: code: 201 message: Created @@ -121,15 +121,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - eb88ebc4-57c8-4894-9164-7d5653eaab4e + - 6b9bb915-dc8c-47a9-ad58-a27f24e07ec3 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:08:19Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -139,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:20 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AOlqElfBxa4nDy6BPor4q43CebIGAxN1GX-miek7y2TA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AaSmQGitZlMnaiiDv9lOwJ0Jj_ZSgA0NUlDXwRZ1l2pg1@thread.v2 ms-cv: - - yzmNur2gIkSodm6Jjumicg.0 + - tfmeFenQykaHLjU5vLy4JA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222059Z-afb852g2vh6591nsqudzty20xs000000056g00000000n3m9 + - 20220810T020819Z-s1214kcr1x3rx7q1xwqyxffbgw00000000r000000001xegx x-cache: - CONFIG_NOCACHE x-processing-time: - - 921ms + - 888ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:648db452-6cf0-4f59-b4c5-48df9b6207a7_00000013-1f6d-a896-69ff-9c3a0d00f411"}}}]}' + "8:acs:8d660a5d-2f5c-46a0-8d5c-5e70721b8412_00000013-2564-256a-b4f1-9c3a0d007f69"}}}]}' headers: Accept: - application/json @@ -172,7 +172,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -186,19 +186,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:01 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - 78sGbHuVTkS2TGQL1vAzlQ.0 + - z5LJZO83PUi+yKv0swbJWw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222100Z-tm7vmh1bsd3kxfvqbrpytcwbkg00000005600000000206n4 + - 20220810T020820Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002dv8f x-cache: - CONFIG_NOCACHE x-processing-time: - - 160ms + - 217ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml index 93a113e32d7..07d63bb27ac 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:57 GMT + - Wed, 10 Aug 2022 02:08:18 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:20:58.0890131+00:00"}}' + "expiresOn": "2022-08-11T02:08:18.6268046+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:58 GMT + - Wed, 10 Aug 2022 02:08:18 GMT ms-cv: - - Qa3Q89E7YEK4qDcmhEx/Qw.0 + - WtevSC8MIk+EVw6Ce6rfUw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222058Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001tfss + - 20220810T020818Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001f8th x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 116ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 840eaf0b-092d-4f2f-ba5d-bb64fea9d839 + - f0dbbc47-172e-436d-9b07-45e8016820fb method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-08T22:20:58Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:08:19Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:19 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A9gvdOV5cxRSOmdfRaI980k2LWJYJxfc9oQlqIoya3_M1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AC4O4tWI-vqoQ4OaomJxNea-fCHDywqDu5g2ndKo-pMk1@thread.v2 ms-cv: - - XnnJO0Ubn0WMmPqMXj6xZg.0 + - 9y7SssfV6Ui+bulINgPnUA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000055g00000000u8x9 + - 20220810T020818Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001bx84 x-cache: - CONFIG_NOCACHE x-processing-time: - - 702ms + - 920ms status: code: 201 message: Created @@ -118,7 +118,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -133,19 +133,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - +CLq0cFgCEGpgZwQ6hVV5Q.0 + - apQ+xHZ/F0+Z9qQJwOQ/rQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222059Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000023kx0 + - 20220810T020820Z-wa551hkds961h6e2hcntxt8eh400000000q000000002243x x-cache: - CONFIG_NOCACHE x-processing-time: - - 220ms + - 213ms status: code: 201 message: Created @@ -164,7 +164,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -179,19 +179,19 @@ interactions: content-type: - application/json date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - zMSk3JlGD0Wik37aD/YA9g.0 + - FaenLViGkUKYiosY4xKeow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222100Z-tur6dybg817yr054hm9efewep800000004eg000000024327 + - 20220810T020820Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000rg0000000183dq x-cache: - CONFIG_NOCACHE x-processing-time: - - 57ms + - 28ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml index e1de5214412..949535d1e04 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:57 GMT + - Wed, 10 Aug 2022 02:08:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:20:58.410046+00:00"}}' + "expiresOn": "2022-08-11T02:08:18.2573045+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:58 GMT + - Wed, 10 Aug 2022 02:08:18 GMT ms-cv: - - pbIO7fc4FkaMCL0g/Qjx6Q.0 + - EJtZaSn1TEmyWftDP1WMAg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222058Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001ss77 + - 20220810T020818Z-gu5mc89ux17apbrm5n76u6e4ng00000000q000000001vyhh x-cache: - CONFIG_NOCACHE x-processing-time: - - 110ms + - 114ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 3bac1894-e43f-49d7-9cc0-a9ba60b8e532 + - b9602bd0-f559-4a0e-8542-69157eb9f696 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:08:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:19 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AtsDwQU1hLhhnF5vKtSqDD4dC4k8uASpBnnclhEmAqrM1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AIODx0rB3ctnDNH-uNthmsDlzAwXAOZ0qUC8lFJT1fNo1@thread.v2 ms-cv: - - 0OvQDM6JdUGojbnKIBid2Q.0 + - SwZvZBid5kG0jIbGpdBDyw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222058Z-afb852g2vh6591nsqudzty20xs0000000580000000003xdv + - 20220810T020818Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001w8ph x-cache: - CONFIG_NOCACHE x-processing-time: - - 651ms + - 551ms status: code: 201 message: Created @@ -117,11 +117,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:19 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -129,7 +129,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:21:00.2173573+00:00"}}' + "expiresOn": "2022-08-11T02:08:19.5054119+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -141,25 +141,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:19 GMT ms-cv: - - vr/iumFwSE2o0PdI5aUHLw.0 + - iOzJjAt+7EaN8aE/u7p2Rg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222059Z-qtfd0d2efh3zh2gzxzkdhtv168000000054g00000001tksx + - 20220810T020819Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000rg00000000hqde x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 159ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:a975c1aa-8997-4d07-a29d-bcd72f8b8903_00000013-1f6d-adb3-9806-113a0d00f911"}}, + "8:acs:ccb08cd8-be98-4615-9496-ae70b5a358db_00000013-2564-282c-570c-113a0d00907d"}}, "displayName": "John Doe"}]}' headers: Accept: @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -187,19 +187,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - UF8YIxkE4Eq0CE2wHta5+g.0 + - xlSAriudp0SwxwcIvLQtZQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222100Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001tgnu + - 20220810T020819Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000k75f x-cache: - CONFIG_NOCACHE x-processing-time: - - 168ms + - 311ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml index dd851f248d3..f7778787d18 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:57 GMT + - Wed, 10 Aug 2022 02:08:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:20:58.3819296+00:00"}}' + "expiresOn": "2022-08-11T02:08:18.2732928+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:58 GMT + - Wed, 10 Aug 2022 02:08:18 GMT ms-cv: - - GzAEuKxL/kWJh2BnIw3Mtg.0 + - qEGMAfegSUykkh8ZllJOsg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222058Z-tur6dybg817yr054hm9efewep800000004e000000002sd96 + - 20220810T020817Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001nf1z x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 113ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 721c36a2-3a09-4b6d-a79b-9677a93fe6db + - 48f348d5-7945-43c6-933c-3941f1734115 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-08T22:20:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:08:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:19 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A3LHqAYg1zhBaqvAVDwtSdm7TqkSdthorDuQKp-f31tE1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AED3UoWH8YDw0PYn1-zod3PuuPSZdURzzk9KSOc0sH_E1@thread.v2 ms-cv: - - wKI+SV2D7UqNqE80YoNm0Q.0 + - 0gSBNPxLd0WAkNeq+qMOXw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222058Z-uc7yrm58kd5cb2tk4u9cfe74aw0000000570000000023kp8 + - 20220810T020818Z-pvk0k4gqx51st0bh1fssf7cw3000000000q000000002ksvw x-cache: - CONFIG_NOCACHE x-processing-time: - - 600ms + - 909ms status: code: 201 message: Created @@ -117,11 +117,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:20:59 GMT + - Wed, 10 Aug 2022 02:08:19 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -129,7 +129,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:21:00.1707202+00:00"}}' + "expiresOn": "2022-08-11T02:08:19.9181304+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -141,25 +141,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:00 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - WWZB1At6VUWyye5DQFLbqw.0 + - lK9keqLRk0uaQg6O1HRlLw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222059Z-afb852g2vh6591nsqudzty20xs000000057g0000000076nt + - 20220810T020819Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug0000000055uv x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 112ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:257d3a6a-4a24-4368-b0ae-bf1e798c54d0_00000013-1f6d-ad85-3dfe-9c3a0d00f29c"}}, + "8:acs:e926dacb-fec6-48b8-b264-fdc7db4712a1_00000013-2564-29c9-570c-113a0d00907e"}}, "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' headers: Accept: @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -187,19 +187,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:21:01 GMT + - Wed, 10 Aug 2022 02:08:20 GMT ms-cv: - - EO9kQOHU9UODO8aUM0WUDA.0 + - TEvPOVcFbkKK6LTJo07h6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222100Z-kpegq6a2qh4nr419q7tfax5sn4000000056000000000h8h4 + - 20220810T020820Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001bxmy x-cache: - CONFIG_NOCACHE x-processing-time: - - 352ms + - 240ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index 6b23b7b4894..511df8106d0 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 09 Aug 2022 00:20:00 GMT + - Wed, 10 Aug 2022 02:09:56 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-10T00:20:01.4346403+00:00"}}' + "expiresOn": "2022-08-11T02:09:56.6547451+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 Aug 2022 00:20:01 GMT + - Wed, 10 Aug 2022 02:09:56 GMT ms-cv: - - bYqRJApsyEi/i00r+3I4AA.0 + - nlNaLMBtTEWksu0rNFWO/Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220809T002001Z-uc7yrm58kd5cb2tk4u9cfe74aw00000005a0000000013xhv + - 20220810T020956Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001p8ps x-cache: - CONFIG_NOCACHE x-processing-time: - - 116ms + - 113ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 4bdef2f8-c5c6-43ca-a007-2e0d640da650 + - 0904d6ea-7ce8-40f0-9504-4a0bcb46ce1c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-09T00:20:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:09:57Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 09 Aug 2022 00:20:02 GMT + - Wed, 10 Aug 2022 02:09:57 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A48cEM_arzL2lZaTE1kN_g6X_tPZ72ZFVFYYTEV_IHB41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AIzaPB8YgytBgjlrsUGu8ssagDGlyE1zI963jrNMfkhw1@thread.v2 ms-cv: - - X7jZP7QuyUSDfhJJx9c4Zg.0 + - bt0YAs493kWJQS4y0qNMGg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220809T002001Z-1ykan7zabt1sxfcs379b67eye8000000037000000002ppb3 + - 20220810T020956Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000q0000000038but x-cache: - CONFIG_NOCACHE x-processing-time: - - 545ms + - 621ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml index f12740b8e1d..49d543bcca2 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:22:35 GMT + - Wed, 10 Aug 2022 02:09:56 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:22:36.291509+00:00"}}' + "expiresOn": "2022-08-11T02:09:56.8588526+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:36 GMT + - Wed, 10 Aug 2022 02:09:56 GMT ms-cv: - - XSG1bX8jX06kRl0GMEUsBA.0 + - dZ1pCMlI0UKqFd65ukNDnA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222235Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000058000000000xv8m + - 20220810T020956Z-gu5mc89ux17apbrm5n76u6e4ng00000000r00000000122rt x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 116ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 294d9e6ed51..4b5dd150ed5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:22:35 GMT + - Wed, 10 Aug 2022 02:09:55 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:22:36.3096812+00:00"}}' + "expiresOn": "2022-08-11T02:09:56.2092693+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,15 +37,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:36 GMT + - Wed, 10 Aug 2022 02:09:56 GMT ms-cv: - - mEyRZ3mDg0CowtgilmdVjw.0 + - n5wFxD0f30eip637QFQStQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222235Z-tur6dybg817yr054hm9efewep800000004fg000000013n3d + - 20220810T020956Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000789n x-cache: - CONFIG_NOCACHE x-processing-time: @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - b400e577-3772-4c59-aaf2-928286577e91 + - 7adc102f-0f0d-467c-be1a-736368efd106 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-08T22:22:36Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:09:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:37 GMT + - Wed, 10 Aug 2022 02:09:57 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AdYvPEIhs5JGSn6ZmzOWnxiaSi3uPbSQdNxmq3Urmkg41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ATdrOi3dbOwdNkyJSri5mJIIGUDAeW9FTbQ7dJ1F-j7w1@thread.v2 ms-cv: - - Z88Oo5O+kEqlZe78bCXu7Q.0 + - s3Pb+ZvenkKNex52kWzJyA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222236Z-afb852g2vh6591nsqudzty20xs000000057000000000dz2a + - 20220810T020956Z-wa551hkds961h6e2hcntxt8eh400000000r000000001ex8w x-cache: - CONFIG_NOCACHE x-processing-time: - - 636ms + - 997ms status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:38 GMT + - Wed, 10 Aug 2022 02:09:58 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AdYvPEIhs5JGSn6ZmzOWnxiaSi3uPbSQdNxmq3Urmkg41@thread.v2/messages/1659997357995 + - https://clitest000002.communication.azure.com/chat/threads/19%3ATdrOi3dbOwdNkyJSri5mJIIGUDAeW9FTbQ7dJ1F-j7w1@thread.v2/messages/1660097397986 ms-cv: - - aenEGuPX+EaRJmWVs/KUsw.0 + - OskWUqNl4US9600Rl3NEVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222237Z-q1z3stmybd47948vv0qhv9299w000000056g00000000crv0 + - 20220810T020957Z-wa551hkds961h6e2hcntxt8eh400000000t0000000007g5k x-cache: - CONFIG_NOCACHE x-processing-time: - - 230ms + - 190ms status: code: 201 message: Created @@ -163,7 +163,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Mon, 08 Aug 2022 22:22:38 GMT + - Wed, 10 Aug 2022 02:09:58 GMT ms-cv: - - WTFrP62nrUi43WvFHfv6fA.0 + - e2kiKtrBQ0qAFxYhPTgW3A.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222238Z-91tba13kdd5mrb8h3w91379wbg000000054g00000001tn1s + - 20220810T020958Z-qw4txeh9r90g5czxetkag1fv6000000000rg000000013c70 x-cache: - CONFIG_NOCACHE x-processing-time: - - 334ms + - 386ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml index c489581178b..141c1944e27 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 09 Aug 2022 16:55:51 GMT + - Wed, 10 Aug 2022 02:09:55 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-10T16:55:52.6965013+00:00"}}' + "expiresOn": "2022-08-11T02:09:55.8662106+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, 09 Aug 2022 16:55:52 GMT + - Wed, 10 Aug 2022 02:09:55 GMT ms-cv: - - y6i8BzG+Zk+pumfJFA6uHw.0 + - WylWM0I+1kmCzJEkebiJgw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0mJHyYgAAAACJBa4mgFqERLoBabTsbRExWVZSMzExMDAwMTE1MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T020955Z-87ct2dqpah4z7432w4frs4m4s400000000t0000000008e7d x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 114ms status: code: 201 message: Created @@ -65,37 +67,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 048396fd-de9d-439c-942c-62fda1445bdb + - 31fdf4b3-eb88-4d9f-867a-37bad50bd3a8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-09T16:55:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:09:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 09 Aug 2022 16:55:54 GMT + - Wed, 10 Aug 2022 02:09:56 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A0TffqmDzk9HeP0RsPzWhiyL4gUr6L3bjYI3Y2u9f3CE1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AME7bCvOA7MKHXEDcRNyRvb9hhktdXfbi24O2-u1pOhk1@thread.v2 ms-cv: - - i6mevZ44e02v65aP0/Ad6A.0 + - 7TH2NnQ7vkuaWZLSHDqGnA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0mZHyYgAAAAAHc20sw65RQJjuEjGASogDWVZSMzExMDAwMTE2MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T020956Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001x2bq x-cache: - CONFIG_NOCACHE x-processing-time: - - 959ms + - 551ms status: code: 201 message: Created @@ -111,7 +115,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-09-07 response: @@ -120,18 +124,20 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive date: - - Tue, 09 Aug 2022 16:55:54 GMT + - Wed, 10 Aug 2022 02:09:57 GMT ms-cv: - - w2DUDcnzSk6tnSxT5A3CBw.0 + - 6Wq0aeAcmk6Qqb+BJ3n2Tw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0mpHyYgAAAAA9R+M68NOLSLKrIDsImnU+WVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T020957Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001g7kz x-cache: - CONFIG_NOCACHE x-processing-time: - - 204ms + - 343ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index 0cd626097f7..e7a89d725a3 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:22:35 GMT + - Wed, 10 Aug 2022 02:11:33 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:22:36.6187256+00:00"}}' + "expiresOn": "2022-08-11T02:11:34.1869344+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:36 GMT + - Wed, 10 Aug 2022 02:11:34 GMT ms-cv: - - LjiImZp8ZkKZUmxwk+mu1Q.0 + - oh8YJLBOjUy9QuiHkk/WLw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222236Z-kpegq6a2qh4nr419q7tfax5sn4000000055g00000000zudv + - 20220810T021133Z-huevmdadqx2sz9yxspbd0a0pg800000000s000000000s2e9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 114ms + - 113ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - c9a23501-04ab-432e-95d7-177b30345e5f + - 41e53daa-da8b-4ea4-a0ae-3c3d596d1f86 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-08T22:22:37Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:11:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:37 GMT + - Wed, 10 Aug 2022 02:11:35 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AhQ7bwVTGDHgwIktEr4cpg-bw6QidkbtYmBGB7Chf8Bs1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AUMfZNZ42WtEG1bV-fS9ESDzorE2E7lacwfKYMUlJIn41@thread.v2 ms-cv: - - fqFIV2gxbU+rYJEcrI3Vtw.0 + - GNZD/p/l4UyY/gqO3ippMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222236Z-91tba13kdd5mrb8h3w91379wbg000000056000000000fm1u + - 20220810T021134Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u00000000057x4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 596ms + - 574ms status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:38 GMT + - Wed, 10 Aug 2022 02:11:35 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AhQ7bwVTGDHgwIktEr4cpg-bw6QidkbtYmBGB7Chf8Bs1@thread.v2/messages/1659997358363 + - https://clitest000002.communication.azure.com/chat/threads/19%3AUMfZNZ42WtEG1bV-fS9ESDzorE2E7lacwfKYMUlJIn41@thread.v2/messages/1660097495744 ms-cv: - - XNsOyAv7GkiI+u1xnJjD5A.0 + - W2UQ9lxqHU+M1t9hacVJ9g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222238Z-q1z3stmybd47948vv0qhv9299w000000056g00000000crwy + - 20220810T021135Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000tg00000000087a x-cache: - CONFIG_NOCACHE x-processing-time: - - 152ms + - 138ms status: code: 201 message: Created @@ -159,13 +159,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1659997358363", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-08T22:22:38Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1660097495744", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-10T02:11:35Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -176,19 +176,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:22:39 GMT + - Wed, 10 Aug 2022 02:11:36 GMT ms-cv: - - 6dCQVg8PE0WsUweeuxg+JQ.0 + - m+mXnt/xQE+WhkZpfuXGcw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222238Z-nntkv2q0nd3zt4kemgcvznhu24000000058000000000xqze + - 20220810T021136Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001dyen x-cache: - CONFIG_NOCACHE x-processing-time: - - 88ms + - 24ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index e8ffc4543c5..0974aac7a7a 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:24:11 GMT + - Wed, 10 Aug 2022 02:13:10 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:24:12.5111707+00:00"}}' + "expiresOn": "2022-08-11T02:13:11.6465607+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:24:12 GMT + - Wed, 10 Aug 2022 02:13:11 GMT ms-cv: - - 3jEeqf4S/E+Jq3HFCqyjGw.0 + - CQ6fRPrjD0mQBx54kjvzUg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222412Z-kpegq6a2qh4nr419q7tfax5sn4000000055000000001hcwn + - 20220810T021311Z-3p5ky3fhux53tbptzht9t6u5qg00000000vg000000003rwz x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 112ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 9f0255de-7ce6-4760-b927-3dfda6fcb620 + - a4c280b2-53af-4ebe-a0ca-e5a8eedd035e method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-08T22:24:13Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:13:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:24:13 GMT + - Wed, 10 Aug 2022 02:13:12 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A2TLYnsWNIN6_6bkXI1Gv5GyX17GWVLVeFh0jW4oScY81@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AjgVveGQHhNExBN2D7vFaxEx4Db760bP4CbZPXEOAPrU1@thread.v2 ms-cv: - - L8C3iZZ6REuS8+QoKfG0tg.0 + - 7O8M/z7Q006tO9DJa4sibw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222412Z-afb852g2vh6591nsqudzty20xs000000056000000001085n + - 20220810T021311Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000rg00000000m3p8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 636ms + - 745ms status: code: 201 message: Created @@ -113,23 +113,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659997453520", "type": "topicUpdated", "sequenceId": - "2", "version": "1659997453520", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", - "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}}, - "createdOn": "2022-08-08T22:24:13Z"}, {"id": "1659997453439", "type": "participantAdded", - "sequenceId": "1", "version": "1659997453439", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", - "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}, + string: '{"value": [{"id": "1660097592563", "type": "topicUpdated", "sequenceId": + "2", "version": "1660097592563", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", + "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}}, + "createdOn": "2022-08-10T02:13:12Z"}, {"id": "1660097592473", "type": "participantAdded", + "sequenceId": "1", "version": "1660097592473", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", + "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461", - "communicationUser": {"id": "8:acs:c59b3764-6ca0-4a45-a817-1b60f127f312_00000013-1f70-9cda-69ff-9c3a0d00f461"}}}, - "createdOn": "2022-08-08T22:24:13Z"}]}' + {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", + "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}}, + "createdOn": "2022-08-10T02:13:12Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -138,19 +138,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:24:14 GMT + - Wed, 10 Aug 2022 02:13:13 GMT ms-cv: - - EZJb+N1XXUydCAjO5vXz7w.0 + - VsjTLNOrK0+vf7pJ4Zs0CQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222414Z-4wf38k6bv57vh8d4wkrqw24dx0000000038g00000000ktc9 + - 20220810T021313Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug000000007sa9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 94ms + - 97ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index e9c637ef469..9f39edb10ad 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:25:49 GMT + - Wed, 10 Aug 2022 02:11:32 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:25:49.9241774+00:00"}}' + "expiresOn": "2022-08-11T02:11:33.285612+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '122' + - '121' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:50 GMT + - Wed, 10 Aug 2022 02:11:33 GMT ms-cv: - - b/wFgmm2GUezFQcXI0KJ+Q.0 + - D1YI8gTYYUKFGnYTiB2TCQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222549Z-q1z3stmybd47948vv0qhv9299w000000055g000000015bru + - 20220810T021133Z-pvk0k4gqx51st0bh1fssf7cw3000000000qg000000028v9g x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 113ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 5c6019a6-4f13-4a44-b49b-a5848b786ed5 + - dd35c277-1f22-4076-bc0f-6f22da2ab14b method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-08T22:25:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:11:33Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:51 GMT + - Wed, 10 Aug 2022 02:11:34 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AG6_QXTgLPsd1UKOJ33A7SB0-O76jMG3BFZDfnCFraa41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Aglfz1FXnrxhFhsoupGAOL6kOLmaQ5vTaV3CthEsdbBA1@thread.v2 ms-cv: - - fhRP135COkuf9vq8KxsdCg.0 + - 9G/dKYmRzEirGG2BtVtJEg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222550Z-afb852g2vh6591nsqudzty20xs000000057000000000fq33 + - 20220810T021133Z-87ct2dqpah4z7432w4frs4m4s400000000ug0000000037v5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 592ms + - 853ms status: code: 201 message: Created @@ -113,13 +113,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:497b0010-29c8-49d9-9886-c1967ac9ee11_00000013-1f72-195f-9ffb-9c3a0d00d5a5", - "communicationUser": {"id": "8:acs:497b0010-29c8-49d9-9886-c1967ac9ee11_00000013-1f72-195f-9ffb-9c3a0d00d5a5"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:11ca8201-f76e-4be3-816d-abeb54de3f90_00000013-2567-1d21-290c-113a0d006c88", + "communicationUser": {"id": "8:acs:11ca8201-f76e-4be3-816d-abeb54de3f90_00000013-2567-1d21-290c-113a0d006c88"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -129,19 +129,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:51 GMT + - Wed, 10 Aug 2022 02:11:35 GMT ms-cv: - - BPaRlIFllE2cbuIHPr/s4g.0 + - Wt6kh9uiGEiAYIdFD1lxjw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222551Z-tur6dybg817yr054hm9efewep800000004eg0000000277tf + - 20220810T021134Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u0000000007xhn x-cache: - CONFIG_NOCACHE x-processing-time: - - 84ms + - 181ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index f8daa6bdc3f..c8523307fac 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:24:13 GMT + - Wed, 10 Aug 2022 02:13:09 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:24:14.437718+00:00"}}' + "expiresOn": "2022-08-11T02:13:10.1902253+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:24:14 GMT + - Wed, 10 Aug 2022 02:13:10 GMT ms-cv: - - 7ivSNf9DF0iNyKMxIfAzIQ.0 + - g0d2bMw5mkOLunIFQ/W1fw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222414Z-nntkv2q0nd3zt4kemgcvznhu24000000057g00000001a7up + - 20220810T021309Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000qg00000002stg0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 127ms + - 111ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: @@ -77,19 +77,19 @@ interactions: content-type: - application/json date: - - Mon, 08 Aug 2022 22:24:15 GMT + - Wed, 10 Aug 2022 02:13:10 GMT ms-cv: - - BvDt5HrKxEmBJVZr7zqKqw.0 + - DxO/3sX34kq6Tab16YFF5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222414Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000056g00000001rwqq + - 20220810T021310Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000t000000000c90c x-cache: - CONFIG_NOCACHE x-processing-time: - - 218ms + - 290ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml index cae96f40391..e08d1966740 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:24:11 GMT + - Wed, 10 Aug 2022 02:11:32 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:24:12.7838836+00:00"}}' + "expiresOn": "2022-08-11T02:11:33.2940748+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:24:12 GMT + - Wed, 10 Aug 2022 02:11:33 GMT ms-cv: - - dlF+ebH7IkWOrSbJnqNcAw.0 + - iTpY4+5BZk29SY6veHmjGA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222412Z-uc7yrm58kd5cb2tk4u9cfe74aw000000057g00000001tfwp + - 20220810T021133Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000r00000000214ze x-cache: - CONFIG_NOCACHE x-processing-time: - - 144ms + - 109ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index 428dc845038..f06be5eb81b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:25:47 GMT + - Wed, 10 Aug 2022 02:11:32 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:25:48.4394576+00:00"}}' + "expiresOn": "2022-08-11T02:11:33.4465214+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:48 GMT + - Wed, 10 Aug 2022 02:11:33 GMT ms-cv: - - Jg9TGd54TEemT1NrOZo87w.0 + - +AMeyQklJE+A3wT/QyACDg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222548Z-tur6dybg817yr054hm9efewep800000004fg000000014w67 + - 20220810T021133Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001h7k1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 118ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:49 GMT + - Wed, 10 Aug 2022 02:11:33 GMT ms-cv: - - ZQCxGztluEGS/gcaWQNo3g.0 + - 8KXcm+WUCk6uYEryHXgj/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222548Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001czsn + - 20220810T021133Z-87ct2dqpah4z7432w4frs4m4s400000000t0000000009mp0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 87ms + - 77ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index bc4e46710dc..0530b76b570 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:25:49 GMT + - Wed, 10 Aug 2022 02:13:08 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:25:49.9208646+00:00"}}' + "expiresOn": "2022-08-11T02:13:09.3969149+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:50 GMT + - Wed, 10 Aug 2022 02:13:09 GMT ms-cv: - - G+Qly9swtE6iEz4rSO7wfQ.0 + - ETqa6ceOIEevTRvJ9cSp8w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222549Z-4wf38k6bv57vh8d4wkrqw24dx0000000036g00000001wzys + - 20220810T021309Z-gu5mc89ux17apbrm5n76u6e4ng00000000q000000001zq88 x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 112ms status: code: 201 message: Created @@ -63,7 +63,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:50 GMT + - Wed, 10 Aug 2022 02:13:09 GMT ms-cv: - - s2+ZU0Cuhk6A4nRX3R54Xw.0 + - k2OYjpuQIEyboZgo0DbK+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222550Z-1ykan7zabt1sxfcs379b67eye8000000037g00000000dkb0 + - 20220810T021309Z-wa551hkds961h6e2hcntxt8eh400000000rg000000015gtr x-cache: - CONFIG_NOCACHE x-processing-time: - - 19ms + - 80ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index ef81785fa58..a61b40e1d46 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:25:48 GMT + - Wed, 10 Aug 2022 02:13:08 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:25:49.4420099+00:00"}}' + "expiresOn": "2022-08-11T02:13:09.4023638+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:49 GMT + - Wed, 10 Aug 2022 02:13:09 GMT ms-cv: - - Zbjmvr0qtEWjkcWQ7f50Iw.0 + - FpbYQHgvBUCi1I8lYEhdlg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222549Z-afb852g2vh6591nsqudzty20xs000000056000000001195d + - 20220810T021309Z-pvk0k4gqx51st0bh1fssf7cw3000000000r000000001qqgw x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 111ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 2f633236-5577-4ad6-8659-0f2d82fbe862 + - 264169b2-6924-417a-89b3-bee8cc7b7c11 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-08T22:25:50Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:13:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:50 GMT + - Wed, 10 Aug 2022 02:13:10 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASVy-d1J316jFnvtQe_cVaJ6SLcQl0Y8xunMNbWxENMM1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A9Kic1ubleycEwjIUPHMWF1QLq5v1ylcWhsUIq2GfVCo1@thread.v2 ms-cv: - - VcFIgfhl60uCU21n5vXi4A.0 + - xJltmqHz9kiB6ntEdFVPKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222549Z-1ykan7zabt1sxfcs379b67eye8000000039g000000000zsz + - 20220810T021309Z-87ct2dqpah4z7432w4frs4m4s400000000tg000000008mek x-cache: - CONFIG_NOCACHE x-processing-time: - - 709ms + - 828ms status: code: 201 message: Created @@ -113,7 +113,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: @@ -127,19 +127,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:51 GMT + - Wed, 10 Aug 2022 02:13:11 GMT ms-cv: - - 9YrMLw/MJU+humfS/mlgxA.0 + - 9ew/BqFemUyRJIYbkZI31Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222550Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000057000000001g7qg + - 20220810T021310Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000030xcf x-cache: - CONFIG_NOCACHE x-processing-time: - - 82ms + - 138ms status: code: 200 message: OK @@ -153,23 +153,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1659997550500", "type": "topicUpdated", "sequenceId": - "2", "version": "1659997550500", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", - "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}}, - "createdOn": "2022-08-08T22:25:50Z"}, {"id": "1659997550475", "type": "participantAdded", - "sequenceId": "1", "version": "1659997550475", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", - "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}, + string: '{"value": [{"id": "1660097590411", "type": "topicUpdated", "sequenceId": + "2", "version": "1660097590411", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", + "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}}, + "createdOn": "2022-08-10T02:13:10Z"}, {"id": "1660097590327", "type": "participantAdded", + "sequenceId": "1", "version": "1660097590327", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", + "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", - "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}}, - "createdOn": "2022-08-08T22:25:50Z"}]}' + {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", + "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}}, + "createdOn": "2022-08-10T02:13:10Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -178,24 +178,24 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:51 GMT + - Wed, 10 Aug 2022 02:13:11 GMT ms-cv: - - dmzOrNOZ/kCDASY6DiqrSg.0 + - 24O/ongIPkKPwLg7PNNKCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222551Z-1ykan7zabt1sxfcs379b67eye8000000037g00000000dkmh + - 20220810T021311Z-s1214kcr1x3rx7q1xwqyxffbgw00000000r000000001zrqq x-cache: - CONFIG_NOCACHE x-processing-time: - - 157ms + - 132ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1659997550500"}' + body: '{"chatMessageId": "1660097590411"}' headers: Accept: - application/json @@ -208,7 +208,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: @@ -224,17 +224,17 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:25:52 GMT + - Wed, 10 Aug 2022 02:13:11 GMT ms-cv: - - AcFjkvkhg0yFproQmyhxFA.0 + - 0AlkKuTwG0q4kX2BVG1nXw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222552Z-91tba13kdd5mrb8h3w91379wbg000000056000000000gy47 + - 20220810T021311Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001sp63 x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 178ms status: code: 200 message: OK @@ -248,33 +248,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3", - "communicationUser": {"id": "8:acs:02d6f49c-ac10-4eef-a3b3-6e1f182591fc_00000013-1f72-177d-570c-113a0d0006f3"}}, - "chatMessageId": "1659997550500", "readOn": "2022-08-08T22:25:52Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", + "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}, + "chatMessageId": "1660097590411", "readOn": "2022-08-10T02:13:11Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:25:52 GMT + - Wed, 10 Aug 2022 02:13:12 GMT ms-cv: - - VTf7JReOfUuBhqtN8PQFfg.0 + - sKAesHFw0kutaH2qdr7cjQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0cI3xYgAAAACZBdkzXWx4QpPco04GMlcLWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021312Z-87ct2dqpah4z7432w4frs4m4s400000000vg000000001ndt x-cache: - CONFIG_NOCACHE x-processing-time: - - 148ms + - 82ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index 04bfb9f1098..f1e56121bcd 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:27:23 GMT + - Wed, 10 Aug 2022 02:14:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:27:24.7027108+00:00"}}' + "expiresOn": "2022-08-11T02:14:48.1526053+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:24 GMT + - Wed, 10 Aug 2022 02:14:48 GMT ms-cv: - - Lm69KOPffkqZ13jelI0XJw.0 + - ONyBodEWBkOB1FRMeu7anA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222724Z-kpegq6a2qh4nr419q7tfax5sn40000000570000000003y3w + - 20220810T021447Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000r0000000011zww x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 115ms status: code: 201 message: Created @@ -67,11 +67,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:27:24 GMT + - Wed, 10 Aug 2022 02:14:48 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -79,7 +79,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:27:25.4953743+00:00"}}' + "expiresOn": "2022-08-11T02:14:48.5629705+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:25 GMT + - Wed, 10 Aug 2022 02:14:48 GMT ms-cv: - - swdaH8yQFk2behlgC2VvVA.0 + - DQaOR+kDZUKPTYKk9V9A+w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222725Z-q1z3stmybd47948vv0qhv9299w000000055000000001tadx + - 20220810T021448Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001tsx5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 96ms status: code: 201 message: Created @@ -121,15 +121,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 449ca962-4751-46d8-a0b4-0b8ce2120263 + - f22d1568-eaf1-4285-9d39-8a39b15671ee method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-08T22:27:26Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:14:49Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -139,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:26 GMT + - Wed, 10 Aug 2022 02:14:49 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AvuG9eXvSh39mwYCzmBTbA3GKffUCCNvxrhrxXjneuKg1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A9y4679NPE2Xogm8GXTasRD0RvH7qHxLzmGK1AwmsPZs1@thread.v2 ms-cv: - - j9rvYgPUGEaZlRZ6OgsPBw.0 + - +JuzFOEXM0O8RNBTXZ7Fag.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222725Z-1ykan7zabt1sxfcs379b67eye8000000037000000000h350 + - 20220810T021448Z-3v7ucyhfft7bhag10pdz2gn96s00000000s000000000f3sk x-cache: - CONFIG_NOCACHE x-processing-time: - - 605ms + - 582ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:c4ed01aa-cb5c-4b0c-8397-93e824f97877_00000013-1f73-8eb2-0cf9-9c3a0d00d291"}}}]}' + "8:acs:2bdaa24c-d801-4f6f-b02d-26eefb9ec883_00000013-256a-17ee-0cf9-9c3a0d005f57"}}}]}' headers: Accept: - application/json @@ -172,7 +172,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 response: @@ -181,22 +181,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:26 GMT + - Wed, 10 Aug 2022 02:14:50 GMT ms-cv: - - Rr7NqLLDtESw/r2XKBvKbQ.0 + - RJlcim2zz02d62anN1RjeA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0zo3xYgAAAAB2EtU0nPhbQ5yrrbNbEPZ+WVZSMzBFREdFMDMwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220810T021449Z-wa551hkds961h6e2hcntxt8eh400000000q0000000025tu7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 216ms + - 296ms status: code: 201 message: Created @@ -214,7 +216,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -223,18 +225,20 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:50 GMT ms-cv: - - gVTnDfhLCUWB2rGThgcUKw.0 + - J88epnClyE2bzTrc2ohvLw.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0z43xYgAAAACvxiSrBwIrSKaoQ3T38rGJWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021450Z-87ct2dqpah4z7432w4frs4m4s400000000t000000000bxzu x-cache: - CONFIG_NOCACHE x-processing-time: - - 288ms + - 269ms status: code: 204 message: No Content @@ -252,7 +256,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -262,22 +266,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:51 GMT ms-cv: - - eUoz/luzC0+M/IUQMAXuow.0 + - /jDiHfgqNUGPAZDyJBVxzw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 00I3xYgAAAAB7FHPL3QN7RKN3QBfsRgm5WVZSMzExMDAwMTE1MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021451Z-qw4txeh9r90g5czxetkag1fv6000000000s000000000hg5x x-cache: - CONFIG_NOCACHE x-processing-time: - - 23ms + - 4ms status: code: 400 message: Bad Request @@ -295,7 +301,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -304,18 +310,20 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:51 GMT ms-cv: - - 8MabvnyqokWlPg+sl/p/jg.0 + - it4m+ARQ8UGT/igt9pggHg.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 00I3xYgAAAAAZr3QLdpsCSLqlav8g7PkPWVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021451Z-3p5ky3fhux53tbptzht9t6u5qg00000000v0000000006fzq x-cache: - CONFIG_NOCACHE x-processing-time: - - 299ms + - 310ms status: code: 204 message: No Content @@ -333,7 +341,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-09-07 response: @@ -344,22 +352,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json date: - - Mon, 08 Aug 2022 22:27:28 GMT + - Wed, 10 Aug 2022 02:14:52 GMT ms-cv: - - nc9bVTdDsEeGGfJc+40cWA.0 + - tiGrPFYFJUqK7ocOZL90Mw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 00I3xYgAAAAArjkUbTxxwSqX994DLudmjWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220810T021451Z-qw4txeh9r90g5czxetkag1fv6000000000r000000001vgxy x-cache: - CONFIG_NOCACHE x-processing-time: - - 53ms + - 97ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index 4c0a38d6d79..afb0cdb05f3 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:45 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:27:28.0276328+00:00"}}' + "expiresOn": "2022-08-11T02:14:46.6005094+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: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:46 GMT ms-cv: - - rbQkHd2PPE6WNWoWTfsV3A.0 + - TQ27vBnf+k2cPb6iPwjV6Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0z43xYgAAAACUCK1WB/v8QJ7RBPLp0/ZtWVZSMzExMDAwMTE1MDUxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021446Z-pvk0k4gqx51st0bh1fssf7cw3000000000q000000002qyre x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 128ms status: code: 201 message: Created @@ -65,37 +67,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 7ec96aaf-88f0-434f-8b02-644f8e18e033 + - 2ac1deb6-6b6a-4ead-817b-ceffd621abb5 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-08T22:27:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:14:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:28 GMT + - Wed, 10 Aug 2022 02:14:47 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlbQgYo8P9E-EBUNLfeICWgUL92k-qBhh_W4kJp4V3NM1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AN2TJeonSdDlICZ72ivRWo_jj3Il-FzTt7vUh8cj04CQ1@thread.v2 ms-cv: - - qbOxzKfIqEakuw/gf8HHng.0 + - qMmL6ofpKEKILPsaQRhuBQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 00I3xYgAAAADEqP4ijK5bSqba7maEZciQWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021446Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002h95n x-cache: - CONFIG_NOCACHE x-processing-time: - - 633ms + - 491ms status: code: 201 message: Created @@ -113,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -122,24 +126,26 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:29 GMT + - Wed, 10 Aug 2022 02:14:48 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlbQgYo8P9E-EBUNLfeICWgUL92k-qBhh_W4kJp4V3NM1@thread.v2/messages/1659997649619 + - https://clitest000002.communication.azure.com/chat/threads/19%3AN2TJeonSdDlICZ72ivRWo_jj3Il-FzTt7vUh8cj04CQ1@thread.v2/messages/1660097687863 ms-cv: - - ffXb/fNUn0G69c+Q5Kog6w.0 + - Eyo5RUTDp0a89Zis5eSW2g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 00Y3xYgAAAAD8/SBiaWPjQ4fX2Cw5c12ZWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021447Z-wa551hkds961h6e2hcntxt8eh400000000r000000001gtc7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 107ms + - 206ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index e703add7d1b..367583a4e3f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:27:26 GMT + - Wed, 10 Aug 2022 02:14:45 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:27:27.3265214+00:00"}}' + "expiresOn": "2022-08-11T02:14:46.3085014+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: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:46 GMT ms-cv: - - nTkyrp1OXUqjZB6XJrVTLg.0 + - Yy31QogHU0CmFi5uDVtREQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0zo3xYgAAAABNdPI+pumXRL7AW2R9WknZWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021446Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001zft2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 135ms + - 115ms status: code: 201 message: Created @@ -65,37 +67,39 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 12d79056-7273-4aee-9ef8-f7ae29a21708 + - 2f72057c-3dfe-406f-b546-f2b08270fddf method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-08T22:27:27Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:14:46Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:47 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Alu1rM3x0esJBeB6KLZcLt9jPEeOKBd9NuB_qZ3EWMX81@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ADmNakIClcWtJ4ha6BLJZGysaf1X0yV7NIvKVD6Ngmqw1@thread.v2 ms-cv: - - nSy1JBjTG0u2OIpYTFutRg.0 + - MFsIvWFNtU2Bq37QB0tgrw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0z43xYgAAAABfYh25X2GWT79/MHKqeMsMWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021446Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001tsaw x-cache: - CONFIG_NOCACHE x-processing-time: - - 775ms + - 675ms status: code: 201 message: Created @@ -113,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -122,24 +126,26 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:29 GMT + - Wed, 10 Aug 2022 02:14:47 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Alu1rM3x0esJBeB6KLZcLt9jPEeOKBd9NuB_qZ3EWMX81@thread.v2/messages/1659997649124 + - https://clitest000002.communication.azure.com/chat/threads/19%3ADmNakIClcWtJ4ha6BLJZGysaf1X0yV7NIvKVD6Ngmqw1@thread.v2/messages/1660097687768 ms-cv: - - d0yWu6brmUSEXLBpoP57KQ.0 + - OGwE5uUv+0ibOCaYS8NG3Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 00I3xYgAAAABXc4fTqVzaSamCeNKkKKTCWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021447Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001m5p2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 160ms + - 169ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index 1002d6b4b24..f1be0505a58 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:27:25 GMT + - Wed, 10 Aug 2022 02:14:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:27:26.0535425+00:00"}}' + "expiresOn": "2022-08-11T02:14:48.2067312+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:26 GMT + - Wed, 10 Aug 2022 02:14:48 GMT ms-cv: - - SkoGxjenQUCZKA8zXv80kA.0 + - xR8xHDNtMkWg6ahGjigvvw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222725Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000059000000000ga09 + - 20220810T021448Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000qg00000002tmet x-cache: - CONFIG_NOCACHE x-processing-time: - - 124ms + - 113ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - d537c0bb-9a10-43eb-8888-c0125526660a + - c56e2bb0-7109-4580-b14f-06af57e45f47 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-08T22:27:26Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:14:48Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:27:27 GMT + - Wed, 10 Aug 2022 02:14:49 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ARArxleM3ItyRIvyunKIWyFVG8ttIkDikFFkmPGwgU141@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AQTpX1mXOF93ATDgmexEVETBFcQFbxVD81VzcuOteEhc1@thread.v2 ms-cv: - - E8GeMG6KqE67qS//nk5orw.0 + - yhI1QWBM6kC57pT4N75E9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222726Z-91tba13kdd5mrb8h3w91379wbg000000056g000000009ywc + - 20220810T021448Z-wa551hkds961h6e2hcntxt8eh400000000r000000001gthx x-cache: - CONFIG_NOCACHE x-processing-time: - - 612ms + - 859ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index 19c13ffbe82..2b62551d7ec 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:29:03 GMT + - Wed, 10 Aug 2022 02:16:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:29:04.3646721+00:00"}}' + "expiresOn": "2022-08-11T02:16:23.7361496+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:04 GMT + - Wed, 10 Aug 2022 02:16:23 GMT ms-cv: - - NVb2QAVi5U2qkLJe0LIELw.0 + - qnhnSTo4DkOeVEC1BP2NQQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222904Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001ega5 + - 20220810T021623Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001n39a x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 119ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 4a66c621-2663-46b3-9525-9f4a21db140b + - 9fa2eb98-9813-4cec-83f1-4b5017b1670c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-08T22:29:05Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:16:24Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:05 GMT + - Wed, 10 Aug 2022 02:16:24 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AhUO9NB43oln2hfb9tX-vMNrR0HiEt8ZYWew1X5OV0TQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3APAnA6WGpJAnOR_1_-gwUWw0VNpqRhNNR6mblMKeh17Y1@thread.v2 ms-cv: - - Qtb5sIeNGUuEAg1ZcW66zw.0 + - N1R8CMHlL06y+8xoLqkCJg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222904Z-afb852g2vh6591nsqudzty20xs000000056g00000000ssx7 + - 20220810T021624Z-wa551hkds961h6e2hcntxt8eh400000000sg00000000dd8t x-cache: - CONFIG_NOCACHE x-processing-time: - - 545ms + - 539ms status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:06 GMT + - Wed, 10 Aug 2022 02:16:25 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AhUO9NB43oln2hfb9tX-vMNrR0HiEt8ZYWew1X5OV0TQ1@thread.v2/messages/1659997746061 + - https://clitest000002.communication.azure.com/chat/threads/19%3APAnA6WGpJAnOR_1_-gwUWw0VNpqRhNNR6mblMKeh17Y1@thread.v2/messages/1660097784990 ms-cv: - - 2gXW8BTUMEWqIdF8GyMWDQ.0 + - ptXhe22w50uWgM27nc0jkQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222905Z-tm7vmh1bsd3kxfvqbrpytcwbkg0000000560000000024513 + - 20220810T021624Z-gu5mc89ux17apbrm5n76u6e4ng00000000r0000000014p4x x-cache: - CONFIG_NOCACHE x-processing-time: - - 170ms + - 130ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index 439f7945b98..ee3de5e0d42 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:29:02 GMT + - Wed, 10 Aug 2022 02:16:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:29:03.0187911+00:00"}}' + "expiresOn": "2022-08-11T02:16:23.9814046+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:03 GMT + - Wed, 10 Aug 2022 02:16:24 GMT ms-cv: - - VfuwAs6900CyAcyqe08EUQ.0 + - 0K+vj+lsFUy+2wXVRf4lhA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222902Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000nxmc + - 20220810T021623Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001gteu x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 115ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 7def4dd0-a53f-47f8-b525-a683ed5ef302 + - 0174f25b-4bb8-4f08-8867-dc60e32989a2 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-08T22:29:03Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:16:24Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:04 GMT + - Wed, 10 Aug 2022 02:16:25 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ALJjbZEYqt6gAzKDd_aAmqxjaxFp0MOhI_ccImnnHbZE1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AzDef1u8IZAI91Y6isoF7Dk6BVV1i4vlEPBpBAIBR2ro1@thread.v2 ms-cv: - - yQLzdtsez0icfLNQcMVwUg.0 + - vSEpLmSWxUWmkhUmWf9v6Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222903Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001eg4q + - 20220810T021624Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000bcsf x-cache: - CONFIG_NOCACHE x-processing-time: - - 583ms + - 838ms status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:04 GMT + - Wed, 10 Aug 2022 02:16:25 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ALJjbZEYqt6gAzKDd_aAmqxjaxFp0MOhI_ccImnnHbZE1@thread.v2/messages/1659997744716 + - https://clitest000002.communication.azure.com/chat/threads/19%3AzDef1u8IZAI91Y6isoF7Dk6BVV1i4vlEPBpBAIBR2ro1@thread.v2/messages/1660097785515 ms-cv: - - 4h0P7wfCLEWWWBzznuCNsg.0 + - FiAmBNDXuEOJUtBvZtqrxw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222904Z-4wf38k6bv57vh8d4wkrqw24dx000000003800000000107nk + - 20220810T021625Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000q000000003cn7w x-cache: - CONFIG_NOCACHE x-processing-time: - - 189ms + - 166ms status: code: 201 message: Created @@ -163,7 +163,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Mon, 08 Aug 2022 22:29:05 GMT + - Wed, 10 Aug 2022 02:16:26 GMT ms-cv: - - Bx9p5Prtd0iipVu3j06SYw.0 + - gdh0aNWMu0GWWDBIiBedRA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222905Z-4wf38k6bv57vh8d4wkrqw24dx0000000037g00000001egfs + - 20220810T021625Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000mxnv x-cache: - CONFIG_NOCACHE x-processing-time: - - 405ms + - 225ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index e4bdfbfb867..a939dda05e6 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:29:03 GMT + - Wed, 10 Aug 2022 02:16:27 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:29:04.9438718+00:00"}}' + "expiresOn": "2022-08-11T02:16:27.7432202+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:05 GMT + - Wed, 10 Aug 2022 02:16:27 GMT ms-cv: - - BAi8YiaC8UW4qJ5iH2iOlQ.0 + - tdVxiq576UCSzZgjdN5qCw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222904Z-tur6dybg817yr054hm9efewep800000004e000000002y2zv + - 20220810T021627Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000033asq x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 110ms status: code: 201 message: Created @@ -67,15 +67,15 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 1a8563e9-7b27-4715-8f1a-c71e84dfbbca + - 4146adb4-9c79-4f4d-bc0e-743d9c08c48c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-08T22:29:05Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-10T02:16:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:06 GMT + - Wed, 10 Aug 2022 02:16:28 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A8K_JvYLpdekNXspy0sdRnXNb9FyZctHnnCHpZA7jQ9A1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AS2WQIy_RIk8QTJjIkqbAygyeVGfN3l7y_FxHygvb12E1@thread.v2 ms-cv: - - dsqo4m3HdUyUxgjq9sqHuQ.0 + - NLFD3rOorkWRB/2n1Nbr9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T222905Z-tm7vmh1bsd3kxfvqbrpytcwbkg000000058000000000zv6m + - 20220810T021628Z-3p5ky3fhux53tbptzht9t6u5qg00000000v00000000075xc x-cache: - CONFIG_NOCACHE x-processing-time: - - 818ms + - 707ms status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-09-07 response: @@ -129,17 +129,17 @@ interactions: connection: - keep-alive date: - - Mon, 08 Aug 2022 22:29:07 GMT + - Wed, 10 Aug 2022 02:16:29 GMT ms-cv: - - MB60EeoKOUeMBRRiBvVn5g.0 + - vdXJm4SXaE2EJxTK+fIVRg.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222906Z-kpegq6a2qh4nr419q7tfax5sn4000000054g00000002950s + - 20220810T021629Z-3v7ucyhfft7bhag10pdz2gn96s00000000tg0000000062aw x-cache: - CONFIG_NOCACHE x-processing-time: - - 236ms + - 186ms status: code: 204 message: No Content 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 60df0297965..52b6047b7a2 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.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"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/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 cache-control: - no-cache content-length: - - '576' + - '578' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:30:46 GMT + - Wed, 10 Aug 2022 02:18:08 GMT etag: - - '"18006e59-0000-0700-0000-62f18e960000"' + - '"1d004d57-0000-0700-0000-62f315610000"' expires: - '-1' pragma: @@ -68,12 +68,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-08T22:30:46.3346335Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-10T02:18:08.9711458Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:16 GMT + - Wed, 10 Aug 2022 02:18:39 GMT etag: - - '"1b004991-0000-0800-0000-62f18e960000"' + - '"1f00001a-0000-0800-0000-62f315600000"' expires: - '-1' pragma: @@ -114,12 +114,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-08T22:30:46.3346335Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-10T02:18:08.9711458Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:46 GMT + - Wed, 10 Aug 2022 02:19:09 GMT etag: - - '"1b004991-0000-0800-0000-62f18e960000"' + - '"1f00001a-0000-0800-0000-62f315600000"' expires: - '-1' pragma: @@ -160,12 +160,12 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"c0ebcb3c-e660-4c56-8a29-5b7c70d6c640*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:30:46.3346335Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:18:08.9711458Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:16 GMT + - Wed, 10 Aug 2022 02:19:39 GMT etag: - - '"1b00a291-0000-0800-0000-62f18ed80000"' + - '"1f008b1a-0000-0800-0000-62f315a20000"' expires: - '-1' pragma: @@ -206,24 +206,24 @@ interactions: ParameterSetName: - --name --location --data-location --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:16 GMT + - Wed, 10 Aug 2022 02:19:39 GMT etag: - - '"18008759-0000-0700-0000-62f18e9e0000"' + - '"1d007657-0000-0700-0000-62f315680000"' expires: - '-1' pragma: @@ -255,24 +255,24 @@ interactions: ParameterSetName: - --created --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:16 GMT + - Wed, 10 Aug 2022 02:19:40 GMT etag: - - '"18008759-0000-0700-0000-62f18e9e0000"' + - '"1d007657-0000-0700-0000-62f315680000"' expires: - '-1' pragma: @@ -304,24 +304,24 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:17 GMT + - Wed, 10 Aug 2022 02:19:40 GMT etag: - - '"18008759-0000-0700-0000-62f18e9e0000"' + - '"1d007657-0000-0700-0000-62f315680000"' expires: - '-1' pragma: @@ -353,22 +353,22 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '711' + - '713' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:17 GMT + - Wed, 10 Aug 2022 02:19:40 GMT expires: - '-1' pragma: @@ -400,22 +400,22 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:30:45.856665Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '711' + - '713' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:17 GMT + - Wed, 10 Aug 2022 02:19:41 GMT expires: - '-1' pragma: @@ -451,24 +451,24 @@ interactions: ParameterSetName: - --name --tags --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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-08-08T22:30:45.856665Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-08T22:32:19.0622283Z"},"properties":{"hostName":"mycommunicapeuqkskiyf27.communication.azure.com","immutableResourceId":"d7341db0-6df5-4dd9-8358-f460a9a2cb4e","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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:19:42.4296691Z"},"properties":{"hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '727' + - '728' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:20 GMT + - Wed, 10 Aug 2022 02:19:42 GMT etag: - - '"1800e55a-0000-0700-0000-62f18ef30000"' + - '"1d006058-0000-0700-0000-62f315be0000"' expires: - '-1' pragma: @@ -509,7 +509,7 @@ interactions: ParameterSetName: - --name --connection-string --resource-id --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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: @@ -523,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:20 GMT + - Wed, 10 Aug 2022 02:19:43 GMT expires: - '-1' pragma: @@ -561,12 +561,12 @@ interactions: ParameterSetName: - --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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":"672xbXJBtggXjUZ7FFV2jOyeiMcqGik8coQbBWj6AQdmCVB3R1cPHag7GPpyAvnQ9H/qBd5CtR2c0chvuGc/jg==","secondaryKey":"elLEfhhqWfBvJrIyukGpTGMsuooNmMCWDIgn85+dPYYTHuUdE0lmqi9dY4Svb0+1JNCjllqf3NCjhRgsFVTjjw==","primaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=672xbXJBtggXjUZ7FFV2jOyeiMcqGik8coQbBWj6AQdmCVB3R1cPHag7GPpyAvnQ9H/qBd5CtR2c0chvuGc/jg==","secondaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=elLEfhhqWfBvJrIyukGpTGMsuooNmMCWDIgn85+dPYYTHuUdE0lmqi9dY4Svb0+1JNCjllqf3NCjhRgsFVTjjw=="}' + string: '{"primaryKey":"Qxr43fhrfbfDRyreONdiaY67RFo8/4NK4KUZBcf+QgVJpusEoMZAPuZsFUu7DmI3PuGRNIykFMVWYViLiegHfQ==","secondaryKey":"IWN+Y276gjMnlUGwHBUzlmbtHqp28a96UgmKTJxxv/nPIyYfqFrtMtCX1y7zInK/ZMmu7ru4lVKojOwyZyjUww==","primaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=Qxr43fhrfbfDRyreONdiaY67RFo8/4NK4KUZBcf+QgVJpusEoMZAPuZsFUu7DmI3PuGRNIykFMVWYViLiegHfQ==","secondaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=IWN+Y276gjMnlUGwHBUzlmbtHqp28a96UgmKTJxxv/nPIyYfqFrtMtCX1y7zInK/ZMmu7ru4lVKojOwyZyjUww=="}' headers: cache-control: - no-cache @@ -575,7 +575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:20 GMT + - Wed, 10 Aug 2022 02:19:44 GMT expires: - '-1' pragma: @@ -615,12 +615,12 @@ interactions: ParameterSetName: - --name --key-type --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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":"R07pghyt8ZPm3yyHMOxKFT3ZmW79aBDrtLde/jOEPNRQDIjXPmaPjYpGQ0HZ12x8qpdFsvPDmPHGUAlhdvTPOg==","primaryConnectionString":"endpoint=https://mycommunicapeuqkskiyf27.communication.azure.com/;accesskey=R07pghyt8ZPm3yyHMOxKFT3ZmW79aBDrtLde/jOEPNRQDIjXPmaPjYpGQ0HZ12x8qpdFsvPDmPHGUAlhdvTPOg=="}' + string: '{"primaryKey":"dHsqWLwkn1KESQSUibLVYBuwUF7oEzhYsLx4OMG7VL79S798nlXFL0t8NHEyKK3l743jxzsesQep4qo1JkTE8Q==","primaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=dHsqWLwkn1KESQSUibLVYBuwUF7oEzhYsLx4OMG7VL79S798nlXFL0t8NHEyKK3l743jxzsesQep4qo1JkTE8Q=="}' headers: cache-control: - no-cache @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:20 GMT + - Wed, 10 Aug 2022 02:19:44 GMT expires: - '-1' pragma: @@ -667,7 +667,7 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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: @@ -675,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -683,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:22 GMT + - Wed, 10 Aug 2022 02:19:45 GMT etag: - - '"1800f65a-0000-0700-0000-62f18ef60000"' + - '"1d006a58-0000-0700-0000-62f315c10000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -717,12 +717,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-08T22:32:22.7070781Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-10T02:19:45.8339756Z"}' headers: cache-control: - no-cache @@ -731,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:52 GMT + - Wed, 10 Aug 2022 02:20:15 GMT etag: - - '"1b001b92-0000-0800-0000-62f18ef60000"' + - '"1f00d21a-0000-0800-0000-62f315c10000"' expires: - '-1' pragma: @@ -759,12 +759,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-08T22:32:22.7070781Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-10T02:19:45.8339756Z"}' headers: cache-control: - no-cache @@ -773,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:22 GMT + - Wed, 10 Aug 2022 02:20:45 GMT etag: - - '"1b001b92-0000-0800-0000-62f18ef60000"' + - '"1f00d21a-0000-0800-0000-62f315c10000"' expires: - '-1' pragma: @@ -801,12 +801,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:32:22.7070781Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:19:45.8339756Z","properties":null}' headers: cache-control: - no-cache @@ -815,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:52 GMT + - Wed, 10 Aug 2022 02:21:16 GMT etag: - - '"1b00cc92-0000-0800-0000-62f18f390000"' + - '"02000995-0000-0100-0000-62f316060000"' expires: - '-1' pragma: @@ -847,12 +847,12 @@ interactions: ParameterSetName: - -y --name --resource-group User-Agent: - - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","name":"5cebef08-d877-4464-a4f2-a904a2ab0422*1E0B46A87D6A72FB9DA1BEF7555E1CA12D3647A51AC9A8E94D0254C065DCD900","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-08T22:32:22.7070781Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:19:45.8339756Z","properties":null}' headers: cache-control: - no-cache @@ -861,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:52 GMT + - Wed, 10 Aug 2022 02:21:16 GMT etag: - - '"1b00cc92-0000-0800-0000-62f18f390000"' + - '"02000995-0000-0100-0000-62f316060000"' expires: - '-1' pragma: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml new file mode 100644 index 00000000000..fe51edc4ffc --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-date: + - Wed, 10 Aug 2022 02:16:24 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + 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: + - Wed, 10 Aug 2022 02:16:25 GMT + ms-cv: + - Zq5IZtvhEEyB43qhIqMnpg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220810T021624Z-huevmdadqx2sz9yxspbd0a0pg800000000rg000000014dez + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 108ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml new file mode 100644 index 00000000000..f6a0ed872e8 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml @@ -0,0 +1,102 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-date: + - Wed, 10 Aug 2022 02:18:00 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + 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: + - Wed, 10 Aug 2022 02:18:01 GMT + ms-cv: + - E39RVmIprUWTlxSwUeIWGA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220810T021801Z-huevmdadqx2sz9yxspbd0a0pg800000000r000000001fgtp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 112ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Wed, 10 Aug 2022 02:18:01 GMT + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + response: + body: + string: '' + 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 + date: + - Wed, 10 Aug 2022 02:18:02 GMT + ms-cv: + - vj+TDG/cWkWsEcceNG53Ew.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220810T021801Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002m342 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 301ms + status: + code: 204 + message: No Content +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 b1c994d4d24..b1b040b6c83 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,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Mon, 08 Aug 2022 22:29:04 GMT + - Wed, 10 Aug 2022 02:18:00 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:29:05.1419401+00:00"}}' + "expiresOn": "2022-08-11T02:18:00.9501826+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:29:05 GMT + - Wed, 10 Aug 2022 02:18:01 GMT ms-cv: - - XocDOFyMPUGVjjb8KG35zg.0 + - Uts82BOeGkSwi+agqcQWbA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T222905Z-1ykan7zabt1sxfcs379b67eye8000000036g00000000nyb6 + - 20220810T021800Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001vzyd x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 114ms 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 0c9abd7c854..a3404a0c7fd 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,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:18:00 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -29,20 +29,22 @@ 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: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:18:01 GMT ms-cv: - - kLcSi1rua0mTOpheuyW29g.0 + - y14VT1eZC0GbRWOwmifVLQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0kY7xYgAAAADdazs9VCRkQLa2oIPiOjvZWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021801Z-huevmdadqx2sz9yxspbd0a0pg800000000r000000001fgqm x-cache: - CONFIG_NOCACHE x-processing-time: @@ -64,40 +66,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-date: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:18:01 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-09T22:30:42.2352355+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-11T02:18:01.918741+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' + - '71' content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:18:01 GMT ms-cv: - - Hp6V8gmkn0+t98ht9tGWCA.0 + - KTmMTqcpeUiWXyWGnsp2bQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0ko7xYgAAAAC1CfKw9eCsS4tG8JVEUdnVWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220810T021801Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000r00000000244b5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 56ms + - 173ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index dc31bd8924a..844d840426e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= x-ms-date: - - Mon, 08 Aug 2022 22:30:42 GMT + - Wed, 10 Aug 2022 02:18:03 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-09T22:30:42.8694419+00:00"}}' + "expiresOn": "2022-08-11T02:18:04.6643837+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: - - Mon, 08 Aug 2022 22:30:42 GMT + - Wed, 10 Aug 2022 02:18:04 GMT ms-cv: - - iH7AQgIJpUyAafYPHo+fXg.0 + - TX3SbmNkIkiIYWqV/rgzwg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0ko7xYgAAAADSFXtbEKQtS6TxSHqNa43yWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021804Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000cfp3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 110ms + - 117ms status: code: 201 message: Created 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 05784df48af..fef279fa91c 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: - - Mon, 08 Aug 2022 22:30:40 GMT + - Wed, 10 Aug 2022 02:19:37 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -31,28 +31,30 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Mon, 08 Aug 2022 22:30:44 GMT + - Wed, 10 Aug 2022 02:19:42 GMT location: - - /availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 ms-cv: - - NdpKCYc+nUGVfolrpu00eg.0 + - aG0ZQcJ64kaF208FQRHrBg.0 operation-id: - - search_c66bd25d-0d79-4a49-8556-524b2f82aba9 + - search_372118b2-9ed0-4014-9fe6-924d954e77d0 operation-location: - - /phoneNumbers/operations/search_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + - /phoneNumbers/operations/search_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 search-id: - - c66bd25d-0d79-4a49-8556-524b2f82aba9 + - 372118b2-9ed0-4014-9fe6-924d954e77d0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0kY7xYgAAAAB1VWGf5lL/Spd+yrh6/nO3WVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021938Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tpzx x-cache: - CONFIG_NOCACHE x-processing-time: - - 4252ms + - 3996ms status: code: 202 message: Accepted @@ -66,44 +68,46 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:31:15 GMT + - Wed, 10 Aug 2022 02:20:12 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:30:45.2703528+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:19:42.3120446+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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:16 GMT + - Wed, 10 Aug 2022 02:20:13 GMT location: - - /availablePhoneNumbers/searchResults/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 ms-cv: - - PFwIQFFe2UaL+HrSjtFTHQ.0 + - qMVfibnDbka48tW06avlJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0s47xYgAAAACByQnNEdXaSZOL0SyHfXSoWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022012Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tx6n x-cache: - CONFIG_NOCACHE x-processing-time: - - 378ms + - 546ms status: code: 200 message: OK @@ -118,47 +122,49 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:31:16 GMT + - Wed, 10 Aug 2022 02:20:13 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 response: body: - string: '{"searchId": "c66bd25d-0d79-4a49-8556-524b2f82aba9", "phoneNumbers": + string: '{"searchId": "372118b2-9ed0-4014-9fe6-924d954e77d0", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:46:47.6996334+00:00"}' + "2022-08-10T02:35:44.0615628+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:17 GMT + - Wed, 10 Aug 2022 02:20:15 GMT ms-cv: - - edMt8JtkekmoloJjmSQjTQ.0 + - IWOt95emQkyaA5cp+ioLXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0tI7xYgAAAABDZILYSQpVSbB7njNVVJ2XWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022013Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txda x-cache: - CONFIG_NOCACHE x-processing-time: - - 1135ms + - 1938ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c66bd25d-0d79-4a49-8556-524b2f82aba9"}' + body: '{"searchId": "372118b2-9ed0-4014-9fe6-924d954e77d0"}' headers: Accept: - application/json @@ -171,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:31:17 GMT + - Wed, 10 Aug 2022 02:20:15 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - pDWby37lsoBSqSPOx6OtDkUZgVf6laQ3TRV+uaghYlI= + - wOqXgZe8Zq42slbA9dM+DV8mv/BOf2+ePpid2+DFCh4= x-ms-return-client-request-id: - 'true' method: POST @@ -188,26 +194,28 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Mon, 08 Aug 2022 22:31:19 GMT + - Wed, 10 Aug 2022 02:20:18 GMT ms-cv: - - LcpsCX9c4EiapujjNJU7kw.0 + - MFH5USUb10K4RgoeLru05w.0 operation-id: - - purchase_c66bd25d-0d79-4a49-8556-524b2f82aba9 + - purchase_372118b2-9ed0-4014-9fe6-924d954e77d0 operation-location: - - /phoneNumbers/operations/purchase_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 purchase-id: - - c66bd25d-0d79-4a49-8556-524b2f82aba9 + - 372118b2-9ed0-4014-9fe6-924d954e77d0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0tY7xYgAAAACzqTGUVa7pR6Qv3EcVmK+EWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022015Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txz4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2108ms + - 2093ms status: code: 202 message: Accepted @@ -221,39 +229,41 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:31:49 GMT + - Wed, 10 Aug 2022 02:20:48 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_c66bd25d-0d79-4a49-8556-524b2f82aba9?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:30:45.2703528+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-10T02:19:42.3120446+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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:49 GMT + - Wed, 10 Aug 2022 02:20:49 GMT ms-cv: - - EwijiT3eMEO8XRKI/PeOOg.0 + - j1R/tqmDDEuEkdR6XKH0Jw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 01Y7xYgAAAACx4ZIOg8rvTpBaIUeifEAFWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022048Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001u5mt x-cache: - CONFIG_NOCACHE x-processing-time: - - 401ms + - 996ms status: code: 200 message: OK @@ -268,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:31:50 GMT + - Wed, 10 Aug 2022 02:20:49 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -282,27 +292,29 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-08-08T22:31:36.3074245+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-10T02:20:42.6013095+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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:31:53 GMT + - Wed, 10 Aug 2022 02:20:54 GMT ms-cv: - - ts5Gsr1bWEiej4lWFWUoGA.0 + - emgNriovtkqgMevVPyddZQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 01o7xYgAAAAC4XezlVEBdR7ofchdPvuCBWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022050Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u00000000094vh x-cache: - CONFIG_NOCACHE x-processing-time: - - 3470ms + - 3885ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index 93fcc3a8402..ddab9a2c073 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -13,11 +13,11 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:19:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -29,24 +29,26 @@ 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: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:19:37 GMT ms-cv: - - of437i8EPE2hOHs1AICsRQ.0 + - fNFR1ZxBnkWOJVsg13ZxEg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0kY7xYgAAAABY//G3yY3sRLPBgpI2FqtfWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T021937Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000nf2v x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 111ms status: code: 201 message: Created @@ -62,11 +64,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Mon, 08 Aug 2022 22:30:42 GMT + - Wed, 10 Aug 2022 02:19:37 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -78,20 +80,22 @@ 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 date: - - Mon, 08 Aug 2022 22:30:41 GMT + - Wed, 10 Aug 2022 02:19:38 GMT ms-cv: - - HoH3Tw1d8U6HNXef7+Y5+g.0 + - 44MNbDSqBEWN4BWfd96xig.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0ko7xYgAAAAAwABL3oes+Q6RG5gnp0MmbWVZSMzBFREdFMDMwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + - 20220810T021937Z-wa551hkds961h6e2hcntxt8eh400000000q0000000028fev x-cache: - CONFIG_NOCACHE x-processing-time: - - 41ms + - 84ms status: code: 204 message: No Content 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 2090024b046..612771fb342 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: - - Mon, 08 Aug 2022 22:32:17 GMT + - Wed, 10 Aug 2022 02:21:13 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:32:22 GMT + - Wed, 10 Aug 2022 02:21:17 GMT location: - - /availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 ms-cv: - - cKYEkFMKK0qS8Tsvmr9U0A.0 + - aAASG2gQMU6X2rwOUpcM7A.0 operation-id: - - search_c025f3c2-2d18-4a21-a914-4b4687790507 + - search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d operation-location: - - /phoneNumbers/operations/search_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + - /phoneNumbers/operations/search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 search-id: - - c025f3c2-2d18-4a21-a914-4b4687790507 + - c25cc1c2-7023-4065-b6b7-a9e368e4a88d strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223218Z-afb852g2vh6591nsqudzty20xs0000000560000000015qmg + - 20220810T022113Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007xyk x-cache: - CONFIG_NOCACHE x-processing-time: - - 4357ms + - 3769ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:32:52 GMT + - Wed, 10 Aug 2022 02:21:47 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:32:22.4246381+00:00", "id": "search_c025f3c2-2d18-4a21-a914-4b4687790507", + "/availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:21:17.3424018+00:00", "id": "search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:53 GMT + - Wed, 10 Aug 2022 02:21:48 GMT location: - - /availablePhoneNumbers/searchResults/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 ms-cv: - - zawuAcgwuUap1D5wsELdWg.0 + - Yhe8e/gr0UuC3IEiFJc88g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223252Z-afb852g2vh6591nsqudzty20xs000000056000000001626g + - 20220810T022147Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007z67 x-cache: - CONFIG_NOCACHE x-processing-time: - - 458ms + - 337ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:32:53 GMT + - Wed, 10 Aug 2022 02:21:48 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 response: body: - string: '{"searchId": "c025f3c2-2d18-4a21-a914-4b4687790507", "phoneNumbers": - ["+18336392535"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "c25cc1c2-7023-4065-b6b7-a9e368e4a88d", "phoneNumbers": + ["+18334312297"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:48:25.1590432+00:00"}' + "2022-08-10T02:37:19.1083196+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:55 GMT + - Wed, 10 Aug 2022 02:21:50 GMT ms-cv: - - 2Ue9BhgebkSa8RAVZy1h5w.0 + - FgsiRsf6uECworLeD/VsJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223253Z-afb852g2vh6591nsqudzty20xs00000005600000000162f0 + - 20220810T022148Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007z84 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1561ms + - 2107ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c025f3c2-2d18-4a21-a914-4b4687790507"}' + body: '{"searchId": "c25cc1c2-7023-4065-b6b7-a9e368e4a88d"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:32:55 GMT + - Wed, 10 Aug 2022 02:21:50 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 2FuvpIbiiPNzd+JMWdeABDTPodHHPEqg0QiMu6dqj7M= + - blmtHkmgCxFh5r/W1EJB3knA/z9DbwfqqHcktGtr3wo= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:32:58 GMT + - Wed, 10 Aug 2022 02:21:53 GMT ms-cv: - - zopF63fPSUC4rlki/JtDQA.0 + - whDesyeh3U24qa6ZRfNioA.0 operation-id: - - purchase_c025f3c2-2d18-4a21-a914-4b4687790507 + - purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d operation-location: - - /phoneNumbers/operations/purchase_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 purchase-id: - - c025f3c2-2d18-4a21-a914-4b4687790507 + - c25cc1c2-7023-4065-b6b7-a9e368e4a88d strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223255Z-afb852g2vh6591nsqudzty20xs0000000560000000016356 + - 20220810T022151Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007zbq x-cache: - CONFIG_NOCACHE x-processing-time: - - 2946ms + - 1925ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:33:28 GMT + - Wed, 10 Aug 2022 02:22:22 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_c025f3c2-2d18-4a21-a914-4b4687790507?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:32:22.4246381+00:00", "id": "purchase_c025f3c2-2d18-4a21-a914-4b4687790507", + null, "createdDateTime": "2022-08-10T02:21:17.3424018+00:00", "id": "purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:29 GMT + - Wed, 10 Aug 2022 02:22:23 GMT ms-cv: - - avoiORjloUySTzNsnonBoA.0 + - 7FH98Sl6bE6T3+Czn7pJKw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223329Z-afb852g2vh6591nsqudzty20xs0000000560000000016fc4 + - 20220810T022223Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s00000000080g2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 350ms + - 329ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:33:29 GMT + - Wed, 10 Aug 2022 02:22:23 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - zrU5f+hqXr/qw3FOXQHygDKpjqTg5Yx+x8kMdVm2/sE= + - rTDRgOgYfkG62I6tGTpdVJCQsT9Fuk+aFO4vJVr8K48= x-ms-return-client-request-id: - 'true' method: POST @@ -305,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:30 GMT + - Wed, 10 Aug 2022 02:22:24 GMT ms-cv: - - J5b1y39EV0qit7elU3L6Fg.0 + - M48ad5ulT0WQGEIPImsS5Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223329Z-tur6dybg817yr054hm9efewep800000004gg00000000dyk6 + - 20220810T022224Z-qw4txeh9r90g5czxetkag1fv6000000000q00000000300n9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 133ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index 2df8c2af0b1..55ee1cc10e3 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:32:17 GMT + - Wed, 10 Aug 2022 02:22:29 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:32:21 GMT + - Wed, 10 Aug 2022 02:22:33 GMT location: - - /availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 ms-cv: - - c9CldfQl3Uu3SoMDGmCYNw.0 + - Dusfmchp4EOXa6GoQjZ5/g.0 operation-id: - - search_71cc40a6-3f3d-4030-b300-53e356cff427 + - search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea operation-location: - - /phoneNumbers/operations/search_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + - /phoneNumbers/operations/search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 search-id: - - 71cc40a6-3f3d-4030-b300-53e356cff427 + - 45bac9f1-4a71-4df1-a6df-6fed5b6e7dea strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223217Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000hued + - 20220810T022230Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037cav x-cache: - CONFIG_NOCACHE x-processing-time: - - 3068ms + - 2507ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:32:51 GMT + - Wed, 10 Aug 2022 02:23:02 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:32:20.799364+00:00", "id": "search_71cc40a6-3f3d-4030-b300-53e356cff427", + "/availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:22:32.7169114+00:00", "id": "search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:51 GMT + - Wed, 10 Aug 2022 02:23:03 GMT location: - - /availablePhoneNumbers/searchResults/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 ms-cv: - - 8RBu/Oqbm0mQbp0U1LDcww.0 + - yxgwhOhcA02jNxgU6RTd/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223251Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k06d + - 20220810T022303Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037rss x-cache: - CONFIG_NOCACHE x-processing-time: - - 371ms + - 300ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:32:51 GMT + - Wed, 10 Aug 2022 02:23:03 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 response: body: - string: '{"searchId": "71cc40a6-3f3d-4030-b300-53e356cff427", "phoneNumbers": - ["+18336392539"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", "phoneNumbers": + ["+18772156002"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:48:23.2039004+00:00"}' + "2022-08-10T02:38:34.9146502+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:32:54 GMT + - Wed, 10 Aug 2022 02:23:04 GMT ms-cv: - - PAc4zxqYHUWwnrhIRAgPSg.0 + - rc6yzjtTPEiSUZFZEbCkog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223251Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k08f + - 20220810T022303Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037ry5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2692ms + - 917ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "71cc40a6-3f3d-4030-b300-53e356cff427"}' + body: '{"searchId": "45bac9f1-4a71-4df1-a6df-6fed5b6e7dea"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:32:54 GMT + - Wed, 10 Aug 2022 02:23:04 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - DNVvoeaJ/IAV5iIerWUNIYEETk0sU+tyWdLgQYkAUyk= + - D6prARGGy4jd7Om59aodlQy5UIK3bc0o3ZYT5pF7yeU= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:32:56 GMT + - Wed, 10 Aug 2022 02:23:06 GMT ms-cv: - - WG/oZgvW70O8iEU2IRM4fw.0 + - 8KtDL6W4nEih0/sDVwMzLw.0 operation-id: - - purchase_71cc40a6-3f3d-4030-b300-53e356cff427 + - purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea operation-location: - - /phoneNumbers/operations/purchase_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 purchase-id: - - 71cc40a6-3f3d-4030-b300-53e356cff427 + - 45bac9f1-4a71-4df1-a6df-6fed5b6e7dea strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223254Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k0q8 + - 20220810T022304Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037s7y x-cache: - CONFIG_NOCACHE x-processing-time: - - 1838ms + - 1603ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:33:26 GMT + - Wed, 10 Aug 2022 02:23:36 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_71cc40a6-3f3d-4030-b300-53e356cff427?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:32:20.799364+00:00", "id": "purchase_71cc40a6-3f3d-4030-b300-53e356cff427", + null, "createdDateTime": "2022-08-10T02:22:32.7169114+00:00", "id": "purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:33:27 GMT + - Wed, 10 Aug 2022 02:23:36 GMT ms-cv: - - SC7pZ6N6skeiUKItiY1AlQ.0 + - 2AZSQhZnsE6XGLixymJocw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223327Z-qtfd0d2efh3zh2gzxzkdhtv168000000056000000000k6hc + - 20220810T022336Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q00000000382xy x-cache: - CONFIG_NOCACHE x-processing-time: - - 405ms + - 329ms status: code: 200 message: OK @@ -283,9 +283,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:33:27 GMT + - Wed, 10 Aug 2022 02:23:36 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -300,28 +300,30 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Mon, 08 Aug 2022 22:33:30 GMT + - Wed, 10 Aug 2022 02:23:40 GMT location: - - /availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 ms-cv: - - q+5vmCRB/0GoA1d3sIqdyg.0 + - FStSj5hNhkaY3fdYJ4qe/Q.0 operation-id: - - search_d5503c8a-0034-4575-bc60-58260be6169b + - search_82548125-b1ff-484a-820d-5a9eaac2b741 operation-location: - - /phoneNumbers/operations/search_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + - /phoneNumbers/operations/search_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 search-id: - - d5503c8a-0034-4575-bc60-58260be6169b + - 82548125-b1ff-484a-820d-5a9eaac2b741 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0OI/xYgAAAACIg41hDp61ToYDvJuBOuICWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022337Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gksc x-cache: - CONFIG_NOCACHE x-processing-time: - - 2469ms + - 3284ms status: code: 202 message: Accepted @@ -335,44 +337,46 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:00 GMT + - Wed, 10 Aug 2022 02:24:10 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:33:30.1973435+00:00", "id": "search_d5503c8a-0034-4575-bc60-58260be6169b", + "/availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:23:40.449807+00:00", "id": "search_82548125-b1ff-484a-820d-5a9eaac2b741", "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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:00 GMT + - Wed, 10 Aug 2022 02:24:11 GMT location: - - /availablePhoneNumbers/searchResults/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 ms-cv: - - WQdPKzr0M0myBNv13qtfZw.0 + - 8mRHL5ELoEOx5h7oQ9l1fA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0WI/xYgAAAAB4VK6Mbg9qRJ0pMaNXAY3+WVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022410Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gvxg x-cache: - CONFIG_NOCACHE x-processing-time: - - 371ms + - 290ms status: code: 200 message: OK @@ -387,47 +391,49 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:01 GMT + - Wed, 10 Aug 2022 02:24:11 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 response: body: - string: '{"searchId": "d5503c8a-0034-4575-bc60-58260be6169b", "phoneNumbers": - ["+18336393100"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "82548125-b1ff-484a-820d-5a9eaac2b741", "phoneNumbers": + ["+18772157127"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:49:32.8803566+00:00"}' + "2022-08-10T02:39:42.4860521+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:02 GMT + - Wed, 10 Aug 2022 02:24:12 GMT ms-cv: - - Gay1fG2ioEqhRc1wguqiQg.0 + - /RmpGGZT90KrlMeVqRbLVg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0WY/xYgAAAAAUijvW12MyQbu0vFLk3tcUWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022411Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gw1n x-cache: - CONFIG_NOCACHE x-processing-time: - - 1017ms + - 944ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "d5503c8a-0034-4575-bc60-58260be6169b"}' + body: '{"searchId": "82548125-b1ff-484a-820d-5a9eaac2b741"}' headers: Accept: - application/json @@ -440,11 +446,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:34:02 GMT + - Wed, 10 Aug 2022 02:24:12 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - EtdlKq7Akv0aCrxerwOIFIG4v3wXICi9DxoA/NZJFxY= + - Glc8o/nTSyg7dd9dIooAz1YSNDVRFSC3Z3pQIpELjXI= x-ms-return-client-request-id: - 'true' method: POST @@ -457,26 +463,28 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Mon, 08 Aug 2022 22:34:04 GMT + - Wed, 10 Aug 2022 02:24:14 GMT ms-cv: - - 22DwgRzBHUiY5civ+kCDLQ.0 + - 3RmfgaeuckK1Jar9QVODWQ.0 operation-id: - - purchase_d5503c8a-0034-4575-bc60-58260be6169b + - purchase_82548125-b1ff-484a-820d-5a9eaac2b741 operation-location: - - /phoneNumbers/operations/purchase_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 purchase-id: - - d5503c8a-0034-4575-bc60-58260be6169b + - 82548125-b1ff-484a-820d-5a9eaac2b741 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0Wo/xYgAAAAAn33o9/KbYQrRfhimlS6G9WVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022412Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gwd1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1893ms + - 1718ms status: code: 202 message: Accepted @@ -490,39 +498,41 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:34 GMT + - Wed, 10 Aug 2022 02:24:44 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_d5503c8a-0034-4575-bc60-58260be6169b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:33:30.1973435+00:00", "id": "purchase_d5503c8a-0034-4575-bc60-58260be6169b", + null, "createdDateTime": "2022-08-10T02:23:40.449807+00:00", "id": "purchase_82548125-b1ff-484a-820d-5a9eaac2b741", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:34 GMT + - Wed, 10 Aug 2022 02:24:44 GMT ms-cv: - - QnouOw/i5kC+n74XzW/WOw.0 + - 6hTLYkPdA0KxKw9Qv9QqxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0eo/xYgAAAACkB7TvrWIeQ6DXggjuiPEdWVZSMzExMDAwMTE2MDI3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220810T022444Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000h5et x-cache: - CONFIG_NOCACHE x-processing-time: - - 368ms + - 278ms status: code: 200 message: OK @@ -542,9 +552,9 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:34:34 GMT + - Wed, 10 Aug 2022 02:24:44 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -564,25 +574,25 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:34:37 GMT + - Wed, 10 Aug 2022 02:24:47 GMT location: - - /availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 ms-cv: - - Oba64c8DHEOIF3WaEG6Sjw.0 + - eIxS6nZL/UmNzT7+L+kK8g.0 operation-id: - - search_231778ad-b32b-4d99-9b41-a0ed0d18e55e + - search_c3064939-2d31-4938-8226-5a66266f3005 operation-location: - - /phoneNumbers/operations/search_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + - /phoneNumbers/operations/search_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 search-id: - - 231778ad-b32b-4d99-9b41-a0ed0d18e55e + - c3064939-2d31-4938-8226-5a66266f3005 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223435Z-tur6dybg817yr054hm9efewep800000004e0000000031wpr + - 20220810T022444Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000h5nn x-cache: - CONFIG_NOCACHE x-processing-time: - - 2315ms + - 2001ms status: code: 202 message: Accepted @@ -596,20 +606,20 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:35:07 GMT + - Wed, 10 Aug 2022 02:25:16 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:34:37.4214365+00:00", "id": "search_231778ad-b32b-4d99-9b41-a0ed0d18e55e", + "/availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:24:46.6457613+00:00", "id": "search_c3064939-2d31-4938-8226-5a66266f3005", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -621,21 +631,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:35:08 GMT + - Wed, 10 Aug 2022 02:25:17 GMT location: - - /availablePhoneNumbers/searchResults/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 ms-cv: - - GiGAyyjNwU+J2M1K/XfaXA.0 + - d5DwI9oJHUWlNlR+0Iydcg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223507Z-tur6dybg817yr054hm9efewep800000004e00000000328tk + - 20220810T022517Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hf8g x-cache: - CONFIG_NOCACHE x-processing-time: - - 413ms + - 378ms status: code: 200 message: OK @@ -650,22 +660,22 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:35:08 GMT + - Wed, 10 Aug 2022 02:25:17 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 response: body: - string: '{"searchId": "231778ad-b32b-4d99-9b41-a0ed0d18e55e", "phoneNumbers": - ["+18336392491"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "c3064939-2d31-4938-8226-5a66266f3005", "phoneNumbers": + ["+18334292099"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:50:40.0954495+00:00"}' + "2022-08-10T02:40:48.8683559+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -674,25 +684,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:35:10 GMT + - Wed, 10 Aug 2022 02:25:19 GMT ms-cv: - - 9lOGbR0PtEKrGG0qj+kXSQ.0 + - Lv1TTK6jnUaMc4XeBn3TTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223508Z-tur6dybg817yr054hm9efewep800000004e00000000328yu + - 20220810T022517Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hfcq x-cache: - CONFIG_NOCACHE x-processing-time: - - 1775ms + - 1598ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "231778ad-b32b-4d99-9b41-a0ed0d18e55e"}' + body: '{"searchId": "c3064939-2d31-4938-8226-5a66266f3005"}' headers: Accept: - application/json @@ -705,11 +715,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:35:10 GMT + - Wed, 10 Aug 2022 02:25:19 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 42cFEiFbu4VeHvsSIVQoIehzmE78tOf3pDyqrjo0PKU= + - UiIELYsu8OgfBygfh8irVL5p1ucFxXrD9/O5K867AW0= x-ms-return-client-request-id: - 'true' method: POST @@ -727,23 +737,23 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:35:13 GMT + - Wed, 10 Aug 2022 02:25:20 GMT ms-cv: - - RKwTr4pQTUmIYqLoqCZvNQ.0 + - cf5Kc8ylqkWC3Yg8fXL6Jw.0 operation-id: - - purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e + - purchase_c3064939-2d31-4938-8226-5a66266f3005 operation-location: - - /phoneNumbers/operations/purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 purchase-id: - - 231778ad-b32b-4d99-9b41-a0ed0d18e55e + - c3064939-2d31-4938-8226-5a66266f3005 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223510Z-tur6dybg817yr054hm9efewep800000004e00000000329ku + - 20220810T022519Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hfym x-cache: - CONFIG_NOCACHE x-processing-time: - - 2910ms + - 1630ms status: code: 202 message: Accepted @@ -757,19 +767,19 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:35:43 GMT + - Wed, 10 Aug 2022 02:25:50 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_231778ad-b32b-4d99-9b41-a0ed0d18e55e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:34:37.4214365+00:00", "id": "purchase_231778ad-b32b-4d99-9b41-a0ed0d18e55e", + null, "createdDateTime": "2022-08-10T02:24:46.6457613+00:00", "id": "purchase_c3064939-2d31-4938-8226-5a66266f3005", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -779,19 +789,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:35:43 GMT + - Wed, 10 Aug 2022 02:25:51 GMT ms-cv: - - ZniH3Jqu/02F8jjaLvoPPg.0 + - QWWLa4V8dUCCZLFIjh9+4w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223543Z-tur6dybg817yr054hm9efewep800000004e0000000032pdn + - 20220810T022551Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000huw2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 447ms + - 845ms status: code: 200 message: OK @@ -813,11 +823,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:35:43 GMT + - Wed, 10 Aug 2022 02:25:51 GMT User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - /UioWS2Dbgcf8h8VuTjvoVkQeX80MgWX1cOyZNt54rk= + - gMMkv8XBkKXbft8sSBeakESzFG5M1Zi+N4LvyC6gF7g= x-ms-return-client-request-id: - 'true' method: POST @@ -836,19 +846,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:35:44 GMT + - Wed, 10 Aug 2022 02:25:52 GMT ms-cv: - - QZvNwNHKDUqPSBPVIAOyKg.0 + - wjtbUM5QREWxvXD1k5XC6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223544Z-nntkv2q0nd3zt4kemgcvznhu24000000056g00000002m2p0 + - 20220810T022552Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002rcf9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 314ms + - 212ms 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 46d3646213a..bd2661744f0 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: - - Mon, 08 Aug 2022 22:33:29 GMT + - Wed, 10 Aug 2022 02:19:37 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= x-ms-return-client-request-id: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:33:32 GMT + - Wed, 10 Aug 2022 02:19:41 GMT location: - - /availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 ms-cv: - - Te/dPoulAU6UrgRA6paJoQ.0 + - mXgj0BejJ0y9j6lXmmEw5Q.0 operation-id: - - search_4ea5ec44-f450-4a67-9568-72785f877bfb + - search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c operation-location: - - /phoneNumbers/operations/search_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + - /phoneNumbers/operations/search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 search-id: - - 4ea5ec44-f450-4a67-9568-72785f877bfb + - 3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223329Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c5wu + - 20220810T021937Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tpwu x-cache: - CONFIG_NOCACHE x-processing-time: - - 2883ms + - 2914ms status: code: 202 message: Accepted @@ -68,20 +68,20 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:02 GMT + - Wed, 10 Aug 2022 02:20:10 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07", - "createdDateTime": "2022-08-08T22:33:32.3302413+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07", + "createdDateTime": "2022-08-10T02:19:40.6265158+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:03 GMT + - Wed, 10 Aug 2022 02:20:12 GMT location: - - /availablePhoneNumbers/searchResults/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 ms-cv: - - TPNuogLyQkmY2fTRNfe2BA.0 + - E1aSL8cr7U2MsqQwUuDOTA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223402Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8m4 + - 20220810T022011Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tww3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 634ms + - 421ms status: code: 200 message: OK @@ -122,22 +122,22 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:03 GMT + - Wed, 10 Aug 2022 02:20:11 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 response: body: - string: '{"searchId": "4ea5ec44-f450-4a67-9568-72785f877bfb", "phoneNumbers": + string: '{"searchId": "3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-08T22:49:34.7817585+00:00"}' + "2022-08-10T02:35:43.0038539+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:04 GMT + - Wed, 10 Aug 2022 02:20:15 GMT ms-cv: - - N/XFUEPVSkKYkMlnOhh9Ug.0 + - gVpCNitw4UakEJuMVePgyQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223403Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8ph + - 20220810T022012Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tx1f x-cache: - CONFIG_NOCACHE x-processing-time: - - 979ms + - 2941ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "4ea5ec44-f450-4a67-9568-72785f877bfb"}' + body: '{"searchId": "3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Aug 2022 22:34:04 GMT + - Wed, 10 Aug 2022 02:20:15 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 6v1tid2pNzu+ic1hE4cd1S3GuooIkMZSrfyXsD7QQaU= + - AQToihQsAh1jxC6iQBGPs8KnNwjK5vWOOHoXJZ1EApg= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Mon, 08 Aug 2022 22:34:06 GMT + - Wed, 10 Aug 2022 02:20:18 GMT ms-cv: - - zYBzLB/GEUOlMO9C+sRueg.0 + - leBUtzbWJE+jRNXXqO3Zvw.0 operation-id: - - purchase_4ea5ec44-f450-4a67-9568-72785f877bfb + - purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c operation-location: - - /phoneNumbers/operations/purchase_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 purchase-id: - - 4ea5ec44-f450-4a67-9568-72785f877bfb + - 3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220808T223404Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000c8sn + - 20220810T022015Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txuu x-cache: - CONFIG_NOCACHE x-processing-time: - - 2032ms + - 2991ms status: code: 202 message: Accepted @@ -229,19 +229,19 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:36 GMT + - Wed, 10 Aug 2022 02:20:48 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4ea5ec44-f450-4a67-9568-72785f877bfb?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-08T22:33:32.3302413+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-10T02:19:40.6265158+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:37 GMT + - Wed, 10 Aug 2022 02:20:49 GMT ms-cv: - - 1A6gFArAmEaOaKcOpbeHwQ.0 + - LQQo9BHaEUuuYQrfQ84WhQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223436Z-uc7yrm58kd5cb2tk4u9cfe74aw000000059g00000000cbtv + - 20220810T022048Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001u5qc x-cache: - CONFIG_NOCACHE x-processing-time: - - 399ms + - 416ms status: code: 200 message: OK @@ -278,9 +278,9 @@ interactions: Connection: - keep-alive Date: - - Mon, 08 Aug 2022 22:34:37 GMT + - Wed, 10 Aug 2022 02:20:49 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-return-client-request-id: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-08T22:34:23.3919557+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-10T02:20:36.568734+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 08 Aug 2022 22:34:39 GMT + - Wed, 10 Aug 2022 02:20:52 GMT ms-cv: - - rkqD3YNLh0WDrt9+ahAnwA.0 + - edrL+7bMGku42nuw6vCXnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220808T223437Z-tur6dybg817yr054hm9efewep800000004g000000000u6mv + - 20220810T022049Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000t000000000he12 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1965ms + - 2714ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index f96ffc44cc4..3f10051e4ff 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -103,23 +103,6 @@ def test_chat_list_threads_no_endpoint(self, communication_resource_info): assert 'AZURE_COMMUNICATION_ENDPOINT' in str(raises.exception) - @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') - @CommunicationResourcePreparer(resource_group_parameter_name='rg') - def test_chat_list_threads_no_token(self, communication_resource_info): - from azure.cli.core.azclierror import RequiredArgumentMissingError - - self.kwargs.update({ 'endpoint': self.__get_endpoint_from_resource_info(communication_resource_info) }) - - self.kwargs.pop('access-token', None) - os.environ.pop('AZURE_COMMUNICATION_ACCESS_TOKEN', None) - - with self.assertRaises(RequiredArgumentMissingError) as raises: - self.cmd('az communication chat list-threads --endpoint {endpoint}').get_output_in_json() - - assert '--access-token' in str(raises.exception) - assert 'AZURE_COMMUNICATION_ACCESS_TOKEN' in str(raises.exception) - - @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_chat_create_thread(self, communication_resource_info): diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index 1f65e55876c..c5cb861e33c 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -24,6 +24,25 @@ def __init__(self, method_name): ]) + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_create_user(self, communication_resource_info): + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + res = self.cmd('az communication identity create-user').get_output_in_json() + assert res is not None + assert res['properties']['id'] == res['rawId'] + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_delete_user(self, communication_resource_info): + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + res = self.cmd('az communication identity create-user').get_output_in_json() + user_id = res['properties']['id'] + + self.kwargs.update({ 'user_id': user_id }) + self.cmd('az communication identity delete-user --user-id {user_id}') + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_issue_access_token(self, communication_resource_info): 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 a15cadd764d..65e8095e643 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-08-08 22:41:22.883685|2022-08-08 22:41:23.409382| -|step_show|successed||||2022-08-08 22:41:23.409382|2022-08-08 22:41:23.461645| -|step_list|successed||||2022-08-08 22:41:23.461645|2022-08-08 22:41:23.510634| -|step_list2|successed||||2022-08-08 22:41:23.510634|2022-08-08 22:41:23.564151| -|step_update|successed||||2022-08-08 22:41:23.564151|2022-08-08 22:41:23.615118| -|step_link_notification_hub|successed||||2022-08-08 22:41:23.615118|2022-08-08 22:41:23.671500| -|step_list_key|successed||||2022-08-08 22:41:23.672459|2022-08-08 22:41:23.723282| -|step_regenerate_key|successed||||2022-08-08 22:41:23.723282|2022-08-08 22:41:23.774824| -|step_delete|successed||||2022-08-08 22:41:23.774824|2022-08-08 22:41:24.114065| +|step_create|successed||||2022-08-10 02:53:56.293621|2022-08-10 02:53:56.722867| +|step_show|successed||||2022-08-10 02:53:56.722867|2022-08-10 02:53:56.787204| +|step_list|successed||||2022-08-10 02:53:56.788188|2022-08-10 02:53:56.855498| +|step_list2|successed||||2022-08-10 02:53:56.856411|2022-08-10 02:53:56.938058| +|step_update|successed||||2022-08-10 02:53:56.939059|2022-08-10 02:53:57.015767| +|step_link_notification_hub|successed||||2022-08-10 02:53:57.015767|2022-08-10 02:53:57.094033| +|step_list_key|successed||||2022-08-10 02:53:57.094033|2022-08-10 02:53:57.172616| +|step_regenerate_key|successed||||2022-08-10 02:53:57.172616|2022-08-10 02:53:57.249500| +|step_delete|successed||||2022-08-10 02:53:57.249500|2022-08-10 02:53:57.567183| Coverage: 9/9 From 2ebba813fc018eeaab4137f5b6612564df54be21 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 16 Aug 2022 02:38:06 -0700 Subject: [PATCH 22/26] [Communicaiton] address PR comments --- src/communication/HISTORY.rst | 4 + src/communication/README.md | 56 +- .../azext_communication/manual/_help.py | 171 ++-- .../azext_communication/manual/_params.py | 123 +-- .../azext_communication/manual/commands.py | 75 +- .../recordings/test_chat_add_participant.yaml | 205 ----- .../test_chat_add_participant_bad_user.yaml | 198 ---- ...hat_add_participant_with_display_name.yaml | 206 ----- ...hat_add_participant_with_history_time.yaml | 206 ----- .../recordings/test_chat_create_thread.yaml | 26 +- ...test_chat_create_thread_without_topic.yaml | 12 +- .../recordings/test_chat_delete_message.yaml | 44 +- .../recordings/test_chat_delete_thread.yaml | 36 +- .../recordings/test_chat_get_message.yaml | 48 +- .../recordings/test_chat_list_messages.yaml | 56 +- .../test_chat_list_participants.yaml | 40 +- ..._chat_list_participants_bad_thread_id.yaml | 20 +- .../test_chat_list_threads_no_endpoint.yaml | 12 +- ...t_chat_list_threads_with_cmdline_auth.yaml | 20 +- .../test_chat_list_threads_with_env_auth.yaml | 20 +- .../recordings/test_chat_read_receipts.yaml | 88 +- .../test_chat_remove_participants.yaml | 80 +- .../test_chat_send_html_message.yaml | 36 +- .../recordings/test_chat_send_message.yaml | 36 +- ...est_chat_send_message_without_content.yaml | 26 +- .../test_chat_send_text_message.yaml | 36 +- .../recordings/test_chat_update_message.yaml | 44 +- .../recordings/test_chat_update_topic.yaml | 40 +- .../test_communication_scenario.yaml | 134 +-- .../latest/recordings/test_create_user.yaml | 12 +- .../latest/recordings/test_delete_user.yaml | 20 +- .../recordings/test_issue_access_token.yaml | 12 +- .../test_issue_access_token_with_id.yaml | 28 +- ...sue_access_token_with_multiple_scopes.yaml | 12 +- .../recordings/test_list_phonenumbers.yaml | 98 +- .../recordings/test_phonenumber_show.yaml | 311 +++++++ .../recordings/test_revoke_access_tokens.yaml | 20 +- .../latest/recordings/test_send_sms.yaml | 100 +- .../test_send_sms_n_recipients.yaml | 276 +++--- .../recordings/test_show_phonenumbers.yaml | 98 +- .../latest/recordings/test_sms_send.yaml | 315 +++++++ .../test_sms_send_n_recipients.yaml | 866 ++++++++++++++++++ .../latest/recordings/test_token_issue.yaml | 56 ++ .../recordings/test_token_issue_with_id.yaml | 110 +++ ...test_token_issue_with_multiple_scopes.yaml | 56 ++ .../test_communication_chat_scenario.py | 86 +- .../test_communication_identity_scenario.py | 43 +- ...test_communication_phonenumber_scenario.py | 30 + .../test_communication_scenario_coverage.md | 18 +- .../test_communication_sms_scenarios.py | 57 ++ 50 files changed, 2894 insertions(+), 1828 deletions(-) delete mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml delete mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml delete mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml delete mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml diff --git a/src/communication/HISTORY.rst b/src/communication/HISTORY.rst index d73f843cbb6..8a0507db6e3 100644 --- a/src/communication/HISTORY.rst +++ b/src/communication/HISTORY.rst @@ -7,6 +7,10 @@ Release History ++++++ * Add communication chat command group in preview mode. * Add communication identity command group in preview mode. +* Deprecate 'identity issue-access-token' for 'identity token issue' +* Deprecate 'sms sens-sms' for 'sms send' +* Deprecate 'phonenumbers show-phonenumber' for 'phonenumber show' +* Deprecate 'phonenumbers list-phonenumbers' for 'phonenumber list' 1.1.2 diff --git a/src/communication/README.md b/src/communication/README.md index 6c308110f4a..299d92c8ec0 100644 --- a/src/communication/README.md +++ b/src/communication/README.md @@ -11,7 +11,7 @@ Then set the `AZURE_COMMUNICATION_CONNECTION_STRING` environment variable with y For chat module, set both `AZURE_COMMUNICAITON_ENDPOINT` and `AZURE_COMMUNICATION_ACCESS_TOKEN` environment variables. You can find your endpoint from your in Azure Portal under your communication resource, and an access token can be created with -```az communication identity issue-access-token --scope chat```. +```az communication identity token issue --scope chat```. ### Included Features ### @@ -57,94 +57,92 @@ az communication delete --name "MyCommunicationResource" --resource-group "MyRes ``` ##### Create-User ##### ``` -az communication identity create-user +az communication identity user create ``` ##### Delete-User ##### ``` -az communication identity delete-user --user-id "8:acs:xxxxxx" +az communication identity user delete --user "8:acs:xxxxxx" ``` ##### Issue-Access-Token ##### ``` -az communication identity issue-access-token --scope chat +az communication identity token issue --scope chat -az communication identity issue-access-token --scope chat voip --user-id "8:acs:xxxxxx" +az communication identity token issue --scope chat voip --user "8:acs:xxxxxx" ``` ##### Revoke-Access-Tokens ##### ``` -az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" - -az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" "8:acs:xxxxxy" "8:acs:xxxxxz" +az communication identity token revoke --user "8:acs:xxxxxx" ``` ##### Get-Token-For-Teams-User ##### ``` -az communication identity get-token-for-teams-user --aad-token "MyAzureADToken" --client-id "MyAzureADAppId" --user-object-id "MyTeamsUserId" +az communication identity token get-for-teams-user --aad-token "MyAzureADToken" --client "MyAzureADAppId" --user-object "MyTeamsUserId" ``` ##### Send-SMS ##### ``` -az communication sms send-sms --sender "+1833xxxxxxx" \ +az communication sms send --sender "+1833xxxxxxx" \ --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!" ``` ##### List-Phonenumbers ##### ``` -az communication phonenumbers list-phonenumbers +az communication phonenumber list ``` ##### Show-Phonenumber ##### ``` -az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx" +az communication phonenumber show --phonenumber "+1833xxxxxxx" ``` ##### List-Threads ##### ``` -az communication chat list-threads --start-time "2022-07-14T10:20:30" +az communication chat thread list --start-time "2022-07-14T10:20:30" ``` ##### Create-Thread ##### ``` -az communication chat create-thread --topic "New Topic for Chat!" --idempotency-token "abc187xxxxxx" +az communication chat thread create --topic "New Topic for Chat!" --idempotency-token "abc187xxxxxx" ``` ##### Delete-Thread ##### ``` -az communication chat delete-thread --thread-id "19:xxxxxx" +az communication chat thread delete --thread "19:xxxxxx" +``` +##### Update Topic ##### +``` +az communication chat thread update-topic --thread "19:xxxxxx" --topic "New topic!" ``` ##### List-Participants ##### ``` -az communication chat list-participants --thread-id "19:xxxxxx" --skip "5" +az communication chat participant list --thread "19:xxxxxx" --skip "5" ``` ##### Add-Participant ##### ``` -az communication chat add-participant --thread-id "19:xxxxxx" --user-id "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-06-30T00:00:00" +az communication chat participant add --thread "19:xxxxxx" --user "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-06-30T00:00:00" ``` ##### Remove-Participant ##### ``` -az communication chat remove-participant --thread-id "19:xxxxxx" --user-id "8:acs:xxxxxx" +az communication chat participant remove --thread "19:xxxxxx" --user "8:acs:xxxxxx" ``` ##### Send-Message ##### ``` -az communication chat send-message --thread-id "19:xxxxxx" --display-name "John Doe" --content "Hello there!" --message-type "text" +az communication chat message send --thread "19:xxxxxx" --display-name "John Doe" --content "Hello there!" --message-type "text" ``` ##### List-Messages ##### ``` -az communication chat list-messages --thread-id "19:xxxxxx" --start-time "2022-07-14T10:20:30" +az communication chat message list --thread "19:xxxxxx" --start-time "2022-07-14T10:20:30" ``` ##### Get-Message ##### ``` -az communication chat get-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" +az communication chat message get --thread "19:xxxxxx" --message-id "1xxxxxxxxxxxx" ``` ##### Update-Message ##### ``` -az communication chat update-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" --message_content "Hello there, again!" +az communication chat message update --thread "19:xxxxxx" --message-id "1xxxxxxxxxxxx" --content "Hello there, again!" ``` ##### Delete-Message ##### ``` -az communication chat delete-message --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" -``` -##### Update Topic ##### -``` -az communication chat update-topic --thread-id "19:xxxxxx" --topic "New topic!" +az communication chat message delete --thread "19:xxxxxx" --message-id "1xxxxxxxxxxxx" ``` ##### List-Read-Receipts ##### ``` -az communication chat list-read-receipts --thread-id "19:xxxxxx" --skip "5" +az communication chat message receipt list --thread "19:xxxxxx" --skip "5" ``` ##### Send-Read-Receipt ##### ``` -az communication chat send-read-receipt --thread-id "19:xxxxxx" --message-id "1xxxxxxxxxxxx" +az communication chat message receipt send --thread "19:xxxxxx" --message-id "1xxxxxxxxxxxx" ``` diff --git a/src/communication/azext_communication/manual/_help.py b/src/communication/azext_communication/manual/_help.py index a930f308bfc..7e84adbfc19 100644 --- a/src/communication/azext_communication/manual/_help.py +++ b/src/communication/azext_communication/manual/_help.py @@ -114,55 +114,65 @@ helps['communication identity'] = """ type: group - short-summary: Commands to manage User Identity for a CommunicationService resource. + short-summary: Commands to manage user identities and their tokens for a CommunicationService resource. """ -helps['communication identity create-user'] = """ +helps['communication identity user'] = """ + type: subgroup + short-summary: Commands to manage user Identities for a CommunicationService resource. +""" + +helps['communication identity user create'] = """ type: command short-summary: "Craetes a new ACS identity." examples: - - name: create-user + - name: create text: |- - az communication identity create-user + az communication identity user create """ -helps['communication identity delete-user'] = """ +helps['communication identity user delete'] = """ type: command short-summary: "Deletes the ACS identity, revokes all tokens for the identity and deletes all associated data." examples: - - name: delete-user + - name: delete text: |- - az communication identity delete-user --user-id "8:acs:xxxxxx" + az communication identity user delete --user "8:acs:xxxxxx" +""" + +helps['communication identity token'] = """ + type: subgroup + short-summary: Commands to manage user tokens for a CommunicationService resource. """ -helps['communication identity issue-access-token'] = """ +helps['communication identity token issue'] = """ type: command short-summary: "Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well." examples: - - name: issue-access-token + - name: issue access-token text: |- - az communication identity issue-access-token --scope chat - - name: issue-access-token with multiple scopes and userid + az communication identity token issue --scope chat + - name: issue access-token with multiple scopes and user text: |- - az communication identity issue-access-token --scope chat voip --user-id "8:acs:xxxxxx" + az communication identity tolen issue --scope chat voip --user "8:acs:xxxxxx" """ -helps['communication identity revoke-access-tokens'] = """ +helps['communication identity token revoke'] = """ type: command short-summary: "Revokes all access tokens for the specific identity." examples: - - name: revoke-access-tokens + - name: revoke access-tokens text: |- - az communication identity revoke-access-tokens --user-id "8:acs:xxxxxx" + az communication identity token revoke --user "8:acs:xxxxxx" """ -helps['communication identity get-token-for-teams-user'] = """ +helps['communication identity token get-for-teams-user'] = """ type: command short-summary: "Exchanges an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication Identity access token with a matching expiration time." examples: - - name: get-token-for-teams-user + - name: token get-for-teams-user text: |- - az communication identity get-token-for-teams-user --aad-token "aad-123-xyz" --client-id "app-id-123-xyz" --user-object-id "uid" + az communication identity token get-for-teams-user --aad-token "aad-123-xyz" --client "app-id-123-xyz" --user-object "uid" """ helps['communication sms'] = """ @@ -176,31 +186,31 @@ examples: - name: send sms text: |- - az communication sms send-sms --sender "+1833xxxxxxx" \ + az communication sms send --sender "+1833xxxxxxx" \ --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!" """ -helps['communication phonenumbers'] = """ +helps['communication phonenumber'] = """ type: group short-summary: Commands to manage phone numbers for a CommunicationService resource. """ -helps['communication phonenumbers list-phonenumbers'] = """ +helps['communication phonenumber list'] = """ type: command short-summary: "Lists all phone numbers associated with the CommunicationService resource." examples: - name: list phonenumbers text: |- - az communication phonenumbers list-phonenumbers + az communication phonenumber list """ -helps['communication phonenumbers show-phonenumber'] = """ +helps['communication phonenumber show'] = """ type: command short-summary: "Shows the details for a phone number associated with the CommunicationService resource." examples: - name: show phonenumber text: |- - az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx" + az communication phonenumber show --phonenumber "+1833xxxxxxx" """ helps['communication chat'] = """ @@ -208,128 +218,143 @@ short-summary: Commands to interact with Azure Communication Services Chat gateway. """ -helps['communication chat list-threads'] = """ +helps['communication chat thread'] = """ + type: subgroup + short-summary: Commands to manage chat thread of a CommunicationService resource. +""" + +helps['communication chat thread list'] = """ type: command short-summary: "Gets the list of chat threads of a user." examples: - - name: chat list-threads + - name: chat list threads text: |- - az communication chat list-threads + az communication chat thread list """ -helps['communication chat create-thread'] = """ +helps['communication chat thread create'] = """ type: command short-summary: "Creates a chat thread." examples: - - name: chat create-thread + - name: chat create thread text: |- - az communication chat create-thread --topic "chat-topic" + az communication chat thread create --topic "chat-topic" """ -helps['communication chat delete-thread'] = """ +helps['communication chat thread delete'] = """ type: command short-summary: "Deletes a chat thread." examples: - - name: chat delete-thread + - name: chat delete thread + text: |- + az communication chat thread delete --thread "19:a-bcd=xyz" +""" + +helps['communication chat thread update-topic'] = """ + type: command + short-summary: "Updates the topic of a chat thread." + examples: + - name: chat update-topic text: |- - az communication chat delete-thread --thread-id "19:a-bcd=xyz" + az communication chat thread update-topic --thread "19:a-bcd=xyz" --topic "New topic!" +""" + +helps['communication chat participant'] = """ + type: subgroup + short-summary: Commands to manage participants in a chat thread of a CommunicationService resource. """ -helps['communication chat list-participants'] = """ +helps['communication chat participant list'] = """ type: command short-summary: "Gets the participants of a chat thread." examples: - - name: chat list-participants + - name: chat list participants text: |- - az communication chat list-participants --thread-id "19:a-bcd=xyz" --skip "4" + az communication chat participant list --thread "19:a-bcd=xyz" --skip "4" """ -helps['communication chat add-participant'] = """ +helps['communication chat participant add'] = """ type: command short-summary: "Adds a participant to a chat thread." examples: - - name: chat add-participant + - name: chat add participant text: |- - az communication chat add-participant --thread-id "19:a-bcd=xyz" --user-id "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-07-14T10:21" + az communication chat participant add --thread "19:a-bcd=xyz" --user "8:acs:xxxxxx" --display-name "John Doe" --start-time "2022-07-14T10:21" """ -helps['communication chat remove-participant'] = """ +helps['communication chat participant remove'] = """ type: command - short-summary: "Removes a participant to a chat thread." + short-summary: "Removes a participant from a chat thread." examples: - - name: chat remove-participant + - name: chat remove participant text: |- - az communication chat remove-participant --thread-id "19:a-bcd=xyz" --user-id "8:acs:xxxxxx" + az communication chat participant remove --thread "19:a-bcd=xyz" --user "8:acs:xxxxxx" """ -helps['communication chat send-message'] = """ +helps['communication chat message'] = """ + type: subgroup + short-summary: Commands to manage messages in a chat thread of a CommunicationService resource. +""" + +helps['communication chat message send'] = """ type: command short-summary: "Sends a message to a chat thread." examples: - - name: chat send-message + - name: chat send message text: |- - az communication chat send-message --thread-id "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text" + az communication chat message send --thread "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text" """ -helps['communication chat list-messages'] = """ +helps['communication chat message list'] = """ type: command short-summary: "Gets list of messages from a chat thread." examples: - - name: chat list-messages + - name: chat list messages text: |- - az communication chat list-messages --thread-id "19:a-bcd=xyz" --start-time "2022-07-14T10:21" + az communication chat message list --thread "19:a-bcd=xyz" --start-time "2022-07-14T10:21" """ -helps['communication chat get-message'] = """ +helps['communication chat message get'] = """ type: command short-summary: "Gets a message from a chat thread by id." examples: - - name: chat get-message + - name: chat get message text: |- - az communication chat get-message --thread-id "19:a-bcd=xyz" --message-id "12345678" + az communication chat message get --thread "19:a-bcd=xyz" --message-id "12345678" """ -helps['communication chat update-message'] = """ +helps['communication chat message update'] = """ type: command short-summary: "Updates a message." examples: - - name: chat update-message + - name: chat update message text: |- - az communication chat update-message --thread-id "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!" + az communication chat message update --thread "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!" """ -helps['communication chat delete-message'] = """ +helps['communication chat message delete'] = """ type: command short-summary: "Deletes a message from a chat thread by id." examples: - - name: chat delete-message - text: |- - az communication chat delete-message --thread-id "19:a-bcd=xyz" --message-id "12345678" -""" - -helps['communication chat update-topic'] = """ - type: command - short-summary: "Updates the topic of a chat thread." - examples: - - name: chat update-topic + - name: chat delete message text: |- - az communication chat update-topic --thread-id "19:a-bcd=xyz" --topic "New topic!" + az communication chat message delete --thread "19:a-bcd=xyz" --message-id "12345678" """ -helps['communication chat list-read-receipts'] = """ +helps['communication chat message receipt list'] = """ type: command short-summary: "Gets read receipts of a chat thread." examples: - - name: chat list-read-receipts + - name: chat list read-receipts text: |- - az communication chat list-read-receipts --thread-id "19:a-bcd=xyz" --skip "4" + az communication chat message receipt list --thread "19:a-bcd=xyz" --skip "4" """ -helps['communication chat send-read-receipt'] = """ +helps['communication chat message receipt send'] = """ type: command short-summary: "Posts a read receipt event to a chat thread, on behalf of a user." examples: - - name: chat send-read-receipt + - name: chat send read-receipt text: |- - az communication chat send-read-receipt --thread-id "19:a-bcd=xyz" --message-id "12345678" + az communication chat message receipt send --thread "19:a-bcd=xyz" --message-id "12345678" """ diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index b0155d09dd6..8dbdb1f0b53 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -15,24 +15,29 @@ def load_arguments(self, _): def _load_identity_arguments(self): - self.argument_context('communication identity create-user') + self.argument_context('communication identity user create') - with self.argument_context('communication identity delete-user') as c: - c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') + with self.argument_context('communication identity user delete') as c: + c.argument('user_id', options_list=['--user'], type=str, help='ACS identifier') with self.argument_context('communication identity issue-access-token') as c: - c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') + c.argument('user_id', options_list=['--userid', '-u'], type=str, help='ACS identifier') c.argument('scopes', options_list=['--scope', '-s'], nargs='+', help='list of scopes for an access token ex: chat/voip') - with self.argument_context('communication identity revoke-access-tokens') as c: - c.argument('user_id', options_list=['--user-id', '-u'], type=str, help='ACS identifier') + with self.argument_context('communication identity token issue') as c: + c.argument('user_id', options_list=['--user'], type=str, help='ACS identifier') + c.argument('scopes', options_list=['--scope'], nargs='+', + help='list of scopes for an access token ex: chat/voip') - with self.argument_context('communication identity get-token-for-teams-user') as c: + with self.argument_context('communication identity token revoke') as c: + c.argument('user_id', options_list=['--user'], type=str, help='ACS identifier') + + with self.argument_context('communication identity token get-for-teams-user') as c: c.argument('aad_token', options_list=['--aad-token'], type=str, help='Azure AD access token of a Teams User') - c.argument('client_id', options_list=['--client-id'], type=str, help='Client ID of an Azure AD application' + c.argument('client_id', options_list=['--client'], type=str, help='Client ID of an Azure AD application' 'to be verified against the appId claim in the Azure AD access token') - c.argument('user_object_id', options_list=['--user-object-id'], type=str, help='Object ID of an Azure AD user' + c.argument('user_object_id', options_list=['--aad-user'], type=str, help='Object ID of an Azure AD user' '(Teams User) to be verified against the OID claim in the Azure AD access token') @@ -44,12 +49,22 @@ def _load_sms_arguments(self): nargs='+', help='The recipient(s) of the SMS') c.argument('message', options_list=['--message', '-m'], type=str, help='The message in the SMS') + with self.argument_context('communication sms send') as c: + c.argument('sender', options_list=['--sender'], + type=str, help='The sender of the SMS') + c.argument('recipients', options_list=['--recipient'], + nargs='+', help='The recipient(s) of the SMS') + c.argument('message', options_list=['--message'], + type=str, help='The message in the SMS') def _load_phonenumber_arguments(self): with self.argument_context('communication phonenumbers show-phonenumber') as c: c.argument('phonenumber', options_list=['--phonenumber', '-p'], type=str, help='Phone number to get information about') + with self.argument_context('communication phonenumbers show') as c: + c.argument('phonenumber', options_list=['--phonenumber'], + type=str, help='Phone number to get information about') def _load_chat_arguments(self): @@ -59,96 +74,96 @@ def _load_chat_arguments(self): def _load_chat_thread_management(self): - with self.argument_context('communication chat list-threads') as c: - c.argument('start_time', options_list=['--start-time', '-s'], + with self.argument_context('communication chat thread list') as c: + c.argument('start_time', options_list=['--start-time'], type=str, help='Start time in ISO8601 format, ex: 2022-07-14T10:21') - with self.argument_context('communication chat create-thread') as c: - c.argument('topic', options_list=['--topic', '-p'], + with self.argument_context('communication chat thread create') as c: + c.argument('topic', options_list=['--topic'], type=str, help='Chat topic') c.argument('idempotency_token', options_list=['--idempotency-token'], type=str, help='Idempotency token') - with self.argument_context('communication chat delete-thread') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat thread delete') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') + with self.argument_context('communication chat thread update-topic') as c: + c.argument('thread_id', options_list=['--thread', '-t'], + type=str, help='Thread id') + c.argument('topic', options_list=['--topic'], + type=str, help='Chat topic') + def _load_chat_participant_management(self): - with self.argument_context('communication chat list-participants') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat participant list') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') c.argument('skip', options_list=['--skip'], type=str, help='Number of participants to skip') - with self.argument_context('communication chat add-participant') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat participant add') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('user_id', options_list=['--user-id', '-u'], + c.argument('user_id', options_list=['--user'], type=str, help='Chat participant identifier') - c.argument('display_name', options_list=['--display-name', '-d'], + c.argument('display_name', options_list=['--display-name'], type=str, help='Chat participant display name') - c.argument('start_time', options_list=['--start-time', '-s'], + c.argument('start_time', options_list=['--start-time'], type=str, help='Start time to share history in ISO8601 format, ex: 2022-07-14T10:21') - with self.argument_context('communication chat remove-participant') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat participant remove') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('user_id', options_list=['--user-id', '-u'], + c.argument('user_id', options_list=['--user'], type=str, help='Chat participant identifier') def _load_chat_message_management(self): - with self.argument_context('communication chat send-message') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message send') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('display_name', options_list=['--display-name', '-d'], + c.argument('display_name', options_list=['--display-name'], type=str, help='Sender''s display name') - c.argument('message_content', options_list=['--content', '-c'], + c.argument('message_content', options_list=['--content'], type=str, help='Chat message content') - c.argument('message_type', options_list=['--message-type', '-y'], + c.argument('message_type', options_list=['--message-type'], type=str, help='Content type, can be text or html') - with self.argument_context('communication chat list-messages') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message list') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('start_time', options_list=['--start-time', '-s'], + c.argument('start_time', options_list=['--start-time'], type=str, help='Start time in ISO8601 format, ex: 2022-07-14T10:21') - with self.argument_context('communication chat get-message') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message get') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('message_id', options_list=['--message-id', '-i'], + c.argument('message_id', options_list=['--message-id'], type=str, help='Message id') - with self.argument_context('communication chat update-message') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message update') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('message_id', options_list=['--message-id', '-i'], + c.argument('message_id', options_list=['--message-id'], type=str, help='Message id') - c.argument('message_content', options_list=['--content', '-c'], + c.argument('message_content', options_list=['--content'], type=str, help='Chat message content') - with self.argument_context('communication chat delete-message') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message delete') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('message_id', options_list=['--message-id', '-i'], + c.argument('message_id', options_list=['--message-id'], type=str, help='Message id') - with self.argument_context('communication chat update-topic') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], - type=str, help='Thread id') - c.argument('topic', options_list=['--topic', '-p'], - type=str, help='Chat topic') - - with self.argument_context('communication chat list-read-receipts') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message receipt list') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') c.argument('skip', options_list=['--skip'], type=str, help='Number of read receipts to skip') - with self.argument_context('communication chat send-read-receipt') as c: - c.argument('thread_id', options_list=['--thread-id', '-t'], + with self.argument_context('communication chat message receipt send') as c: + c.argument('thread_id', options_list=['--thread', '-t'], type=str, help='Thread id') - c.argument('message_id', options_list=['--message-id', '-i'], + c.argument('message_id', options_list=['--message-id'], type=str, help='Message id') diff --git a/src/communication/azext_communication/manual/commands.py b/src/communication/azext_communication/manual/commands.py index 32c0386a8e9..427f3cce8ae 100644 --- a/src/communication/azext_communication/manual/commands.py +++ b/src/communication/azext_communication/manual/commands.py @@ -13,40 +13,57 @@ def load_command_table(self, _): identity_arguments = ['connection_string'] - with self.command_group('communication identity', client_factory=cf_communication_identity, is_preview=True) as g: - g.communication_custom_command('create-user', "communication_identity_create_user", identity_arguments, client_factory=cf_communication_identity) - g.communication_custom_command('delete-user', "communication_identity_delete_user", identity_arguments, client_factory=cf_communication_identity) - g.communication_custom_command('issue-access-token', "communication_identity_issue_access_token", identity_arguments, client_factory=cf_communication_identity) - g.communication_custom_command('revoke-access-tokens', "communication_identity_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) - g.communication_custom_command('get-token-for-teams-user', "communication_identity_get_token_for_teams_user", identity_arguments, client_factory=cf_communication_identity) + with self.command_group('communication identity user', client_factory=cf_communication_identity, is_preview=True) as g: + g.communication_custom_command('create', "communication_identity_create_user", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('delete', "communication_identity_delete_user", identity_arguments, client_factory=cf_communication_identity) + + with self.command_group('communication identity', client_factory=cf_communication_identity) as g: + g.communication_custom_command('issue-access-token', "communication_identity_issue_access_token", identity_arguments, client_factory=cf_communication_identity, + deprecate_info=self.deprecate(redirect='token issue', hide=True)) + + with self.command_group('communication identity token', client_factory=cf_communication_identity, is_preview=True) as g: + g.communication_custom_command('issue', "communication_identity_issue_access_token", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('revoke', "communication_identity_revoke_access_tokens", identity_arguments, client_factory=cf_communication_identity) + g.communication_custom_command('get-for-teams-user', "communication_identity_get_token_for_teams_user", identity_arguments, client_factory=cf_communication_identity) sms_arguments = ['connection_string'] with self.command_group('communication sms', client_factory=cf_communication_sms, is_preview=True) as g: - g.communication_custom_command('send-sms', 'communication_send_sms', sms_arguments) + g.communication_custom_command('send', 'communication_send_sms', sms_arguments) + with self.command_group('communication sms', client_factory=cf_communication_sms) as g: + g.communication_custom_command('send-sms', 'communication_send_sms', sms_arguments, + deprecate_info=self.deprecate(redirect='send', hide=True)) phonenumber_arguments = ['connection_string'] - with self.command_group('communication phonenumbers', client_factory=cf_communication_phonenumbers, is_preview=True) as g: - g.communication_custom_command('list-phonenumbers', 'communication_list_phonenumbers', phonenumber_arguments) - g.communication_custom_command('show-phonenumber', 'communication_show_phonenumber', phonenumber_arguments) + with self.command_group('communication phonenumber', client_factory=cf_communication_phonenumbers, is_preview=True) as g: + g.communication_custom_command('list', 'communication_list_phonenumbers', phonenumber_arguments) + g.communication_custom_command('show', 'communication_show_phonenumber', phonenumber_arguments) + with self.command_group('communication phonenumbers', client_factory=cf_communication_phonenumbers) as g: + g.communication_custom_command('list-phonenumbers', 'communication_list_phonenumbers', phonenumber_arguments, + deprecate_info=self.deprecate(redirect='list', hide=True)) + g.communication_custom_command('show-phonenumber', 'communication_show_phonenumber', phonenumber_arguments, + deprecate_info=self.deprecate(redirect='show', hide=True)) chat_arguments = ['endpoint', 'access_token'] - with self.command_group('communication chat', client_factory=cf_communication_chat, is_preview=True) as g: - # thread management - g.communication_custom_command('list-threads', 'communication_chat_list_threads', chat_arguments) - g.communication_custom_command('create-thread', 'communication_chat_create_thread', chat_arguments) - g.communication_custom_command('delete-thread', 'communication_chat_delete_thread', chat_arguments) - - # participant management - g.communication_custom_command('list-participants', 'communication_chat_list_participants', chat_arguments) - g.communication_custom_command('add-participant', 'communication_chat_add_participant', chat_arguments) - g.communication_custom_command('remove-participant', 'communication_chat_remove_participant', chat_arguments) - - # message management - g.communication_custom_command('list-messages', 'communication_chat_list_messages', chat_arguments) - g.communication_custom_command('send-message', 'communication_chat_send_message', chat_arguments) - g.communication_custom_command('get-message', 'communication_chat_get_message', chat_arguments) - g.communication_custom_command('update-message', 'communication_chat_update_message', chat_arguments) - g.communication_custom_command('delete-message', 'communication_chat_delete_message', chat_arguments) + # thread management + with self.command_group('communication chat thread', client_factory=cf_communication_chat, is_preview=True) as g: + g.communication_custom_command('list', 'communication_chat_list_threads', chat_arguments) + g.communication_custom_command('create', 'communication_chat_create_thread', chat_arguments) + g.communication_custom_command('delete', 'communication_chat_delete_thread', chat_arguments) g.communication_custom_command('update-topic', 'communication_chat_update_topic', chat_arguments) - g.communication_custom_command('list-read-receipts', 'communication_chat_list_read_receipts', chat_arguments) - g.communication_custom_command('send-read-receipt', 'communication_chat_send_read_receipt', chat_arguments) + + # participant management + with self.command_group('communication chat participant', client_factory=cf_communication_chat, is_preview=True) as g: + g.communication_custom_command('list', 'communication_chat_list_participants', chat_arguments) + g.communication_custom_command('add', 'communication_chat_add_participant', chat_arguments) + g.communication_custom_command('remove', 'communication_chat_remove_participant', chat_arguments) + + # message management + with self.command_group('communication chat message', client_factory=cf_communication_chat, is_preview=True) as g: + g.communication_custom_command('list', 'communication_chat_list_messages', chat_arguments) + g.communication_custom_command('send', 'communication_chat_send_message', chat_arguments) + g.communication_custom_command('get', 'communication_chat_get_message', chat_arguments) + g.communication_custom_command('update', 'communication_chat_update_message', chat_arguments) + g.communication_custom_command('delete', 'communication_chat_delete_message', chat_arguments) + with self.command_group('communication chat message receipt', client_factory=cf_communication_chat, is_preview=True) as g: + g.communication_custom_command('list', 'communication_chat_list_read_receipts', chat_arguments) + g.communication_custom_command('send', 'communication_chat_send_read_receipt', chat_arguments) diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml deleted file mode 100644 index 3187a15d44b..00000000000 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml +++ /dev/null @@ -1,205 +0,0 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:17 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:18.1405279+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: - - Wed, 10 Aug 2022 02:08:18 GMT - ms-cv: - - fI7/ZVlyHkaTkZzjcmV/hQ.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020817Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug0000000055cq - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 225ms - status: - code: 201 - message: Created -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:18 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:18.7997812+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: - - Wed, 10 Aug 2022 02:08:18 GMT - ms-cv: - - KvLB2yF7yU+LxhtwDtTI1A.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020818Z-huevmdadqx2sz9yxspbd0a0pg800000000s000000000rcm5 - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 143ms - status: - code: 201 - message: Created -- request: - body: '{"topic": "chat-topic", "participants": []}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - repeatability-request-id: - - 6b9bb915-dc8c-47a9-ad58-a27f24e07ec3 - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 - response: - body: - string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-10T02:08:19Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", - "communicationUser": {"id": "sanitized"}}}}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:20 GMT - location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AaSmQGitZlMnaiiDv9lOwJ0Jj_ZSgA0NUlDXwRZ1l2pg1@thread.v2 - ms-cv: - - tfmeFenQykaHLjU5vLy4JA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020819Z-s1214kcr1x3rx7q1xwqyxffbgw00000000r000000001xegx - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 888ms - status: - code: 201 - message: Created -- request: - body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:8d660a5d-2f5c-46a0-8d5c-5e70721b8412_00000013-2564-256a-b4f1-9c3a0d007f69"}}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '161' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 - response: - body: - string: '{}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - z5LJZO83PUi+yKv0swbJWw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020820Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002dv8f - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 217ms - status: - code: 201 - message: Created -version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml deleted file mode 100644 index 07d63bb27ac..00000000000 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml +++ /dev/null @@ -1,198 +0,0 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:18 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:18.6268046+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: - - Wed, 10 Aug 2022 02:08:18 GMT - ms-cv: - - WtevSC8MIk+EVw6Ce6rfUw.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020818Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001f8th - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 116ms - status: - code: 201 - message: Created -- request: - body: '{"topic": "chat-topic", "participants": []}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - repeatability-request-id: - - f0dbbc47-172e-436d-9b07-45e8016820fb - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 - response: - body: - string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-10T02:08:19Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", - "communicationUser": {"id": "sanitized"}}}}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:19 GMT - location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AC4O4tWI-vqoQ4OaomJxNea-fCHDywqDu5g2ndKo-pMk1@thread.v2 - ms-cv: - - 9y7SssfV6Ui+bulINgPnUA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020818Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001bx84 - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 920ms - status: - code: 201 - message: Created -- request: - body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '161' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 - response: - body: - string: '{"invalidParticipants": [{"code": "403", "message": "Permissions check - failed", "target": "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}]}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - apQ+xHZ/F0+Z9qQJwOQ/rQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020820Z-wa551hkds961h6e2hcntxt8eh400000000q000000002243x - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 213ms - status: - code: 201 - message: Created -- request: - body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:fakeid==="}}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '97' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 - response: - body: - string: '{"CommunicationError": {"Code": "BadRequest", "Message": "Identifier - format is invalid (8:acs:fakeid===).", "Details": []}}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json - date: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - FaenLViGkUKYiosY4xKeow.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020820Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000rg0000000183dq - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 28ms - status: - code: 400 - message: Bad Request -version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml deleted file mode 100644 index 949535d1e04..00000000000 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml +++ /dev/null @@ -1,206 +0,0 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:17 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:18.2573045+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: - - Wed, 10 Aug 2022 02:08:18 GMT - ms-cv: - - EJtZaSn1TEmyWftDP1WMAg.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020818Z-gu5mc89ux17apbrm5n76u6e4ng00000000q000000001vyhh - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 114ms - status: - code: 201 - message: Created -- request: - body: '{"topic": "chat-topic", "participants": []}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - repeatability-request-id: - - b9602bd0-f559-4a0e-8542-69157eb9f696 - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 - response: - body: - string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-10T02:08:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", - "communicationUser": {"id": "sanitized"}}}}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:19 GMT - location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AIODx0rB3ctnDNH-uNthmsDlzAwXAOZ0qUC8lFJT1fNo1@thread.v2 - ms-cv: - - SwZvZBid5kG0jIbGpdBDyw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020818Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001w8ph - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 551ms - status: - code: 201 - message: Created -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:19 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:19.5054119+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: - - Wed, 10 Aug 2022 02:08:19 GMT - ms-cv: - - iOzJjAt+7EaN8aE/u7p2Rg.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020819Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000rg00000000hqde - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 159ms - status: - code: 201 - message: Created -- request: - body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:ccb08cd8-be98-4615-9496-ae70b5a358db_00000013-2564-282c-570c-113a0d00907d"}}, - "displayName": "John Doe"}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '188' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 - response: - body: - string: '{}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - xlSAriudp0SwxwcIvLQtZQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020819Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000k75f - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 311ms - status: - code: 201 - message: Created -version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml deleted file mode 100644 index f7778787d18..00000000000 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml +++ /dev/null @@ -1,206 +0,0 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:17 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:18.2732928+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: - - Wed, 10 Aug 2022 02:08:18 GMT - ms-cv: - - qEGMAfegSUykkh8ZllJOsg.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020817Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001nf1z - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 113ms - status: - code: 201 - message: Created -- request: - body: '{"topic": "chat-topic", "participants": []}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '43' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - repeatability-request-id: - - 48f348d5-7945-43c6-933c-3941f1734115 - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 - response: - body: - string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-10T02:08:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", - "communicationUser": {"id": "sanitized"}}}}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:19 GMT - location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AED3UoWH8YDw0PYn1-zod3PuuPSZdURzzk9KSOc0sH_E1@thread.v2 - ms-cv: - - 0gSBNPxLd0WAkNeq+qMOXw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020818Z-pvk0k4gqx51st0bh1fssf7cw3000000000q000000002ksvw - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 909ms - status: - code: 201 - message: Created -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-date: - - Wed, 10 Aug 2022 02:08:19 GMT - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:08:19.9181304+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: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - lK9keqLRk0uaQg6O1HRlLw.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 20220810T020819Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug0000000055uv - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 112ms - status: - code: 201 - message: Created -- request: - body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:e926dacb-fec6-48b8-b264-fdc7db4712a1_00000013-2564-29c9-570c-113a0d00907e"}}, - "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '209' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 - response: - body: - string: '{}' - headers: - api-supported-versions: - - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 10 Aug 2022 02:08:20 GMT - ms-cv: - - TEvPOVcFbkKK6LTJo07h6w.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-azure-ref: - - 20220810T020820Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001bxmy - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 240ms - status: - code: 201 - message: Created -version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index 511df8106d0..c1e6f861d0b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:30 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:09:56.6547451+00:00"}}' + "expiresOn": "2022-08-17T08:29:32.9375204+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:33 GMT ms-cv: - - nlNaLMBtTEWksu0rNFWO/Q.0 + - dHn9VbINi0CSpEKs17eFjw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020956Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001p8ps + - 20220816T082932Z-z5w8hfkph50p97tr7b7ay90rp000000000b0000000020e8s x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 147ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 0904d6ea-7ce8-40f0-9504-4a0bcb46ce1c + - 3ab99c6f-491f-4e74-a18d-c98313291560 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-10T02:09:57Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:29:33Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:57 GMT + - Tue, 16 Aug 2022 08:29:33 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AIzaPB8YgytBgjlrsUGu8ssagDGlyE1zI963jrNMfkhw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AlWSoi0HmANCoKYXvK2xIJ2gDBFfVV49ISaEENuIt9Rc1@thread.v2 ms-cv: - - bt0YAs493kWJQS4y0qNMGg.0 + - khxnP/QPz0Klpo90LI9DLQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T020956Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000q0000000038but + - 20220816T082933Z-z5w8hfkph50p97tr7b7ay90rp000000000a0000000034gnm x-cache: - CONFIG_NOCACHE x-processing-time: - - 621ms + - 514ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml index 49d543bcca2..039a42883b1 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:30 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:09:56.8588526+00:00"}}' + "expiresOn": "2022-08-17T08:29:32.3868449+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:32 GMT ms-cv: - - dZ1pCMlI0UKqFd65ukNDnA.0 + - ljoYO0UsTEqcwqYO3FnDcA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020956Z-gu5mc89ux17apbrm5n76u6e4ng00000000r00000000122rt + - 20220816T082932Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001ashv x-cache: - CONFIG_NOCACHE x-processing-time: - - 116ms + - 124ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 4b5dd150ed5..727970d0083 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:09:55 GMT + - Tue, 16 Aug 2022 08:29:31 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:09:56.2092693+00:00"}}' + "expiresOn": "2022-08-17T08:29:33.6215712+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:33 GMT ms-cv: - - n5wFxD0f30eip637QFQStQ.0 + - C/HGAue5zkWAZOjjJRCffQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020956Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000789n + - 20220816T082933Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000032dpp x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 120ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 7adc102f-0f0d-467c-be1a-736368efd106 + - c3744ea5-1784-411d-9a77-38ea443e69b8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-10T02:09:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:29:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:57 GMT + - Tue, 16 Aug 2022 08:29:34 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ATdrOi3dbOwdNkyJSri5mJIIGUDAeW9FTbQ7dJ1F-j7w1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ArQOXMS2mWKx92ZUExb4M0KWEbNlCAdbnU53lyJkJLa01@thread.v2 ms-cv: - - s3Pb+ZvenkKNex52kWzJyA.0 + - ZGpL72Bt9km8OHq0rjQVvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T020956Z-wa551hkds961h6e2hcntxt8eh400000000r000000001ex8w + - 20220816T082933Z-zvdmwacghh4c97ggppewnyshxn00000000e000000001rf0w x-cache: - CONFIG_NOCACHE x-processing-time: - - 997ms + - 821ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:58 GMT + - Tue, 16 Aug 2022 08:29:35 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ATdrOi3dbOwdNkyJSri5mJIIGUDAeW9FTbQ7dJ1F-j7w1@thread.v2/messages/1660097397986 + - https://clitest000002.communication.azure.com/chat/threads/19%3ArQOXMS2mWKx92ZUExb4M0KWEbNlCAdbnU53lyJkJLa01@thread.v2/messages/1660638575163 ms-cv: - - OskWUqNl4US9600Rl3NEVA.0 + - gvDCX4ek6kWFwu8aRuiODw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T020957Z-wa551hkds961h6e2hcntxt8eh400000000t0000000007g5k + - 20220816T082935Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000032eb9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 190ms + - 188ms status: code: 201 message: Created @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:09:58 GMT + - Tue, 16 Aug 2022 08:29:35 GMT ms-cv: - - e2kiKtrBQ0qAFxYhPTgW3A.0 + - v98sQhXWYEOmudjE03lIDA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020958Z-qw4txeh9r90g5czxetkag1fv6000000000rg000000013c70 + - 20220816T082935Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002eee9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 386ms + - 395ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml index 141c1944e27..aec92146c54 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:09:55 GMT + - Tue, 16 Aug 2022 08:29:31 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:09:55.8662106+00:00"}}' + "expiresOn": "2022-08-17T08:29:33.718361+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '122' + - '121' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:55 GMT + - Tue, 16 Aug 2022 08:29:33 GMT ms-cv: - - WylWM0I+1kmCzJEkebiJgw.0 + - L2FxlzGliE69v1weVfIYfQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020955Z-87ct2dqpah4z7432w4frs4m4s400000000t0000000008e7d + - 20220816T082933Z-z5w8hfkph50p97tr7b7ay90rp000000000a0000000034gr0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 114ms + - 119ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 31fdf4b3-eb88-4d9f-867a-37bad50bd3a8 + - a503b687-3389-437d-9b99-129101a46f84 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-10T02:09:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:29:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:09:56 GMT + - Tue, 16 Aug 2022 08:29:34 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AME7bCvOA7MKHXEDcRNyRvb9hhktdXfbi24O2-u1pOhk1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Aq6yQlPWVFa5iMLKPxOaIhUxjTL2kg0QnxYHxmqEm0C01@thread.v2 ms-cv: - - 7TH2NnQ7vkuaWZLSHDqGnA.0 + - pgywX5U7PEWhYHOWTOg3uQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T020956Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001x2bq + - 20220816T082934Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000001nfh1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 551ms + - 494ms status: code: 201 message: Created @@ -127,17 +127,17 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:09:57 GMT + - Tue, 16 Aug 2022 08:29:35 GMT ms-cv: - - 6Wq0aeAcmk6Qqb+BJ3n2Tw.0 + - n/WioeSgm0264NxHU5Yx3A.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T020957Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001g7kz + - 20220816T082934Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000uub3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 343ms + - 140ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index e7a89d725a3..771c8e98c9a 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:11:33 GMT + - Tue, 16 Aug 2022 08:31:06 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:11:34.1869344+00:00"}}' + "expiresOn": "2022-08-17T08:31:08.2082199+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:34 GMT + - Tue, 16 Aug 2022 08:31:08 GMT ms-cv: - - oh8YJLBOjUy9QuiHkk/WLw.0 + - sRF6GNjSnkaSMcZqJYFSgA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021133Z-huevmdadqx2sz9yxspbd0a0pg800000000s000000000s2e9 + - 20220816T083108Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000022ap1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 116ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 41e53daa-da8b-4ea4-a0ae-3c3d596d1f86 + - e0ccea5f-e9a0-40d4-a94b-941902c0f8b0 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-10T02:11:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:31:08Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:35 GMT + - Tue, 16 Aug 2022 08:31:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AUMfZNZ42WtEG1bV-fS9ESDzorE2E7lacwfKYMUlJIn41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASSg2xS4yLYyhoeQMcTnIcVr0mPEda7R6ZMB1Z_SuIAw1@thread.v2 ms-cv: - - GNZD/p/l4UyY/gqO3ippMw.0 + - Dd9PJOgTk06vdw2jsPmhYA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021134Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u00000000057x4 + - 20220816T083108Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000vw6d x-cache: - CONFIG_NOCACHE x-processing-time: - - 574ms + - 424ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:35 GMT + - Tue, 16 Aug 2022 08:31:10 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AUMfZNZ42WtEG1bV-fS9ESDzorE2E7lacwfKYMUlJIn41@thread.v2/messages/1660097495744 + - https://clitest000002.communication.azure.com/chat/threads/19%3ASSg2xS4yLYyhoeQMcTnIcVr0mPEda7R6ZMB1Z_SuIAw1@thread.v2/messages/1660638669878 ms-cv: - - W2UQ9lxqHU+M1t9hacVJ9g.0 + - ez+9IoHOcEui8ESmkCeRpA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021135Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000tg00000000087a + - 20220816T083109Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005fg00000000mcmx x-cache: - CONFIG_NOCACHE x-processing-time: - - 138ms + - 234ms status: code: 201 message: Created @@ -164,8 +164,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1660097495744", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-10T02:11:35Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1660638669878", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-16T08:31:09Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -176,19 +176,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:36 GMT + - Tue, 16 Aug 2022 08:31:10 GMT ms-cv: - - m+mXnt/xQE+WhkZpfuXGcw.0 + - f7Qs2rbCxUuuc3XkK3EfQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021136Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001dyen + - 20220816T083110Z-z5w8hfkph50p97tr7b7ay90rp000000000c000000000qrvx x-cache: - CONFIG_NOCACHE x-processing-time: - - 24ms + - 189ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index 0974aac7a7a..3598acf136d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:13:10 GMT + - Tue, 16 Aug 2022 08:32:44 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:13:11.6465607+00:00"}}' + "expiresOn": "2022-08-17T08:32:46.8509733+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:11 GMT + - Tue, 16 Aug 2022 08:32:46 GMT ms-cv: - - CQ6fRPrjD0mQBx54kjvzUg.0 + - EBt6BbzqjU+prHZdkCiz+Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021311Z-3p5ky3fhux53tbptzht9t6u5qg00000000vg000000003rwz + - 20220816T083246Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000034h66 x-cache: - CONFIG_NOCACHE x-processing-time: - - 112ms + - 128ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - a4c280b2-53af-4ebe-a0ca-e5a8eedd035e + - 8351a044-eb80-4847-a410-eb1fcc55ad31 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-10T02:13:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:32:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:12 GMT + - Tue, 16 Aug 2022 08:32:48 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AjgVveGQHhNExBN2D7vFaxEx4Db760bP4CbZPXEOAPrU1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AqopGHJkiPtZTq2-3i5XU2XiYHPzhmplyUKzJox9orus1@thread.v2 ms-cv: - - 7O8M/z7Q006tO9DJa4sibw.0 + - gQWWaxbLEke9zvGtio9YWQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021311Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000rg00000000m3p8 + - 20220816T083247Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005eg000000018my1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 745ms + - 862ms status: code: 201 message: Created @@ -118,18 +118,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1660097592563", "type": "topicUpdated", "sequenceId": - "2", "version": "1660097592563", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", - "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}}, - "createdOn": "2022-08-10T02:13:12Z"}, {"id": "1660097592473", "type": "participantAdded", - "sequenceId": "1", "version": "1660097592473", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", - "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}, + string: '{"value": [{"id": "1660638767978", "type": "topicUpdated", "sequenceId": + "2", "version": "1660638767978", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", + "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}}, + "createdOn": "2022-08-16T08:32:47Z"}, {"id": "1660638767873", "type": "participantAdded", + "sequenceId": "1", "version": "1660638767873", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", + "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb", - "communicationUser": {"id": "8:acs:938bc3fb-cec0-45e2-a8cb-85967551e1ca_00000013-2568-9d59-9ffb-9c3a0d0059cb"}}}, - "createdOn": "2022-08-10T02:13:12Z"}]}' + {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", + "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}}, + "createdOn": "2022-08-16T08:32:47Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -138,19 +138,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:13 GMT + - Tue, 16 Aug 2022 08:32:49 GMT ms-cv: - - VsjTLNOrK0+vf7pJ4Zs0CQ.0 + - ZeSVeYAXTEOQAS1wifHSLA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021313Z-3p5ky3fhux53tbptzht9t6u5qg00000000ug000000007sa9 + - 20220816T083248Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003yhfz x-cache: - CONFIG_NOCACHE x-processing-time: - - 97ms + - 318ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index 9f39edb10ad..051e08eeaef 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:11:32 GMT + - Tue, 16 Aug 2022 08:31:06 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:11:33.285612+00:00"}}' + "expiresOn": "2022-08-17T08:31:10.0058939+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:33 GMT + - Tue, 16 Aug 2022 08:31:09 GMT ms-cv: - - D1YI8gTYYUKFGnYTiB2TCQ.0 + - D7bUD27U4UymhT0vIJpRoQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021133Z-pvk0k4gqx51st0bh1fssf7cw3000000000qg000000028v9g + - 20220816T083108Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000eh0e x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 124ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - dd35c277-1f22-4076-bc0f-6f22da2ab14b + - 362a0e92-b065-433f-8806-c168e46ef61f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-10T02:11:33Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:31:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:34 GMT + - Tue, 16 Aug 2022 08:31:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aglfz1FXnrxhFhsoupGAOL6kOLmaQ5vTaV3CthEsdbBA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A4pvH_xQgUZDtazSxLExr6FSd3veT1Vn_hMRwjuantcE1@thread.v2 ms-cv: - - 9G/dKYmRzEirGG2BtVtJEg.0 + - esZg5hfzpki0ctz9t9fLtA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021133Z-87ct2dqpah4z7432w4frs4m4s400000000ug0000000037v5 + - 20220816T083109Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003xm6v x-cache: - CONFIG_NOCACHE x-processing-time: - - 853ms + - 446ms status: code: 201 message: Created @@ -118,8 +118,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:11ca8201-f76e-4be3-816d-abeb54de3f90_00000013-2567-1d21-290c-113a0d006c88", - "communicationUser": {"id": "8:acs:11ca8201-f76e-4be3-816d-abeb54de3f90_00000013-2567-1d21-290c-113a0d006c88"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:a4a152e4-675b-4bf6-af7d-4517f57291ec_00000013-45a8-ccc8-80f5-8b3a0d00fd4e", + "communicationUser": {"id": "8:acs:a4a152e4-675b-4bf6-af7d-4517f57291ec_00000013-45a8-ccc8-80f5-8b3a0d00fd4e"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -129,19 +129,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:35 GMT + - Tue, 16 Aug 2022 08:31:10 GMT ms-cv: - - Wt6kh9uiGEiAYIdFD1lxjw.0 + - kWCAWpWN5U2VIsw/2QkG7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021134Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u0000000007xhn + - 20220816T083110Z-hq6y7egy7x60fea7pte6x8g1v000000000b000000003grwy x-cache: - CONFIG_NOCACHE x-processing-time: - - 181ms + - 111ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index c8523307fac..ba74b6f2e31 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:13:09 GMT + - Tue, 16 Aug 2022 08:32:44 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:13:10.1902253+00:00"}}' + "expiresOn": "2022-08-17T08:32:46.3564709+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:10 GMT + - Tue, 16 Aug 2022 08:32:46 GMT ms-cv: - - g0d2bMw5mkOLunIFQ/W1fw.0 + - 8/MTx6wWAEuliZDQmLzTWQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021309Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000qg00000002stg0 + - 20220816T083246Z-hq6y7egy7x60fea7pte6x8g1v000000000a000000004bhz7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 129ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json date: - - Wed, 10 Aug 2022 02:13:10 GMT + - Tue, 16 Aug 2022 08:32:47 GMT ms-cv: - - DxO/3sX34kq6Tab16YFF5A.0 + - s+lMRJ2YdkuArqq2+xbkvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021310Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000t000000000c90c + - 20220816T083246Z-pvk0k4gqx51st0bh1fssf7cw3000000005eg00000000vuq1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 290ms + - 395ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml index e08d1966740..a922e3030e5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:11:32 GMT + - Tue, 16 Aug 2022 08:31:07 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:11:33.2940748+00:00"}}' + "expiresOn": "2022-08-17T08:31:09.6726574+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:33 GMT + - Tue, 16 Aug 2022 08:31:09 GMT ms-cv: - - iTpY4+5BZk29SY6veHmjGA.0 + - m47lZ4y6FE6GKBU6Bz2b3Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021133Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000r00000000214ze + - 20220816T083109Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000033ha6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 109ms + - 132ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index f06be5eb81b..1ed2201075f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:11:32 GMT + - Tue, 16 Aug 2022 08:31:08 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:11:33.4465214+00:00"}}' + "expiresOn": "2022-08-17T08:31:10.4492954+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:33 GMT + - Tue, 16 Aug 2022 08:31:10 GMT ms-cv: - - +AMeyQklJE+A3wT/QyACDg.0 + - qY6AwFLyDUaMkRIjfx13hg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021133Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001h7k1 + - 20220816T083110Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001arg0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 122ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:11:33 GMT + - Tue, 16 Aug 2022 08:31:10 GMT ms-cv: - - 8KXcm+WUCk6uYEryHXgj/g.0 + - 2pC1lQpMQkCH8Bk2Jl3R5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021133Z-87ct2dqpah4z7432w4frs4m4s400000000t0000000009mp0 + - 20220816T083110Z-z5w8hfkph50p97tr7b7ay90rp000000000c000000000qrxb x-cache: - CONFIG_NOCACHE x-processing-time: - - 77ms + - 89ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index 0530b76b570..31cc1e6155f 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:13:08 GMT + - Tue, 16 Aug 2022 08:32:43 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:13:09.3969149+00:00"}}' + "expiresOn": "2022-08-17T08:32:45.6199857+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:09 GMT + - Tue, 16 Aug 2022 08:32:45 GMT ms-cv: - - ETqa6ceOIEevTRvJ9cSp8w.0 + - pBCdBcUIVES2+vo9fKBtdA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021309Z-gu5mc89ux17apbrm5n76u6e4ng00000000q000000001zq88 + - 20220816T083245Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001bvyc x-cache: - CONFIG_NOCACHE x-processing-time: - - 112ms + - 131ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:09 GMT + - Tue, 16 Aug 2022 08:32:46 GMT ms-cv: - - k2OYjpuQIEyboZgo0DbK+g.0 + - DOY1sKA810+pY3rfw+pmOg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021309Z-wa551hkds961h6e2hcntxt8eh400000000rg000000015gtr + - 20220816T083245Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000034gy9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 80ms + - 16ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index a61b40e1d46..8a41e1b4c19 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:13:08 GMT + - Tue, 16 Aug 2022 08:32:44 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:13:09.4023638+00:00"}}' + "expiresOn": "2022-08-17T08:32:46.8007556+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:09 GMT + - Tue, 16 Aug 2022 08:32:46 GMT ms-cv: - - FpbYQHgvBUCi1I8lYEhdlg.0 + - vpOMNlIhTk6GdgKAP2f9Hw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021309Z-pvk0k4gqx51st0bh1fssf7cw3000000000r000000001qqgw + - 20220816T083246Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000wzv3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 123ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 264169b2-6924-417a-89b3-bee8cc7b7c11 + - 1db7378d-20b0-47f3-9017-a595ac6d4739 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-10T02:13:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:32:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:10 GMT + - Tue, 16 Aug 2022 08:32:47 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A9Kic1ubleycEwjIUPHMWF1QLq5v1ylcWhsUIq2GfVCo1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A8-wboRz56hQpYW6AUU_6jYyQFR-6viB0BFjfjePfsko1@thread.v2 ms-cv: - - xJltmqHz9kiB6ntEdFVPKA.0 + - usJk/EwLo0KKe+NT/4UPaA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021309Z-87ct2dqpah4z7432w4frs4m4s400000000tg000000008mek + - 20220816T083247Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002pu5q x-cache: - CONFIG_NOCACHE x-processing-time: - - 828ms + - 658ms status: code: 201 message: Created @@ -127,19 +127,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:11 GMT + - Tue, 16 Aug 2022 08:32:48 GMT ms-cv: - - 9ew/BqFemUyRJIYbkZI31Q.0 + - xt3bNGfwJkyPQAKLcWT7XA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021310Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000030xcf + - 20220816T083248Z-hq6y7egy7x60fea7pte6x8g1v000000000b000000003hhmr x-cache: - CONFIG_NOCACHE x-processing-time: - - 138ms + - 186ms status: code: 200 message: OK @@ -158,18 +158,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1660097590411", "type": "topicUpdated", "sequenceId": - "2", "version": "1660097590411", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", - "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}}, - "createdOn": "2022-08-10T02:13:10Z"}, {"id": "1660097590327", "type": "participantAdded", - "sequenceId": "1", "version": "1660097590327", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", - "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}, + string: '{"value": [{"id": "1660638767579", "type": "topicUpdated", "sequenceId": + "2", "version": "1660638767579", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", + "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}}, + "createdOn": "2022-08-16T08:32:47Z"}, {"id": "1660638767549", "type": "participantAdded", + "sequenceId": "1", "version": "1660638767549", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", + "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", - "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}}, - "createdOn": "2022-08-10T02:13:10Z"}]}' + {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", + "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}}, + "createdOn": "2022-08-16T08:32:47Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -178,24 +178,24 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:11 GMT + - Tue, 16 Aug 2022 08:32:48 GMT ms-cv: - - 24O/ongIPkKPwLg7PNNKCg.0 + - rxdZEmZfM0ynEysV/g7/8A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021311Z-s1214kcr1x3rx7q1xwqyxffbgw00000000r000000001zrqq + - 20220816T083248Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000vpg3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 132ms + - 101ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1660097590411"}' + body: '{"chatMessageId": "1660638767579"}' headers: Accept: - application/json @@ -224,17 +224,17 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:13:11 GMT + - Tue, 16 Aug 2022 08:32:49 GMT ms-cv: - - 0AlkKuTwG0q4kX2BVG1nXw.0 + - bQRTQ19m+0+RGco2YlDJ1w.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021311Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001sp63 + - 20220816T083248Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002g7kx x-cache: - CONFIG_NOCACHE x-processing-time: - - 178ms + - 118ms status: code: 200 message: OK @@ -253,9 +253,9 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9", - "communicationUser": {"id": "8:acs:a573d18b-cf6d-440d-bbfd-0b786100680e_00000013-2568-9495-9ffb-9c3a0d0059c9"}}, - "chatMessageId": "1660097590411", "readOn": "2022-08-10T02:13:11Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", + "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}, + "chatMessageId": "1660638767579", "readOn": "2022-08-16T08:32:49Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -264,19 +264,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:13:12 GMT + - Tue, 16 Aug 2022 08:32:49 GMT ms-cv: - - sKAesHFw0kutaH2qdr7cjQ.0 + - CLDyhU/NbkqOIbOutvu7Qg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021312Z-87ct2dqpah4z7432w4frs4m4s400000000vg000000001ndt + - 20220816T083249Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002pv30 x-cache: - CONFIG_NOCACHE x-processing-time: - - 82ms + - 40ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index f1e56121bcd..a3d804b0565 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:14:47 GMT + - Tue, 16 Aug 2022 08:34:19 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:14:48.1526053+00:00"}}' + "expiresOn": "2022-08-17T08:34:21.5040849+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:48 GMT + - Tue, 16 Aug 2022 08:34:21 GMT ms-cv: - - ONyBodEWBkOB1FRMeu7anA.0 + - XsD3E87Xj02XyHT730ekRQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021447Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000r0000000011zww + - 20220816T083421Z-pvk0k4gqx51st0bh1fssf7cw3000000005fg00000000b6rn x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 123ms status: code: 201 message: Created @@ -71,7 +71,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:14:48 GMT + - Tue, 16 Aug 2022 08:34:20 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -79,7 +79,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:14:48.5629705+00:00"}}' + "expiresOn": "2022-08-17T08:34:21.9553078+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:48 GMT + - Tue, 16 Aug 2022 08:34:22 GMT ms-cv: - - DQaOR+kDZUKPTYKk9V9A+w.0 + - mkw7am7jM0OW9x2HxWEmjA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021448Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001tsx5 + - 20220816T083421Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000000v7ug x-cache: - CONFIG_NOCACHE x-processing-time: - - 96ms + - 153ms status: code: 201 message: Created @@ -123,13 +123,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - f22d1568-eaf1-4285-9d39-8a39b15671ee + - a6c1b67c-b3a8-473b-8c12-107e35bc98a5 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-10T02:14:49Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:34:22Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -139,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:49 GMT + - Tue, 16 Aug 2022 08:34:23 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A9y4679NPE2Xogm8GXTasRD0RvH7qHxLzmGK1AwmsPZs1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AbVICk3QHBP8Y97cNmMUrTjnoQjQaPFfap_apoXX_t1E1@thread.v2 ms-cv: - - +JuzFOEXM0O8RNBTXZ7Fag.0 + - ihfroSSoZ0OTLuYrOAOa1A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021448Z-3v7ucyhfft7bhag10pdz2gn96s00000000s000000000f3sk + - 20220816T083422Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000g22r x-cache: - CONFIG_NOCACHE x-processing-time: - - 582ms + - 640ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:2bdaa24c-d801-4f6f-b02d-26eefb9ec883_00000013-256a-17ee-0cf9-9c3a0d005f57"}}}]}' + "8:acs:42ed238b-cdf2-4be3-91f1-7c0d30789910_00000013-45ab-be7e-1252-573a0d00f7dd"}}}]}' headers: Accept: - application/json @@ -186,19 +186,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:50 GMT + - Tue, 16 Aug 2022 08:34:23 GMT ms-cv: - - RJlcim2zz02d62anN1RjeA.0 + - yedYG9LzAU2i5G16bRCr3w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021449Z-wa551hkds961h6e2hcntxt8eh400000000q0000000025tu7 + - 20220816T083423Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000018f2g x-cache: - CONFIG_NOCACHE x-processing-time: - - 296ms + - 257ms status: code: 201 message: Created @@ -228,17 +228,17 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:14:50 GMT + - Tue, 16 Aug 2022 08:34:24 GMT ms-cv: - - J88epnClyE2bzTrc2ohvLw.0 + - Yyy59k7DHESdLkSA9WCV9A.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021450Z-87ct2dqpah4z7432w4frs4m4s400000000t000000000bxzu + - 20220816T083424Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002qvva x-cache: - CONFIG_NOCACHE x-processing-time: - - 269ms + - 207ms status: code: 204 message: No Content @@ -271,19 +271,19 @@ interactions: content-type: - application/json date: - - Wed, 10 Aug 2022 02:14:51 GMT + - Tue, 16 Aug 2022 08:34:24 GMT ms-cv: - - /jDiHfgqNUGPAZDyJBVxzw.0 + - wkTeR2HOmEyim+sRSrslkw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021451Z-qw4txeh9r90g5czxetkag1fv6000000000s000000000hg5x + - 20220816T083424Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002h5wy x-cache: - CONFIG_NOCACHE x-processing-time: - - 4ms + - 3ms status: code: 400 message: Bad Request @@ -313,17 +313,17 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:14:51 GMT + - Tue, 16 Aug 2022 08:34:25 GMT ms-cv: - - it4m+ARQ8UGT/igt9pggHg.0 + - lSoNXDVnyUSCWN5Tmr9HwQ.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021451Z-3p5ky3fhux53tbptzht9t6u5qg00000000v0000000006fzq + - 20220816T083424Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001c8hc x-cache: - CONFIG_NOCACHE x-processing-time: - - 310ms + - 263ms status: code: 204 message: No Content @@ -357,19 +357,19 @@ interactions: content-type: - application/json date: - - Wed, 10 Aug 2022 02:14:52 GMT + - Tue, 16 Aug 2022 08:34:25 GMT ms-cv: - - tiGrPFYFJUqK7ocOZL90Mw.0 + - 9T0l1rIkLky94Jbvr9pe0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021451Z-qw4txeh9r90g5czxetkag1fv6000000000r000000001vgxy + - 20220816T083425Z-hq6y7egy7x60fea7pte6x8g1v000000000bg00000002zmb6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 97ms + - 119ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index afb0cdb05f3..56ca21666c7 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:14:45 GMT + - Tue, 16 Aug 2022 08:34:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:14:46.6005094+00:00"}}' + "expiresOn": "2022-08-17T08:34:24.9758944+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:46 GMT + - Tue, 16 Aug 2022 08:34:25 GMT ms-cv: - - TQ27vBnf+k2cPb6iPwjV6Q.0 + - C6H2XDZ/4Um03Tj4TYc9/A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021446Z-pvk0k4gqx51st0bh1fssf7cw3000000000q000000002qyre + - 20220816T083424Z-hq6y7egy7x60fea7pte6x8g1v000000000c0000000027twy x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 121ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 2ac1deb6-6b6a-4ead-817b-ceffd621abb5 + - e0d83c05-5b3a-493e-be33-f13f75d0fd91 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-10T02:14:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:34:25Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:47 GMT + - Tue, 16 Aug 2022 08:34:26 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AN2TJeonSdDlICZ72ivRWo_jj3Il-FzTt7vUh8cj04CQ1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Aj3L3TDgL0NVcFf1KB8WYAkMMnRl5WyURTlSnS_wjTm41@thread.v2 ms-cv: - - qMmL6ofpKEKILPsaQRhuBQ.0 + - o0ovaG0LdEaG4ZEbb2woSQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021446Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002h95n + - 20220816T083425Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000g2vn x-cache: - CONFIG_NOCACHE x-processing-time: - - 491ms + - 797ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:48 GMT + - Tue, 16 Aug 2022 08:34:26 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AN2TJeonSdDlICZ72ivRWo_jj3Il-FzTt7vUh8cj04CQ1@thread.v2/messages/1660097687863 + - https://clitest000002.communication.azure.com/chat/threads/19%3Aj3L3TDgL0NVcFf1KB8WYAkMMnRl5WyURTlSnS_wjTm41@thread.v2/messages/1660638866680 ms-cv: - - Eyo5RUTDp0a89Zis5eSW2g.0 + - /Qr2KxXI8UKVrslNRf0IPA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021447Z-wa551hkds961h6e2hcntxt8eh400000000r000000001gtc7 + - 20220816T083426Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000024548 x-cache: - CONFIG_NOCACHE x-processing-time: - - 206ms + - 118ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index 367583a4e3f..687260eccbb 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:14:45 GMT + - Tue, 16 Aug 2022 08:33:56 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:14:46.3085014+00:00"}}' + "expiresOn": "2022-08-17T08:33:58.5480212+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:46 GMT + - Tue, 16 Aug 2022 08:33:58 GMT ms-cv: - - Yy31QogHU0CmFi5uDVtREQ.0 + - dM6ewS1eNkGW3cWuW6ryQQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021446Z-huevmdadqx2sz9yxspbd0a0pg800000000q000000001zft2 + - 20220816T083358Z-z5w8hfkph50p97tr7b7ay90rp000000000b0000000022p36 x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 119ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 2f72057c-3dfe-406f-b546-f2b08270fddf + - bef44c37-31e0-4b28-9a71-53978d429b81 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-10T02:14:46Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:33:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:47 GMT + - Tue, 16 Aug 2022 08:33:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ADmNakIClcWtJ4ha6BLJZGysaf1X0yV7NIvKVD6Ngmqw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AjZZQTGa4Opu_FOUKBPUQDs0PNo0rgpUgzwFd1_AEsWA1@thread.v2 ms-cv: - - MFsIvWFNtU2Bq37QB0tgrw.0 + - RL/kGdnDrE2xyKMJOwJjZg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021446Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001tsaw + - 20220816T083358Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001c1c8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 675ms + - 482ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:47 GMT + - Tue, 16 Aug 2022 08:33:59 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ADmNakIClcWtJ4ha6BLJZGysaf1X0yV7NIvKVD6Ngmqw1@thread.v2/messages/1660097687768 + - https://clitest000002.communication.azure.com/chat/threads/19%3AjZZQTGa4Opu_FOUKBPUQDs0PNo0rgpUgzwFd1_AEsWA1@thread.v2/messages/1660638839821 ms-cv: - - OGwE5uUv+0ibOCaYS8NG3Q.0 + - 0OcX6wlpXEuygUBkINQg+A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021447Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001m5p2 + - 20220816T083359Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002gxss x-cache: - CONFIG_NOCACHE x-processing-time: - - 169ms + - 129ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index f1be0505a58..d121077ae4b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:14:47 GMT + - Tue, 16 Aug 2022 08:34:22 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:14:48.2067312+00:00"}}' + "expiresOn": "2022-08-17T08:34:24.5521884+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:48 GMT + - Tue, 16 Aug 2022 08:34:24 GMT ms-cv: - - xR8xHDNtMkWg6ahGjigvvw.0 + - w6XOfGvQ40qM648RqXLqBw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021448Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000qg00000002tmet + - 20220816T083424Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000035fet x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 128ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - c56e2bb0-7109-4580-b14f-06af57e45f47 + - 18a601c4-c355-4750-82ba-53fcf684acad method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-10T02:14:48Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:34:25Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:14:49 GMT + - Tue, 16 Aug 2022 08:34:25 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AQTpX1mXOF93ATDgmexEVETBFcQFbxVD81VzcuOteEhc1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A_pQl8zfChZvYdRi0LFmMpXcR4KwOoxamBNh7M6YmIw01@thread.v2 ms-cv: - - yhI1QWBM6kC57pT4N75E9A.0 + - g5SjE3Ms+kWQEhBVa0Y4cQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021448Z-wa551hkds961h6e2hcntxt8eh400000000r000000001gthx + - 20220816T083424Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003zcp8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 859ms + - 737ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index 2b62551d7ec..31b663d3b6c 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:16:23 GMT + - Tue, 16 Aug 2022 08:36:05 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:16:23.7361496+00:00"}}' + "expiresOn": "2022-08-17T08:36:07.2549499+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:23 GMT + - Tue, 16 Aug 2022 08:36:07 GMT ms-cv: - - qnhnSTo4DkOeVEC1BP2NQQ.0 + - 4HkeSq4OVEya3y/ARmSUTg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021623Z-gu5mc89ux17apbrm5n76u6e4ng00000000r000000001n39a + - 20220816T083607Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002k369 x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 120ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 9fa2eb98-9813-4cec-83f1-4b5017b1670c + - fab9c049-0ffc-4bc0-b8e1-ee000881a8e5 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-10T02:16:24Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:36:07Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:24 GMT + - Tue, 16 Aug 2022 08:36:08 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3APAnA6WGpJAnOR_1_-gwUWw0VNpqRhNNR6mblMKeh17Y1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3APn9YTlNZg7v0RpeTIGZziby0Ap7MQKs1SQj1VMWRhUo1@thread.v2 ms-cv: - - N1R8CMHlL06y+8xoLqkCJg.0 + - twTjlPHzR0O8mzyxqgCxMQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021624Z-wa551hkds961h6e2hcntxt8eh400000000sg00000000dd8t + - 20220816T083607Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000z5ac x-cache: - CONFIG_NOCACHE x-processing-time: - - 539ms + - 590ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:25 GMT + - Tue, 16 Aug 2022 08:36:09 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3APAnA6WGpJAnOR_1_-gwUWw0VNpqRhNNR6mblMKeh17Y1@thread.v2/messages/1660097784990 + - https://clitest000002.communication.azure.com/chat/threads/19%3APn9YTlNZg7v0RpeTIGZziby0Ap7MQKs1SQj1VMWRhUo1@thread.v2/messages/1660638968966 ms-cv: - - ptXhe22w50uWgM27nc0jkQ.0 + - p1I7QYHih0GMb5wroiKLxw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021624Z-gu5mc89ux17apbrm5n76u6e4ng00000000r0000000014p4x + - 20220816T083608Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000ws54 x-cache: - CONFIG_NOCACHE x-processing-time: - - 130ms + - 171ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index ee3de5e0d42..d92d2357436 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:16:23 GMT + - Tue, 16 Aug 2022 08:35:33 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:16:23.9814046+00:00"}}' + "expiresOn": "2022-08-17T08:35:35.2475197+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:24 GMT + - Tue, 16 Aug 2022 08:35:35 GMT ms-cv: - - 0K+vj+lsFUy+2wXVRf4lhA.0 + - OyYIS9CvZU2DQDWnp/+5lA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021623Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000qg00000001gteu + - 20220816T083535Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000000zax9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 235ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 0174f25b-4bb8-4f08-8867-dc60e32989a2 + - 5690fb79-a9a1-414b-bd8f-57b7eb6a4f15 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-10T02:16:24Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:35:35Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:25 GMT + - Tue, 16 Aug 2022 08:35:36 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AzDef1u8IZAI91Y6isoF7Dk6BVV1i4vlEPBpBAIBR2ro1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A8vkXkeRckOP1o5lbyTws2D8eizVr_YJZlFGGwRgauAo1@thread.v2 ms-cv: - - vSEpLmSWxUWmkhUmWf9v6Q.0 + - Hax46/2CNkOtfyk0r7gYRg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021624Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000bcsf + - 20220816T083535Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000gmsh x-cache: - CONFIG_NOCACHE x-processing-time: - - 838ms + - 281ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:25 GMT + - Tue, 16 Aug 2022 08:35:36 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AzDef1u8IZAI91Y6isoF7Dk6BVV1i4vlEPBpBAIBR2ro1@thread.v2/messages/1660097785515 + - https://clitest000002.communication.azure.com/chat/threads/19%3A8vkXkeRckOP1o5lbyTws2D8eizVr_YJZlFGGwRgauAo1@thread.v2/messages/1660638936700 ms-cv: - - FiAmBNDXuEOJUtBvZtqrxw.0 + - qUQOACQHlUGCf9a3G7o1CA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021625Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000q000000003cn7w + - 20220816T083536Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000yubv x-cache: - CONFIG_NOCACHE x-processing-time: - - 166ms + - 190ms status: code: 201 message: Created @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:16:26 GMT + - Tue, 16 Aug 2022 08:35:37 GMT ms-cv: - - gdh0aNWMu0GWWDBIiBedRA.0 + - SJTmnxePCkOyTcsewjMMbA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021625Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000mxnv + - 20220816T083537Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000016437 x-cache: - CONFIG_NOCACHE x-processing-time: - - 225ms + - 343ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index a939dda05e6..4b55f84e034 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:16:27 GMT + - Tue, 16 Aug 2022 08:35:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:16:27.7432202+00:00"}}' + "expiresOn": "2022-08-17T08:36:01.3239909+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: - - Wed, 10 Aug 2022 02:16:27 GMT + - Tue, 16 Aug 2022 08:36:00 GMT ms-cv: - - tdVxiq576UCSzZgjdN5qCw.0 + - lUNbtDGhs0y2lJ+tIfIy2w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021627Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000033asq + - 08Fb7YgAAAAA7JN6+jm5DSLM1gN6GuoPGWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 110ms + - 126ms status: code: 201 message: Created @@ -69,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 4146adb4-9c79-4f4d-bc0e-743d9c08c48c + - 6dbcb132-e0b6-4297-b8b9-e21630322244 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-10T02:16:28Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T08:36:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:16:28 GMT + - Tue, 16 Aug 2022 08:36:02 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AS2WQIy_RIk8QTJjIkqbAygyeVGfN3l7y_FxHygvb12E1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3Akc6Nc3HOi0cE3HNVGYpeZQ7lBT6tUKJMMZS2Me6qk6E1@thread.v2 ms-cv: - - NLFD3rOorkWRB/2n1Nbr9A.0 + - z3Ne2E6Cf0CvELr09z5ZWg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T021628Z-3p5ky3fhux53tbptzht9t6u5qg00000000v00000000075xc + - 08Vb7YgAAAACRSUnjhJkqS48kIk/UDhlQWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 707ms + - 661ms status: code: 201 message: Created @@ -126,20 +122,18 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive date: - - Wed, 10 Aug 2022 02:16:29 GMT + - Tue, 16 Aug 2022 08:36:02 GMT ms-cv: - - vdXJm4SXaE2EJxTK+fIVRg.0 + - 1zJMm7rsekK3rC5XnF6JiA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021629Z-3v7ucyhfft7bhag10pdz2gn96s00000000tg0000000062aw + - 08lb7YgAAAACtU4j/uGaRSJDDJTDyjnDfWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 186ms + - 131ms status: code: 204 message: No Content 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 52b6047b7a2..7e2826c2f3e 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 @@ -22,21 +22,21 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"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/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 cache-control: - no-cache content-length: - - '578' + - '576' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:08 GMT + - Tue, 16 Aug 2022 08:37:50 GMT etag: - - '"1d004d57-0000-0700-0000-62f315610000"' + - '"00000a29-0000-0700-0000-62fb575e0000"' expires: - '-1' pragma: @@ -50,7 +50,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -70,10 +70,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-10T02:18:08.9711458Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T08:37:50.4950262Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:39 GMT + - Tue, 16 Aug 2022 08:38:20 GMT etag: - - '"1f00001a-0000-0800-0000-62f315600000"' + - '"0400cc1d-0000-0800-0000-62fb575e0000"' expires: - '-1' pragma: @@ -116,10 +116,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-10T02:18:08.9711458Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T08:37:50.4950262Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:09 GMT + - Tue, 16 Aug 2022 08:38:50 GMT etag: - - '"1f00001a-0000-0800-0000-62f315600000"' + - '"0400cc1d-0000-0800-0000-62fb575e0000"' expires: - '-1' pragma: @@ -162,10 +162,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"eeba0740-55f0-4be7-a253-66c104cc898d*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:18:08.9711458Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:37:50.4950262Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:39 GMT + - Tue, 16 Aug 2022 08:39:20 GMT etag: - - '"1f008b1a-0000-0800-0000-62f315a20000"' + - '"0400f61f-0000-0800-0000-62fb57a00000"' expires: - '-1' pragma: @@ -211,19 +211,19 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:39 GMT + - Tue, 16 Aug 2022 08:39:20 GMT etag: - - '"1d007657-0000-0700-0000-62f315680000"' + - '"00001929-0000-0700-0000-62fb57650000"' expires: - '-1' pragma: @@ -260,19 +260,19 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:40 GMT + - Tue, 16 Aug 2022 08:39:21 GMT etag: - - '"1d007657-0000-0700-0000-62f315680000"' + - '"00001929-0000-0700-0000-62fb57650000"' expires: - '-1' pragma: @@ -309,19 +309,19 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '701' + - '699' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:40 GMT + - Tue, 16 Aug 2022 08:39:21 GMT etag: - - '"1d007657-0000-0700-0000-62f315680000"' + - '"00001929-0000-0700-0000-62fb57650000"' expires: - '-1' pragma: @@ -358,17 +358,17 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '713' + - '711' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:40 GMT + - Tue, 16 Aug 2022 08:39:22 GMT expires: - '-1' pragma: @@ -405,17 +405,17 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:18:08.6520519Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '713' + - '711' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:41 GMT + - Tue, 16 Aug 2022 08:39:22 GMT expires: - '-1' pragma: @@ -456,19 +456,19 @@ interactions: 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":"mayssamm@microsoft.com","createdByType":"User","createdAt":"2022-08-10T02:18:08.6520519Z","lastModifiedBy":"mayssamm@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-10T02:19:42.4296691Z"},"properties":{"hostName":"mycommunicalyvzm2nwkymr.communication.azure.com","immutableResourceId":"572de8f3-6c07-4d01-9de7-db0acfa75090","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:39:23.8146107Z"},"properties":{"hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '728' + - '727' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:42 GMT + - Tue, 16 Aug 2022 08:39:24 GMT etag: - - '"1d006058-0000-0700-0000-62f315be0000"' + - '"00006e29-0000-0700-0000-62fb57bc0000"' expires: - '-1' pragma: @@ -486,7 +486,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -523,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:43 GMT + - Tue, 16 Aug 2022 08:39:25 GMT expires: - '-1' pragma: @@ -541,7 +541,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -566,7 +566,7 @@ interactions: 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":"Qxr43fhrfbfDRyreONdiaY67RFo8/4NK4KUZBcf+QgVJpusEoMZAPuZsFUu7DmI3PuGRNIykFMVWYViLiegHfQ==","secondaryKey":"IWN+Y276gjMnlUGwHBUzlmbtHqp28a96UgmKTJxxv/nPIyYfqFrtMtCX1y7zInK/ZMmu7ru4lVKojOwyZyjUww==","primaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=Qxr43fhrfbfDRyreONdiaY67RFo8/4NK4KUZBcf+QgVJpusEoMZAPuZsFUu7DmI3PuGRNIykFMVWYViLiegHfQ==","secondaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=IWN+Y276gjMnlUGwHBUzlmbtHqp28a96UgmKTJxxv/nPIyYfqFrtMtCX1y7zInK/ZMmu7ru4lVKojOwyZyjUww=="}' + string: '{"primaryKey":"xHkz8z32Qyno+DhUDBdjnvAh/Gq55GkJB3vryp60SIsbQSOwPd57GPLLwlatOpyqF5XXcfQpyrlGQzq+a/Hc6g==","secondaryKey":"IgMlFAp9ZqxRPWNOeH4hmv+z1+WD7UtvormCnrYtBRflRILyYWPRqCDG5LbxWTyMyfqI5O+m6tH8SkDDdPNoLA==","primaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=xHkz8z32Qyno+DhUDBdjnvAh/Gq55GkJB3vryp60SIsbQSOwPd57GPLLwlatOpyqF5XXcfQpyrlGQzq+a/Hc6g==","secondaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=IgMlFAp9ZqxRPWNOeH4hmv+z1+WD7UtvormCnrYtBRflRILyYWPRqCDG5LbxWTyMyfqI5O+m6tH8SkDDdPNoLA=="}' headers: cache-control: - no-cache @@ -575,7 +575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:44 GMT + - Tue, 16 Aug 2022 08:39:25 GMT expires: - '-1' pragma: @@ -620,7 +620,7 @@ interactions: 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":"dHsqWLwkn1KESQSUibLVYBuwUF7oEzhYsLx4OMG7VL79S798nlXFL0t8NHEyKK3l743jxzsesQep4qo1JkTE8Q==","primaryConnectionString":"endpoint=https://mycommunicalyvzm2nwkymr.communication.azure.com/;accesskey=dHsqWLwkn1KESQSUibLVYBuwUF7oEzhYsLx4OMG7VL79S798nlXFL0t8NHEyKK3l743jxzsesQep4qo1JkTE8Q=="}' + string: '{"primaryKey":"xRzIV7WfRYN8gcr/9/A1wNJ+HWF5ZXSWs4wYA6cX4QwK2smCY+UmzFJtIf957EhnE+RaeGBuOLifufWm5R+/Gw==","primaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=xRzIV7WfRYN8gcr/9/A1wNJ+HWF5ZXSWs4wYA6cX4QwK2smCY+UmzFJtIf957EhnE+RaeGBuOLifufWm5R+/Gw=="}' headers: cache-control: - no-cache @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:44 GMT + - Tue, 16 Aug 2022 08:39:26 GMT expires: - '-1' pragma: @@ -675,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -683,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:45 GMT + - Tue, 16 Aug 2022 08:39:27 GMT etag: - - '"1d006a58-0000-0700-0000-62f315c10000"' + - '"00007229-0000-0700-0000-62fb57bf0000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -719,10 +719,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-10T02:19:45.8339756Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T08:39:27.5024021Z"}' headers: cache-control: - no-cache @@ -731,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:15 GMT + - Tue, 16 Aug 2022 08:39:57 GMT etag: - - '"1f00d21a-0000-0800-0000-62f315c10000"' + - '"04000221-0000-0800-0000-62fb57bf0000"' expires: - '-1' pragma: @@ -761,10 +761,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-10T02:19:45.8339756Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T08:39:27.5024021Z"}' headers: cache-control: - no-cache @@ -773,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:45 GMT + - Tue, 16 Aug 2022 08:40:27 GMT etag: - - '"1f00d21a-0000-0800-0000-62f315c10000"' + - '"04000221-0000-0800-0000-62fb57bf0000"' expires: - '-1' pragma: @@ -803,10 +803,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:19:45.8339756Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:39:27.5024021Z","properties":null}' headers: cache-control: - no-cache @@ -815,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:21:16 GMT + - Tue, 16 Aug 2022 08:40:57 GMT etag: - - '"02000995-0000-0100-0000-62f316060000"' + - '"04009a23-0000-0800-0000-62fb58020000"' expires: - '-1' pragma: @@ -849,10 +849,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","name":"c1edbcb0-42fc-4621-ab86-e54d4bc4b656*28164B13879D6414DDFE7F7D64913E46D3729E883C51D25A6E92CD6BCF86099D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-10T02:19:45.8339756Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:39:27.5024021Z","properties":null}' headers: cache-control: - no-cache @@ -861,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:21:16 GMT + - Tue, 16 Aug 2022 08:40:57 GMT etag: - - '"02000995-0000-0100-0000-62f316060000"' + - '"04009a23-0000-0800-0000-62fb58020000"' expires: - '-1' pragma: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml index fe51edc4ffc..deeb23ec92d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Wed, 10 Aug 2022 02:16:24 GMT + - Tue, 16 Aug 2022 08:36:00 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -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: - - Wed, 10 Aug 2022 02:16:25 GMT + - Tue, 16 Aug 2022 08:36:02 GMT ms-cv: - - Zq5IZtvhEEyB43qhIqMnpg.0 + - ZEjNeHoGxUKIlT84gGT08g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021624Z-huevmdadqx2sz9yxspbd0a0pg800000000rg000000014dez + - 08lb7YgAAAAABQx/WfivFTZaSjPwcjl9dWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 108ms + - 119ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml index f6a0ed872e8..e3d156e9cd6 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Wed, 10 Aug 2022 02:18:00 GMT + - Tue, 16 Aug 2022 08:37:10 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:12 GMT ms-cv: - - E39RVmIprUWTlxSwUeIWGA.0 + - JAiZ0EMsRUGSFJRV4DYOtA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021801Z-huevmdadqx2sz9yxspbd0a0pg800000000r000000001fgtp + - 20220816T083712Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000x3dp x-cache: - CONFIG_NOCACHE x-processing-time: - - 112ms + - 117ms status: code: 201 message: Created @@ -68,7 +68,7 @@ interactions: x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -83,19 +83,19 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:18:02 GMT + - Tue, 16 Aug 2022 08:37:13 GMT ms-cv: - - vj+TDG/cWkWsEcceNG53Ew.0 + - rXuIBXf1Y0ukhBAAiUJh7g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021801Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002m342 + - 20220816T083712Z-pvk0k4gqx51st0bh1fssf7cw3000000005gg000000002sye x-cache: - CONFIG_NOCACHE x-processing-time: - - 301ms + - 299ms status: code: 204 message: No Content 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 b1b040b6c83..5e48336fea1 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Wed, 10 Aug 2022 02:18:00 GMT + - Tue, 16 Aug 2022 08:37:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:18:00.9501826+00:00"}}' + "expiresOn": "2022-08-17T08:37:38.3197808+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:38 GMT ms-cv: - - Uts82BOeGkSwi+agqcQWbA.0 + - f/TlI3n5X0ywPzTNbVF+UQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021800Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000q000000001vzyd + - 20220816T083738Z-zvdmwacghh4c97ggppewnyshxn00000000g000000000kd1e x-cache: - CONFIG_NOCACHE x-processing-time: - - 114ms + - 121ms 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 a3404a0c7fd..fae66182b3b 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Wed, 10 Aug 2022 02:18:00 GMT + - Tue, 16 Aug 2022 08:37:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:38 GMT ms-cv: - - y14VT1eZC0GbRWOwmifVLQ.0 + - 7265Bef/IEaA7bsCJN9cYg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021801Z-huevmdadqx2sz9yxspbd0a0pg800000000r000000001fgqm + - 20220816T083738Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000104r0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 107ms + - 120ms status: code: 201 message: Created @@ -70,40 +70,36 @@ interactions: x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:37 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-11T02:18:01.918741+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-17T08:37:39.4529824+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: - - '71' + - '72' content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:01 GMT + - Tue, 16 Aug 2022 08:37:38 GMT ms-cv: - - KTmMTqcpeUiWXyWGnsp2bQ.0 + - 39et9ix/F0OjFYMzgJdOMg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021801Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000000r00000000244b5 + - 0Ulf7YgAAAAD36jZNIvvKSI/zeKDxUSJSWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 173ms + - 168ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index 844d840426e..00e893fa8a3 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= x-ms-date: - - Wed, 10 Aug 2022 02:18:03 GMT + - Tue, 16 Aug 2022 08:37:42 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-11T02:18:04.6643837+00:00"}}' + "expiresOn": "2022-08-17T08:37:44.5896574+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:18:04 GMT + - Tue, 16 Aug 2022 08:37:44 GMT ms-cv: - - TX3SbmNkIkiIYWqV/rgzwg.0 + - fgZoHRd0RUiJUkvkMuWa4Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021804Z-3p5ky3fhux53tbptzht9t6u5qg00000000u000000000cfp3 + - 20220816T083744Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000037gyd x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 138ms status: code: 201 message: Created 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 fef279fa91c..0b86821aab0 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:19:37 GMT + - Tue, 16 Aug 2022 08:47:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:19:42 GMT + - Tue, 16 Aug 2022 08:47:50 GMT location: - - /availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 ms-cv: - - aG0ZQcJ64kaF208FQRHrBg.0 + - 8AHEI1LBd0WPzkmRkYYfvA.0 operation-id: - - search_372118b2-9ed0-4014-9fe6-924d954e77d0 + - search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 operation-location: - - /phoneNumbers/operations/search_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + - /phoneNumbers/operations/search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 search-id: - - 372118b2-9ed0-4014-9fe6-924d954e77d0 + - 9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021938Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tpzx + - 20220816T084747Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014fh2 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3996ms + - 2636ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:12 GMT + - Tue, 16 Aug 2022 08:48:18 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:19:42.3120446+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:47:49.7690904+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:13 GMT + - Tue, 16 Aug 2022 08:48:20 GMT location: - - /availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 ms-cv: - - qMVfibnDbka48tW06avlJw.0 + - CjX6vZ4pTUGkjo+UlnkjmA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022012Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tx6n + - 20220816T084820Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014pqv x-cache: - CONFIG_NOCACHE x-processing-time: - - 546ms + - 369ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:13 GMT + - Tue, 16 Aug 2022 08:48:19 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 response: body: - string: '{"searchId": "372118b2-9ed0-4014-9fe6-924d954e77d0", "phoneNumbers": + string: '{"searchId": "9a7c05e6-4523-4118-aef9-1f8e2b2c0f82", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:35:44.0615628+00:00"}' + "2022-08-16T09:03:52.3052128+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:15 GMT + - Tue, 16 Aug 2022 08:48:22 GMT ms-cv: - - IWOt95emQkyaA5cp+ioLXg.0 + - hFwcb393K0ixk1BSrBAWaw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022013Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txda + - 20220816T084820Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014pub x-cache: - CONFIG_NOCACHE x-processing-time: - - 1938ms + - 1618ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "372118b2-9ed0-4014-9fe6-924d954e77d0"}' + body: '{"searchId": "9a7c05e6-4523-4118-aef9-1f8e2b2c0f82"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:20:15 GMT + - Tue, 16 Aug 2022 08:48:21 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - wOqXgZe8Zq42slbA9dM+DV8mv/BOf2+ePpid2+DFCh4= + - yRpDZz70teXwV0ivwO4n0XsCuwWm45iX9iaTd9YtLCM= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:20:18 GMT + - Tue, 16 Aug 2022 08:48:24 GMT ms-cv: - - MFH5USUb10K4RgoeLru05w.0 + - gDU6ZzytG0+mb/HAxu9rwQ.0 operation-id: - - purchase_372118b2-9ed0-4014-9fe6-924d954e77d0 + - purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 operation-location: - - /phoneNumbers/operations/purchase_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 purchase-id: - - 372118b2-9ed0-4014-9fe6-924d954e77d0 + - 9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022015Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txz4 + - 20220816T084822Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014q5q x-cache: - CONFIG_NOCACHE x-processing-time: - - 2093ms + - 1915ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:48 GMT + - Tue, 16 Aug 2022 08:48:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_372118b2-9ed0-4014-9fe6-924d954e77d0?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:19:42.3120446+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-16T08:47:49.7690904+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:49 GMT + - Tue, 16 Aug 2022 08:48:54 GMT ms-cv: - - j1R/tqmDDEuEkdR6XKH0Jw.0 + - 1g3vHr+RqEGGWXJNIBrkvQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022048Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001u5mt + - 20220816T084854Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014v6c x-cache: - CONFIG_NOCACHE x-processing-time: - - 996ms + - 329ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:49 GMT + - Tue, 16 Aug 2022 08:48:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -292,7 +292,7 @@ interactions: string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2022-08-10T02:20:42.6013095+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-16T08:48:40.8917946+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: @@ -302,19 +302,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:54 GMT + - Tue, 16 Aug 2022 08:48:59 GMT ms-cv: - - emgNriovtkqgMevVPyddZQ.0 + - hwCTAk+VrECNI3Cw0O/myA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022050Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000u00000000094vh + - 20220816T084855Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001mm59 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3885ms + - 4372ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml new file mode 100644 index 00000000000..9d00abd4552 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml @@ -0,0 +1,311 @@ +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, 16 Aug 2022 09:29:16 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:29:21 GMT + location: + - /availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + ms-cv: + - CIqT+vqzckiD4Vs4R93caQ.0 + operation-id: + - search_4d742fdc-1981-4d44-9fa7-38d52a73fe1b + operation-location: + - /phoneNumbers/operations/search_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + search-id: + - 4d742fdc-1981-4d44-9fa7-38d52a73fe1b + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0bmP7YgAAAACy0S1591yFQLPp1bEFWdZEWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2594ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:29:50 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07", + "createdDateTime": "2022-08-16T09:29:21.3718259+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, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:29:52 GMT + location: + - /availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + ms-cv: + - 8fdfnnnIP06O6+J32dxYqg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0j2P7YgAAAAC+47ivgDJOTLc5leHS4Bu9WVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 541ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:29:50 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + response: + body: + string: '{"searchId": "4d742fdc-1981-4d44-9fa7-38d52a73fe1b", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T09:45:25.3459022+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:29:53 GMT + ms-cv: + - hp8gzNkb9UuWTSfqAdUnMw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0kGP7YgAAAABXyDE0RFVwSZrY2oG7mQ+SWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1193ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "4d742fdc-1981-4d44-9fa7-38d52a73fe1b"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:29:52 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - nptcfq37EVt010R0/vDbROxNpem7GRLqsDwUR0QRhBw= + 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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:29:55 GMT + ms-cv: + - oHacoRxOlUSELXLq4zlrNA.0 + operation-id: + - purchase_4d742fdc-1981-4d44-9fa7-38d52a73fe1b + operation-location: + - /phoneNumbers/operations/purchase_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + purchase-id: + - 4d742fdc-1981-4d44-9fa7-38d52a73fe1b + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0kWP7YgAAAACFjIxNCNI5RKLA0h83hE5hWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2092ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:30:24 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T09:29:21.3718259+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, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:30:25 GMT + ms-cv: + - OO1arVIMP0C0vfQG+HRpEw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0sWP7YgAAAABvY2Ycrn6CRbPFjjswfwvHWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 436ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:30:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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-08-16T09:30:22.1381982+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, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:30:29 GMT + ms-cv: + - g3R/EFTUV0qvJ36ChpNtRw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093026Z-hq6y7egy7x60fea7pte6x8g1v000000000eg00000000h7cx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2837ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index ddab9a2c073..e96f34812eb 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Wed, 10 Aug 2022 02:19:36 GMT + - Tue, 16 Aug 2022 08:38:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:19:37 GMT + - Tue, 16 Aug 2022 08:38:49 GMT ms-cv: - - fNFR1ZxBnkWOJVsg13ZxEg.0 + - iDo/vC1BKkGCg/yfHX0WjA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021937Z-gu5mc89ux17apbrm5n76u6e4ng00000000rg00000000nf2v + - 20220816T083849Z-z5w8hfkph50p97tr7b7ay90rp000000000a000000003bas1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 115ms status: code: 201 message: Created @@ -68,7 +68,7 @@ interactions: x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Wed, 10 Aug 2022 02:19:37 GMT + - Tue, 16 Aug 2022 08:38:48 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,19 +83,19 @@ interactions: connection: - keep-alive date: - - Wed, 10 Aug 2022 02:19:38 GMT + - Tue, 16 Aug 2022 08:38:50 GMT ms-cv: - - 44MNbDSqBEWN4BWfd96xig.0 + - iMP6OmdlHUipPQadEVgEYg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021937Z-wa551hkds961h6e2hcntxt8eh400000000q0000000028fev + - 20220816T083849Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005eg00000001cb8t x-cache: - CONFIG_NOCACHE x-processing-time: - - 84ms + - 104ms status: code: 204 message: No Content 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 612771fb342..0adf2fd3708 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:21:13 GMT + - Tue, 16 Aug 2022 08:40:24 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:21:17 GMT + - Tue, 16 Aug 2022 08:40:29 GMT location: - - /availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 ms-cv: - - aAASG2gQMU6X2rwOUpcM7A.0 + - aFEE3E3UQkWBEBCcW8WSmw.0 operation-id: - - search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d + - search_eb1831b9-0cec-4060-a1b1-5eed999c9661 operation-location: - - /phoneNumbers/operations/search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + - /phoneNumbers/operations/search_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 search-id: - - c25cc1c2-7023-4065-b6b7-a9e368e4a88d + - eb1831b9-0cec-4060-a1b1-5eed999c9661 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022113Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007xyk + - 20220816T084026Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011cb5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3769ms + - 3128ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:21:47 GMT + - Tue, 16 Aug 2022 08:40:58 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:21:17.3424018+00:00", "id": "search_c25cc1c2-7023-4065-b6b7-a9e368e4a88d", + "/availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:40:29.0491499+00:00", "id": "search_eb1831b9-0cec-4060-a1b1-5eed999c9661", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:21:48 GMT + - Tue, 16 Aug 2022 08:41:00 GMT location: - - /availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 ms-cv: - - Yhe8e/gr0UuC3IEiFJc88g.0 + - T3udKJVXgkqNAAefiCnyrg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022147Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007z67 + - 20220816T084059Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011n5u x-cache: - CONFIG_NOCACHE x-processing-time: - - 337ms + - 396ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:21:48 GMT + - Tue, 16 Aug 2022 08:40:58 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 response: body: - string: '{"searchId": "c25cc1c2-7023-4065-b6b7-a9e368e4a88d", "phoneNumbers": - ["+18334312297"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "eb1831b9-0cec-4060-a1b1-5eed999c9661", "phoneNumbers": + ["+18333137447"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:37:19.1083196+00:00"}' + "2022-08-16T08:56:30.9190821+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:21:50 GMT + - Tue, 16 Aug 2022 08:41:01 GMT ms-cv: - - FgsiRsf6uECworLeD/VsJw.0 + - bENH/YffZk688UFsOhGFDw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022148Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007z84 + - 20220816T084100Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011n97 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2107ms + - 1139ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c25cc1c2-7023-4065-b6b7-a9e368e4a88d"}' + body: '{"searchId": "eb1831b9-0cec-4060-a1b1-5eed999c9661"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:21:50 GMT + - Tue, 16 Aug 2022 08:40:59 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - blmtHkmgCxFh5r/W1EJB3knA/z9DbwfqqHcktGtr3wo= + - jH1pU+TUddcgtTA0I7AYjbMKD5B1WpzjD9Lg3/RlEno= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:21:53 GMT + - Tue, 16 Aug 2022 08:41:03 GMT ms-cv: - - whDesyeh3U24qa6ZRfNioA.0 + - 37VLmyfSpkylLVA24ZgH4Q.0 operation-id: - - purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d + - purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661 operation-location: - - /phoneNumbers/operations/purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 purchase-id: - - c25cc1c2-7023-4065-b6b7-a9e368e4a88d + - eb1831b9-0cec-4060-a1b1-5eed999c9661 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022151Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s0000000007zbq + - 20220816T084101Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011nmu x-cache: - CONFIG_NOCACHE x-processing-time: - - 1925ms + - 2270ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:22:22 GMT + - Tue, 16 Aug 2022 08:41:32 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:21:17.3424018+00:00", "id": "purchase_c25cc1c2-7023-4065-b6b7-a9e368e4a88d", + null, "createdDateTime": "2022-08-16T08:40:29.0491499+00:00", "id": "purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:22:23 GMT + - Tue, 16 Aug 2022 08:41:34 GMT ms-cv: - - 7FH98Sl6bE6T3+Czn7pJKw.0 + - QT4ZDl9Lg0Orx1OYvboapQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022223Z-ad2xfpn4wp0e7dm4e4p0raa6a800000000s00000000080g2 + - 20220816T084133Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011wqn x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 489ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:22:23 GMT + - Tue, 16 Aug 2022 08:41:32 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - rTDRgOgYfkG62I6tGTpdVJCQsT9Fuk+aFO4vJVr8K48= + - wcnymaeSGMLtij3AsioxPbQjjMV5bfGPTRJKCZJZ7hw= x-ms-return-client-request-id: - 'true' method: POST @@ -305,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:22:24 GMT + - Tue, 16 Aug 2022 08:41:35 GMT ms-cv: - - M48ad5ulT0WQGEIPImsS5Q.0 + - sryqxdDA9ka6VYNnLTtQ8g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022224Z-qw4txeh9r90g5czxetkag1fv6000000000q00000000300n9 + - 20220816T084134Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000013y27 x-cache: - CONFIG_NOCACHE x-processing-time: - - 133ms + - 291ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index 55ee1cc10e3..ae7cc2de17b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:22:29 GMT + - Tue, 16 Aug 2022 08:42:02 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:22:33 GMT + - Tue, 16 Aug 2022 08:42:07 GMT location: - - /availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 ms-cv: - - Dusfmchp4EOXa6GoQjZ5/g.0 + - Kcl5xayd50K+rGlqcCOOGw.0 operation-id: - - search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea + - search_fdc69fa2-ba25-4f34-a085-4284804e5010 operation-location: - - /phoneNumbers/operations/search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + - /phoneNumbers/operations/search_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 search-id: - - 45bac9f1-4a71-4df1-a6df-6fed5b6e7dea + - fdc69fa2-ba25-4f34-a085-4284804e5010 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022230Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037cav + - 20220816T084204Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f0000000012wxz x-cache: - CONFIG_NOCACHE x-processing-time: - - 2507ms + - 2947ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:23:02 GMT + - Tue, 16 Aug 2022 08:42:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:22:32.7169114+00:00", "id": "search_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", + "/availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:42:07.1992836+00:00", "id": "search_fdc69fa2-ba25-4f34-a085-4284804e5010", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:23:03 GMT + - Tue, 16 Aug 2022 08:42:38 GMT location: - - /availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 ms-cv: - - yxgwhOhcA02jNxgU6RTd/g.0 + - z68iXx7VpUy1ui3MeAVjvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022303Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037rss + - 20220816T084237Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139a5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 300ms + - 420ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:23:03 GMT + - Tue, 16 Aug 2022 08:42:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 response: body: - string: '{"searchId": "45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", "phoneNumbers": - ["+18772156002"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "fdc69fa2-ba25-4f34-a085-4284804e5010", "phoneNumbers": + ["+18772188171"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:38:34.9146502+00:00"}' + "2022-08-16T08:58:09.9332175+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:23:04 GMT + - Tue, 16 Aug 2022 08:42:39 GMT ms-cv: - - rc6yzjtTPEiSUZFZEbCkog.0 + - FtEqLHjm3kqOlLFFZHrs0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022303Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037ry5 + - 20220816T084238Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139fk x-cache: - CONFIG_NOCACHE x-processing-time: - - 917ms + - 1102ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "45bac9f1-4a71-4df1-a6df-6fed5b6e7dea"}' + body: '{"searchId": "fdc69fa2-ba25-4f34-a085-4284804e5010"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:23:04 GMT + - Tue, 16 Aug 2022 08:42:38 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - D6prARGGy4jd7Om59aodlQy5UIK3bc0o3ZYT5pF7yeU= + - p5NsDQh1oX/CH7YiG3Caz7AFXsEbL3kO5Zzvw/8L/Hs= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:23:06 GMT + - Tue, 16 Aug 2022 08:42:41 GMT ms-cv: - - 8KtDL6W4nEih0/sDVwMzLw.0 + - w/8SByCgK0Ol45STQpuv3A.0 operation-id: - - purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea + - purchase_fdc69fa2-ba25-4f34-a085-4284804e5010 operation-location: - - /phoneNumbers/operations/purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 purchase-id: - - 45bac9f1-4a71-4df1-a6df-6fed5b6e7dea + - fdc69fa2-ba25-4f34-a085-4284804e5010 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022304Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q0000000037s7y + - 20220816T084239Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139x7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1603ms + - 1837ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:23:36 GMT + - Tue, 16 Aug 2022 08:43:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:22:32.7169114+00:00", "id": "purchase_45bac9f1-4a71-4df1-a6df-6fed5b6e7dea", + null, "createdDateTime": "2022-08-16T08:42:07.1992836+00:00", "id": "purchase_fdc69fa2-ba25-4f34-a085-4284804e5010", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:23:36 GMT + - Tue, 16 Aug 2022 08:43:11 GMT ms-cv: - - 2AZSQhZnsE6XGLixymJocw.0 + - On7G6Fvhwkuacj3AfaH8jQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022336Z-s1214kcr1x3rx7q1xwqyxffbgw00000000q00000000382xy + - 20220816T084311Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f0000000013nvx x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 331ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:23:36 GMT + - Tue, 16 Aug 2022 08:43:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -305,25 +305,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:23:40 GMT + - Tue, 16 Aug 2022 08:43:15 GMT location: - - /availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 ms-cv: - - FStSj5hNhkaY3fdYJ4qe/Q.0 + - 3dKknlxjQEKSeScULc/gfA.0 operation-id: - - search_82548125-b1ff-484a-820d-5a9eaac2b741 + - search_c0d7363b-b17b-496c-b6d6-26a9627955fe operation-location: - - /phoneNumbers/operations/search_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + - /phoneNumbers/operations/search_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 search-id: - - 82548125-b1ff-484a-820d-5a9eaac2b741 + - c0d7363b-b17b-496c-b6d6-26a9627955fe strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022337Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gksc + - 20220816T084312Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022429 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3284ms + - 2683ms status: code: 202 message: Accepted @@ -337,7 +337,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:24:10 GMT + - Tue, 16 Aug 2022 08:43:43 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -345,12 +345,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:23:40.449807+00:00", "id": "search_82548125-b1ff-484a-820d-5a9eaac2b741", + "/availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:43:14.5951831+00:00", "id": "search_c0d7363b-b17b-496c-b6d6-26a9627955fe", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -362,21 +362,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:24:11 GMT + - Tue, 16 Aug 2022 08:43:45 GMT location: - - /availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 ms-cv: - - 8mRHL5ELoEOx5h7oQ9l1fA.0 + - vgSLnCzReEq7jydE9xmeIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022410Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gvxg + - 20220816T084345Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022ky1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 290ms + - 446ms status: code: 200 message: OK @@ -391,7 +391,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:24:11 GMT + - Tue, 16 Aug 2022 08:43:44 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -399,14 +399,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 response: body: - string: '{"searchId": "82548125-b1ff-484a-820d-5a9eaac2b741", "phoneNumbers": - ["+18772157127"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "c0d7363b-b17b-496c-b6d6-26a9627955fe", "phoneNumbers": + ["+18446397672"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:39:42.4860521+00:00"}' + "2022-08-16T08:59:17.2882690+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -415,25 +415,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:24:12 GMT + - Tue, 16 Aug 2022 08:43:47 GMT ms-cv: - - /RmpGGZT90KrlMeVqRbLVg.0 + - oAHf6xZg2E6E9VqIEa15Aw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022411Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gw1n + - 20220816T084345Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022m75 x-cache: - CONFIG_NOCACHE x-processing-time: - - 944ms + - 1099ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "82548125-b1ff-484a-820d-5a9eaac2b741"}' + body: '{"searchId": "c0d7363b-b17b-496c-b6d6-26a9627955fe"}' headers: Accept: - application/json @@ -446,11 +446,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:24:12 GMT + - Tue, 16 Aug 2022 08:43:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - Glc8o/nTSyg7dd9dIooAz1YSNDVRFSC3Z3pQIpELjXI= + - 478Qh1U2MlFAOY9oInbYCBFfqwOzBsIvIMamU8s3WP8= x-ms-return-client-request-id: - 'true' method: POST @@ -468,23 +468,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:24:14 GMT + - Tue, 16 Aug 2022 08:43:49 GMT ms-cv: - - 3RmfgaeuckK1Jar9QVODWQ.0 + - qCv4Q+9SA0aSbJA1CN0Z5A.0 operation-id: - - purchase_82548125-b1ff-484a-820d-5a9eaac2b741 + - purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe operation-location: - - /phoneNumbers/operations/purchase_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 purchase-id: - - 82548125-b1ff-484a-820d-5a9eaac2b741 + - c0d7363b-b17b-496c-b6d6-26a9627955fe strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022412Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000gwd1 + - 20220816T084347Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022mrs x-cache: - CONFIG_NOCACHE x-processing-time: - - 1718ms + - 2137ms status: code: 202 message: Accepted @@ -498,7 +498,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:24:44 GMT + - Tue, 16 Aug 2022 08:44:17 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -506,11 +506,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_82548125-b1ff-484a-820d-5a9eaac2b741?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:23:40.449807+00:00", "id": "purchase_82548125-b1ff-484a-820d-5a9eaac2b741", + null, "createdDateTime": "2022-08-16T08:43:14.5951831+00:00", "id": "purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -520,19 +520,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:24:44 GMT + - Tue, 16 Aug 2022 08:44:19 GMT ms-cv: - - 6hTLYkPdA0KxKw9Qv9QqxA.0 + - T3nLJ+1zYUe737VE+J4k2g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022444Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000h5et + - 20220816T084419Z-zvdmwacghh4c97ggppewnyshxn00000000e00000000231s4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 278ms + - 469ms status: code: 200 message: OK @@ -552,7 +552,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:24:44 GMT + - Tue, 16 Aug 2022 08:44:18 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -574,25 +574,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:24:47 GMT + - Tue, 16 Aug 2022 08:44:23 GMT location: - - /availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 ms-cv: - - eIxS6nZL/UmNzT7+L+kK8g.0 + - QdXNZkUftEOfSpSMbUe+6Q.0 operation-id: - - search_c3064939-2d31-4938-8226-5a66266f3005 + - search_af1fbf1e-738b-47b4-a6c6-031f6256ef01 operation-location: - - /phoneNumbers/operations/search_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + - /phoneNumbers/operations/search_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 search-id: - - c3064939-2d31-4938-8226-5a66266f3005 + - af1fbf1e-738b-47b4-a6c6-031f6256ef01 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022444Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000h5nn + - 20220816T084420Z-hq6y7egy7x60fea7pte6x8g1v000000000ag000000044yxg x-cache: - CONFIG_NOCACHE x-processing-time: - - 2001ms + - 3167ms status: code: 202 message: Accepted @@ -606,7 +606,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:25:16 GMT + - Tue, 16 Aug 2022 08:44:52 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -614,12 +614,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:24:46.6457613+00:00", "id": "search_c3064939-2d31-4938-8226-5a66266f3005", + "/availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:44:22.9538808+00:00", "id": "search_af1fbf1e-738b-47b4-a6c6-031f6256ef01", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -631,21 +631,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:25:17 GMT + - Tue, 16 Aug 2022 08:44:54 GMT location: - - /availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 ms-cv: - - d5DwI9oJHUWlNlR+0Iydcg.0 + - aFPBO4Pm4kGgULd9pOLsNg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022517Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hf8g + - 20220816T084453Z-hq6y7egy7x60fea7pte6x8g1v000000000ag0000000457tn x-cache: - CONFIG_NOCACHE x-processing-time: - - 378ms + - 526ms status: code: 200 message: OK @@ -660,7 +660,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:25:17 GMT + - Tue, 16 Aug 2022 08:44:53 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -668,14 +668,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 response: body: - string: '{"searchId": "c3064939-2d31-4938-8226-5a66266f3005", "phoneNumbers": - ["+18334292099"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "af1fbf1e-738b-47b4-a6c6-031f6256ef01", "phoneNumbers": + ["+18662016271"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:40:48.8683559+00:00"}' + "2022-08-16T09:00:24.9977222+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -684,25 +684,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:25:19 GMT + - Tue, 16 Aug 2022 08:44:55 GMT ms-cv: - - Lv1TTK6jnUaMc4XeBn3TTw.0 + - S2I1X6fU5ka1wqstJcap4g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022517Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hfcq + - 20220816T084454Z-hq6y7egy7x60fea7pte6x8g1v000000000ag0000000457z0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1598ms + - 1142ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c3064939-2d31-4938-8226-5a66266f3005"}' + body: '{"searchId": "af1fbf1e-738b-47b4-a6c6-031f6256ef01"}' headers: Accept: - application/json @@ -715,11 +715,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:25:19 GMT + - Tue, 16 Aug 2022 08:44:54 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - UiIELYsu8OgfBygfh8irVL5p1ucFxXrD9/O5K867AW0= + - 2lgZaSgiXmT1ZBnFrwF6u8KHr4WpBZajLeNWQ4tgsDo= x-ms-return-client-request-id: - 'true' method: POST @@ -737,23 +737,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:25:20 GMT + - Tue, 16 Aug 2022 08:44:57 GMT ms-cv: - - cf5Kc8ylqkWC3Yg8fXL6Jw.0 + - sc80O0Y9v02Kyft3q0mJFQ.0 operation-id: - - purchase_c3064939-2d31-4938-8226-5a66266f3005 + - purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01 operation-location: - - /phoneNumbers/operations/purchase_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 purchase-id: - - c3064939-2d31-4938-8226-5a66266f3005 + - af1fbf1e-738b-47b4-a6c6-031f6256ef01 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022519Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000hfym + - 20220816T084455Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000004589d x-cache: - CONFIG_NOCACHE x-processing-time: - - 1630ms + - 1981ms status: code: 202 message: Accepted @@ -767,7 +767,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:25:50 GMT + - Tue, 16 Aug 2022 08:45:26 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -775,11 +775,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c3064939-2d31-4938-8226-5a66266f3005?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:24:46.6457613+00:00", "id": "purchase_c3064939-2d31-4938-8226-5a66266f3005", + null, "createdDateTime": "2022-08-16T08:44:22.9538808+00:00", "id": "purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -789,19 +789,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:25:51 GMT + - Tue, 16 Aug 2022 08:45:28 GMT ms-cv: - - QWWLa4V8dUCCZLFIjh9+4w.0 + - Vug/HP4idEW1uePq/WzaTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022551Z-3v7ucyhfft7bhag10pdz2gn96s00000000sg00000000huw2 + - 20220816T084527Z-hq6y7egy7x60fea7pte6x8g1v000000000ag000000045gqq x-cache: - CONFIG_NOCACHE x-processing-time: - - 845ms + - 425ms status: code: 200 message: OK @@ -823,11 +823,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:25:51 GMT + - Tue, 16 Aug 2022 08:45:27 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - gMMkv8XBkKXbft8sSBeakESzFG5M1Zi+N4LvyC6gF7g= + - hAkcgV82H8crfoZbO8hGyXD/DGNVGoKZd191ON4EoRA= x-ms-return-client-request-id: - 'true' method: POST @@ -846,19 +846,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:25:52 GMT + - Tue, 16 Aug 2022 08:45:29 GMT ms-cv: - - wjtbUM5QREWxvXD1k5XC6g.0 + - 2+ir9OjL20GIxodfN2zqMQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022552Z-s1214kcr1x3rx7q1xwqyxffbgw00000000qg00000002rcf9 + - 20220816T084529Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000zw06 x-cache: - CONFIG_NOCACHE x-processing-time: - - 212ms + - 281ms 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 bd2661744f0..61c074564cf 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:19:37 GMT + - Tue, 16 Aug 2022 08:54:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:19:41 GMT + - Tue, 16 Aug 2022 08:54:16 GMT location: - - /availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 ms-cv: - - mXgj0BejJ0y9j6lXmmEw5Q.0 + - +MVdkqv7GEiNrSs6SbKNKw.0 operation-id: - - search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c + - search_b8782394-cbfe-45e3-af28-198d38c9ef14 operation-location: - - /phoneNumbers/operations/search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + - /phoneNumbers/operations/search_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 search-id: - - 3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c + - b8782394-cbfe-45e3-af28-198d38c9ef14 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T021937Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tpwu + - 20220816T085410Z-zvdmwacghh4c97ggppewnyshxn00000000eg0000000245f0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2914ms + - 5128ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:10 GMT + - Tue, 16 Aug 2022 08:54:44 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07", - "createdDateTime": "2022-08-10T02:19:40.6265158+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07", + "createdDateTime": "2022-08-16T08:54:15.3421147+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:12 GMT + - Tue, 16 Aug 2022 08:54:47 GMT location: - - /availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 ms-cv: - - E1aSL8cr7U2MsqQwUuDOTA.0 + - KpjS2hSSg0aYlxWlOQTSeg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022011Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tww3 + - 20220816T085446Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024nce x-cache: - CONFIG_NOCACHE x-processing-time: - - 421ms + - 709ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:11 GMT + - Tue, 16 Aug 2022 08:54:45 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 response: body: - string: '{"searchId": "3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c", "phoneNumbers": + string: '{"searchId": "b8782394-cbfe-45e3-af28-198d38c9ef14", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-10T02:35:43.0038539+00:00"}' + "2022-08-16T09:10:19.8539446+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:15 GMT + - Tue, 16 Aug 2022 08:54:48 GMT ms-cv: - - gVpCNitw4UakEJuMVePgyQ.0 + - +xJsNbNdwU2Cu7CJIWet2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022012Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001tx1f + - 20220816T085447Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024nqw x-cache: - CONFIG_NOCACHE x-processing-time: - - 2941ms + - 1481ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c"}' + body: '{"searchId": "b8782394-cbfe-45e3-af28-198d38c9ef14"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Aug 2022 02:20:15 GMT + - Tue, 16 Aug 2022 08:54:47 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - AQToihQsAh1jxC6iQBGPs8KnNwjK5vWOOHoXJZ1EApg= + - 0uuEJLZKg01LC39wg2R0PqGjRyIE/InDDIz/5iJ3CZo= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Wed, 10 Aug 2022 02:20:18 GMT + - Tue, 16 Aug 2022 08:54:51 GMT ms-cv: - - leBUtzbWJE+jRNXXqO3Zvw.0 + - fQ3f0ZBUaUyR6/gHhWqkOA.0 operation-id: - - purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c + - purchase_b8782394-cbfe-45e3-af28-198d38c9ef14 operation-location: - - /phoneNumbers/operations/purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 purchase-id: - - 3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c + - b8782394-cbfe-45e3-af28-198d38c9ef14 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220810T022015Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001txuu + - 20220816T085448Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024pck x-cache: - CONFIG_NOCACHE x-processing-time: - - 2991ms + - 3041ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:48 GMT + - Tue, 16 Aug 2022 08:55:20 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_3fbfe382-7f2b-43c4-8bb1-63b9a9d0d10c?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-10T02:19:40.6265158+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-16T08:54:15.3421147+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:49 GMT + - Tue, 16 Aug 2022 08:55:22 GMT ms-cv: - - LQQo9BHaEUuuYQrfQ84WhQ.0 + - Ftdm024yikWHb7j0GIVjrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022048Z-huevmdadqx2sz9yxspbd0a0pg800000000qg00000001u5qc + - 20220816T085521Z-zvdmwacghh4c97ggppewnyshxn00000000eg0000000253cp x-cache: - CONFIG_NOCACHE x-processing-time: - - 416ms + - 682ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Wed, 10 Aug 2022 02:20:49 GMT + - Tue, 16 Aug 2022 08:55:21 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-10T02:20:36.568734+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-16T08:55:07.9453335+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 10 Aug 2022 02:20:52 GMT + - Tue, 16 Aug 2022 08:55:29 GMT ms-cv: - - edrL+7bMGku42nuw6vCXnQ.0 + - Qc+p6XAOU0iVtrMAl9NTmQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220810T022049Z-pf9c2ya0k977tfy9h6mgs0wnsg00000000t000000000he12 + - 20220816T085522Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000a62n x-cache: - CONFIG_NOCACHE x-processing-time: - - 2714ms + - 5938ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml b/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml new file mode 100644 index 00000000000..411370f1a08 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml @@ -0,0 +1,315 @@ +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, 16 Aug 2022 09:25:33 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:25:39 GMT + location: + - /availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + ms-cv: + - kvLs2xuTW0qc21FgfjpcIA.0 + operation-id: + - search_68977f2e-bd55-4b93-b343-9d7dac05ae18 + operation-location: + - /phoneNumbers/operations/search_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + search-id: + - 68977f2e-bd55-4b93-b343-9d7dac05ae18 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0j2L7YgAAAAD8ZneO1fRCSb6slp8aVIUUWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 4046ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:26:08 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07", + "createdDateTime": "2022-08-16T09:25:39.7222149+00:00", "id": "search_68977f2e-bd55-4b93-b343-9d7dac05ae18", + "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, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:26:09 GMT + location: + - /availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + ms-cv: + - fHplW/eto0SgZ9bH0s8Fsg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0smL7YgAAAAAuB1dG7OfxTaVt4tYDXO/fWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 360ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:26:09 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + response: + body: + string: '{"searchId": "68977f2e-bd55-4b93-b343-9d7dac05ae18", "phoneNumbers": + ["+18447252258"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T09:41:45.6833416+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:26:11 GMT + ms-cv: + - mD0T/ePmxUGx4/LeO0bluQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0smL7YgAAAAAFepMuo4C/Qa2iMnHHaof9WVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1104ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "68977f2e-bd55-4b93-b343-9d7dac05ae18"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:26:10 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - P28LcpGrLGhTkHoYuA2vNXDw4hF6v8MT80BvhEu3DQ4= + 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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:26:13 GMT + ms-cv: + - MYqXyB+sD0GffWwiyH69CA.0 + operation-id: + - purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18 + operation-location: + - /phoneNumbers/operations/purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + purchase-id: + - 68977f2e-bd55-4b93-b343-9d7dac05ae18 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0s2L7YgAAAAA+fmYTvPv7S6PqoJbMkKbHWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2069ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:26:42 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T09:25:39.7222149+00:00", "id": "purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:26:44 GMT + ms-cv: + - FHTi5ncTEEuwH0UoJIyccg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 01GL7YgAAAADnKk0pyEHzQYbARhQECbMlWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 852ms + 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, 16 Aug 2022 09:26:43 GMT + User-Agent: + - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - A5g3PjUbLsoXWgX4hXXPqOUD11bc7NeBhEOBNTf08tc= + 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 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:26:45 GMT + ms-cv: + - FHHzoz8x/EmRpOnRYjetUw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T092645Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000001y24d + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 310ms + status: + code: 202 + message: Accepted + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml new file mode 100644 index 00000000000..32661b0622b --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml @@ -0,0 +1,866 @@ +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, 16 Aug 2022 09:31:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:31:33 GMT + location: + - /availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + ms-cv: + - PqNGPBqxdU+AHGVVffAusw.0 + operation-id: + - search_b78aebac-7618-4e10-bf2b-0fc268cf8915 + operation-location: + - /phoneNumbers/operations/search_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + search-id: + - b78aebac-7618-4e10-bf2b-0fc268cf8915 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093127Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003g1fp + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 5319ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:32:01 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07", + "createdDateTime": "2022-08-16T09:31:31.6469783+00:00", "id": "search_b78aebac-7618-4e10-bf2b-0fc268cf8915", + "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, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:32:04 GMT + location: + - /availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + ms-cv: + - 89/XWCBa5kW3NlKIvmOKsA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093203Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gbvu + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 680ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:32:02 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + response: + body: + string: '{"searchId": "b78aebac-7618-4e10-bf2b-0fc268cf8915", "phoneNumbers": + ["+18447288301"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T09:47:34.6582065+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:32:05 GMT + ms-cv: + - A/NOvuZQY0aF3CmPUyyOMw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093204Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gc3n + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1470ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "b78aebac-7618-4e10-bf2b-0fc268cf8915"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:32:04 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kDZNvLdhVU18qtBI6RUubZj/8dbCGPYv1zXOIGwXO5M= + 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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:32:08 GMT + ms-cv: + - 43Naxb615UOruOf+KsObyQ.0 + operation-id: + - purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915 + operation-location: + - /phoneNumbers/operations/purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + purchase-id: + - b78aebac-7618-4e10-bf2b-0fc268cf8915 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093205Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gcn5 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3131ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:32:37 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T09:31:31.6469783+00:00", "id": "purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:32:40 GMT + ms-cv: + - vtRTUNuKXECSabBNO/TESQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093238Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gq8z + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1162ms + status: + code: 200 + message: OK + url: sanitized +- 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, 16 Aug 2022 09:32:38 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:32:43 GMT + location: + - /availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + ms-cv: + - tjI/v7TPekSwu0+F0fJ70g.0 + operation-id: + - search_53eb5057-5ff2-421a-961a-6cd2b02057d7 + operation-location: + - /phoneNumbers/operations/search_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + search-id: + - 53eb5057-5ff2-421a-961a-6cd2b02057d7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093240Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000ktcu + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2431ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:33:11 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07", + "createdDateTime": "2022-08-16T09:32:42.6378135+00:00", "id": "search_53eb5057-5ff2-421a-961a-6cd2b02057d7", + "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, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:33:13 GMT + location: + - /availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + ms-cv: + - sg7OjqZtJ0uQTAifibuzPQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093313Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m48g + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 434ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:33:12 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + response: + body: + string: '{"searchId": "53eb5057-5ff2-421a-961a-6cd2b02057d7", "phoneNumbers": + ["+18332137319"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T09:48:44.4919825+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:33:15 GMT + ms-cv: + - V3wBz2JR2ka5P5aTpVyzzw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093313Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m4cr + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1174ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "53eb5057-5ff2-421a-961a-6cd2b02057d7"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:33:13 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - mfwc6aKrRMHhuMmjU2OMX/KhG92N61pKOzO3X4PpuB4= + 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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:33:17 GMT + ms-cv: + - J8zouhq0BUuIN0NJQV4B/A.0 + operation-id: + - purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7 + operation-location: + - /phoneNumbers/operations/purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + purchase-id: + - 53eb5057-5ff2-421a-961a-6cd2b02057d7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093315Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m4ry + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2170ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:33:45 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T09:32:42.6378135+00:00", "id": "purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:33:47 GMT + ms-cv: + - pNSMojArpE2OOG8ISTooEw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093347Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000mey4 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 449ms + status: + code: 200 + message: OK + url: sanitized +- 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, 16 Aug 2022 09:33:46 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:33:50 GMT + location: + - /availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + ms-cv: + - AV1xxF68YEm04IP23QcoLw.0 + operation-id: + - search_4c6f5905-49ba-40c9-9178-9caea6c1cef7 + operation-location: + - /phoneNumbers/operations/search_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + search-id: + - 4c6f5905-49ba-40c9-9178-9caea6c1cef7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093348Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fg2n + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2273ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:34:19 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07", + "createdDateTime": "2022-08-16T09:33:50.2998441+00:00", "id": "search_4c6f5905-49ba-40c9-9178-9caea6c1cef7", + "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, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:34:21 GMT + location: + - /availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + ms-cv: + - pGaoD81o7Uymv5ctGH797A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093420Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fu86 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 341ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:34:19 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + response: + body: + string: '{"searchId": "4c6f5905-49ba-40c9-9178-9caea6c1cef7", "phoneNumbers": + ["+18447271790"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T09:49:52.6370127+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:34:22 GMT + ms-cv: + - Fn49x1AvoUa9iad3yHOh7g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093421Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fucx + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 957ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "4c6f5905-49ba-40c9-9178-9caea6c1cef7"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:34:20 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - J/dcQzRxVYtt4CkP8FxTNsEy3h7p9Jm+i1puS+8nORM= + 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, 2022-12-01 + connection: + - keep-alive + content-length: + - '0' + date: + - Tue, 16 Aug 2022 09:34:24 GMT + ms-cv: + - BdcDYunfU0iHzcuCydu9Yw.0 + operation-id: + - purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7 + operation-location: + - /phoneNumbers/operations/purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + purchase-id: + - 4c6f5905-49ba-40c9-9178-9caea6c1cef7 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T093422Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fuqv + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1734ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 09:34:52 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T09:33:50.2998441+00:00", "id": "purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:34:54 GMT + ms-cv: + - dm5ZtQ42e0KoBMToMPeDUA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093454Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000g3ed + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 628ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"from": "sanitized", "smsRecipients": [{"to": "sanitized", "repeatabilityRequestId": + "sanitized", "repeatabilityFirstSent": "sanitized"}, {"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: + - '317' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 09:34:53 GMT + User-Agent: + - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - eaSp0d6Ucu4pdhufCUlGJco1bSmI+8FxCJ4UtKrnezA= + 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}, {"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 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:34:55 GMT + ms-cv: + - z+sbhVjic0OaYYs1IxL9zQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T093455Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000029cws + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 113ms + status: + code: 202 + message: Accepted + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml new file mode 100644 index 00000000000..08fcf0cba8a --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml @@ -0,0 +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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:15:56 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:15:58.6830024+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, 16 Aug 2022 09:15:58 GMT + ms-cv: + - bMeZj+4bdESIP68SUy63JA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T091558Z-zvdmwacghh4c97ggppewnyshxn00000000e000000002tyk3 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml new file mode 100644 index 00000000000..da6128ad7a8 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml @@ -0,0 +1,110 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-date: + - Tue, 16 Aug 2022 09:18:57 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + 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, 16 Aug 2022 09:18:59 GMT + ms-cv: + - X4W9o1juhk+36pd509F6jw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T091859Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000002kurk + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 121ms + 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 + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= + x-ms-date: + - Tue, 16 Aug 2022 09:18:58 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-08-17T09:19:00.0051407+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, 16 Aug 2022 09:19:00 GMT + ms-cv: + - 6NT+FiTiE0yKws2Ks2T7Ng.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T091859Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg000000007t9p + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 189ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml new file mode 100644 index 00000000000..909aa77cea5 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["voip", "chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= + x-ms-date: + - Tue, 16 Aug 2022 09:23:15 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:23:17.1039598+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, 16 Aug 2022 09:23:17 GMT + ms-cv: + - wio6lGGMhUaO+Qx9+O28ig.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T092317Z-0613xdc17h3t90gs2g8fdg5r64000000009g0000000234q8 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 120ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py index 3f10051e4ff..509a67f9f0a 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_chat_scenario.py @@ -21,7 +21,7 @@ def __init__(self, method_name): def __create_thread(self, topic): self.kwargs.update({ 'topic': topic }) - return self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + return self.cmd('az communication chat thread create --topic \"{topic}\"').get_output_in_json() def __create_user(self, communication_resource_info): @@ -30,7 +30,7 @@ def __create_user(self, communication_resource_info): self.kwargs.update({ 'connection_string': connection_str}) else: os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = connection_str - res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() + res = self.cmd('az communication identity token issue --scope chat').get_output_in_json() return res['user_id'] @@ -41,7 +41,7 @@ def __get_or_create_token(self, communication_resource_info): if self.is_live or self.in_recording: os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] self.kwargs.update({ 'connection_string': communication_resource_info[1] }) - res = self.cmd('az communication identity issue-access-token --scope chat').get_output_in_json() + res = self.cmd('az communication identity token issue --scope chat').get_output_in_json() return res['token'] else: # header is encoded form of @@ -70,7 +70,7 @@ def __update_environ(self, communication_resource_info): @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_chat_list_threads_with_env_auth(self, communication_resource_info): self.__update_environ(communication_resource_info) - threads = self.cmd('az communication chat list-threads').get_output_in_json() + threads = self.cmd('az communication chat thread list').get_output_in_json() assert len(threads) == 0 @@ -81,7 +81,7 @@ def test_chat_list_threads_with_cmdline_auth(self, communication_resource_info): self.kwargs.update({ 'access_token': token, 'endpoint': endpoint }) - threads = self.cmd('az communication chat list-threads --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() + threads = self.cmd('az communication chat thread list --endpoint \"{endpoint}\" --access-token \"{access_token}\"').get_output_in_json() assert len(threads) == 0 @@ -97,7 +97,7 @@ def test_chat_list_threads_no_endpoint(self, communication_resource_info): os.environ.pop('AZURE_COMMUNICATION_ENDPOINT', None) with self.assertRaises(RequiredArgumentMissingError) as raises: - self.cmd('az communication chat list-threads').get_output_in_json() + self.cmd('az communication chat thread list').get_output_in_json() assert '--endpoint' in str(raises.exception) assert 'AZURE_COMMUNICATION_ENDPOINT' in str(raises.exception) @@ -111,7 +111,7 @@ def test_chat_create_thread(self, communication_resource_info): chat_topic = 'some-topic' self.kwargs.update({ 'topic': chat_topic }) - self.cmd('az communication chat create-thread --topic \"{topic}\"', checks = [ + self.cmd('az communication chat thread create --topic \"{topic}\"', checks = [ self.check("errors", None), self.check("chatThread.topic", chat_topic), ]) @@ -123,7 +123,7 @@ def test_chat_create_thread_without_topic(self, communication_resource_info): self.__update_environ(communication_resource_info) with self.assertRaises(SystemExit) as raises: - self.cmd('az communication chat create-thread').get_output_in_json() + self.cmd('az communication chat thread create').get_output_in_json() assert raises.exception.code == 2 @@ -139,7 +139,7 @@ def test_chat_delete_thread(self, communication_resource_info): thread_id = res['chatThread']['id'] self.kwargs.update({ 'thread_id': thread_id }) - self.cmd('az communication chat delete-thread --thread-id {thread_id}') + self.cmd('az communication chat thread delete --thread {thread_id}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -150,11 +150,11 @@ def test_chat_list_participants(self, communication_resource_info): chat_topic = 'some-topic' self.kwargs.update({ 'topic': chat_topic }) - thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread = self.cmd('az communication chat thread create --topic \"{topic}\"').get_output_in_json() thread_id = thread['chatThread']['id'] self.kwargs.update({ 'thread_id': thread_id }) - participants = self.cmd('az communication chat list-participants --thread-id {thread_id}').get_output_in_json() + participants = self.cmd('az communication chat participant list --thread {thread_id}').get_output_in_json() assert len(participants) == 1 assert participants[0]['shareHistoryTime'] == '1970-01-01T00:00:00+00:00' @@ -170,7 +170,7 @@ def test_chat_list_participants_bad_thread_id(self, communication_resource_info) self.kwargs.update({ 'thread_id': thread_id }) with self.assertRaises(HttpResponseError) as raises: - self.cmd('az communication chat list-participants --thread-id {thread_id}', checks = [ + self.cmd('az communication chat participant list --thread {thread_id}', checks = [ self.check('httpStatusCode', '400')]) @@ -185,7 +185,7 @@ def test_chat_add_participant(self, communication_resource_info): self.kwargs.update({ 'topic': "chat-topic" }) - thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread = self.cmd('az communication chat thread create --topic \"{topic}\"').get_output_in_json() thread_id = thread['chatThread']['id'] # add the new user to the chat thread @@ -194,7 +194,7 @@ def test_chat_add_participant(self, communication_resource_info): 'user_id': user_id, 'access_token': token }) - add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}').get_output_in_json() + add_res = self.cmd('az communication chat participant add --thread {thread_id} --user {user_id}').get_output_in_json() assert len(add_res) == 0 @@ -207,7 +207,7 @@ def test_chat_add_participant_bad_user(self, communication_resource_info): # create a new thread self.kwargs.update({ 'topic': "chat-topic" }) - thread = self.cmd('az communication chat create-thread --topic \"{topic}\"').get_output_in_json() + thread = self.cmd('az communication chat thread create --topic \"{topic}\"').get_output_in_json() thread_id = thread['chatThread']['id'] # add a fake user to the chat thread @@ -217,7 +217,7 @@ def test_chat_add_participant_bad_user(self, communication_resource_info): 'user_id': user_id, 'access_token': token }) - add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + add_res = self.cmd('az communication chat participant add --thread {thread_id} --user {user_id}', checks = [ self.check('[0].code', '403'), self.check('[0].message', 'Permissions check failed'), self.check('[0].target', user_id) ]).get_output_in_json() @@ -229,7 +229,7 @@ def test_chat_add_participant_bad_user(self, communication_resource_info): 'user_id': '8:acs:fakeid===' }) with self.assertRaises(Exception) as raises: - self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + self.cmd('az communication chat participant add --thread {thread_id} --user {user_id}', checks = [ self.check('CommunicationError.code', 'Bad Request')]) assert 'Identifier format is invalid' in str(raises.exception) @@ -253,18 +253,18 @@ def test_chat_remove_participants(self, communication_resource_info): 'thread_id': thread_id, 'user_id': user_id }) - add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id}').get_output_in_json() + add_res = self.cmd('az communication chat participant add --thread {thread_id} --user {user_id}').get_output_in_json() assert len(add_res) == 0 # remove the new user from the chat thread - self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + self.cmd('az communication chat participant remove --thread {thread_id} --user {user_id}') # try to remove a user with invalid id self.kwargs.update({ 'user_id': '8:acs:fakeid' }) with self.assertRaises(HttpResponseError) as raises: - self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}', checks = [ + self.cmd('az communication chat participant remove --thread {thread_id} --user {user_id}', checks = [ self.check('CommunicationError.code', 'Bad Request')]) assert 'Identifier format is invalid' in str(raises.exception) @@ -272,11 +272,11 @@ def test_chat_remove_participants(self, communication_resource_info): # remove the original user from the chat thread self.kwargs.update({ 'user_id': owner_id }) - self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + self.cmd('az communication chat participant remove --thread {thread_id} --user {user_id}') # try to remove the original user again, should raise an error with self.assertRaises(HttpResponseError) as raises: - self.cmd('az communication chat remove-participant --thread-id {thread_id} --user-id {user_id}') + self.cmd('az communication chat participant remove --thread {thread_id} --user {user_id}') assert 'The initiator doesn\'t have the permission to perform the requested operation.' in str(raises.exception) @@ -298,7 +298,7 @@ def test_chat_add_participant_with_display_name(self, communication_resource_inf 'thread_id': thread_id, 'user_id': user_id, 'display_name': display_name }) - add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id} --display-name {display_name}').get_output_in_json() + add_res = self.cmd('az communication chat participant add --thread {thread_id} --user {user_id} --display-name {display_name}').get_output_in_json() assert len(add_res) == 0 @@ -319,7 +319,7 @@ def test_chat_add_participant_with_history_time(self, communication_resource_inf 'thread_id': thread_id, 'user_id': user_id, 'start_time': start_time}) - add_res = self.cmd('az communication chat add-participant --thread-id {thread_id} --user-id {user_id} --start-time {start_time}').get_output_in_json() + add_res = self.cmd('az communication chat participant add --thread {thread_id} --user {user_id} --start-time {start_time}').get_output_in_json() assert len(add_res) == 0 @@ -334,7 +334,7 @@ def test_chat_list_messages(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id }) - messages = self.cmd('az communication chat list-messages --thread-id {thread_id}').get_output_in_json() + messages = self.cmd('az communication chat message list --thread {thread_id}').get_output_in_json() assert len(messages) > 0 @@ -351,7 +351,7 @@ def test_chat_list_messages(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'start_time': start_time }) - messages = self.cmd('az communication chat list-messages --thread-id {thread_id} --start-time {start_time}').get_output_in_json() + messages = self.cmd('az communication chat message list --thread {thread_id} --start-time {start_time}').get_output_in_json() assert len(messages) > 0 @@ -368,7 +368,7 @@ def test_chat_send_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content}').get_output_in_json() assert message['id'] is not None @@ -384,7 +384,7 @@ def test_chat_send_message_without_content(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id }) with self.assertRaises(SystemExit) as raises: - self.cmd('az communication chat send-message --thread-id {thread_id}').get_output_in_json() + self.cmd('az communication chat message send --thread {thread_id}').get_output_in_json() assert raises.exception.code == 2 @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -400,7 +400,7 @@ def test_chat_send_text_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type text').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content} --message-type text').get_output_in_json() assert message['id'] is not None @@ -417,7 +417,7 @@ def test_chat_send_html_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type html').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content} --message-type html').get_output_in_json() assert message['id'] is not None @@ -434,11 +434,11 @@ def test_chat_get_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - sent_message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content} --message-type html').get_output_in_json() + sent_message = self.cmd('az communication chat message send --thread {thread_id} --content {content} --message-type html').get_output_in_json() self.kwargs.update({ 'message_id': sent_message['id'] }) - message = self.cmd('az communication chat get-message --thread-id {thread_id} --message-id {message_id}').get_output_in_json() + message = self.cmd('az communication chat message get --thread {thread_id} --message-id {message_id}').get_output_in_json() assert message['content']['message'] == content @@ -456,14 +456,14 @@ def test_chat_update_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content}').get_output_in_json() # and update it new_content = '\"Hello there!\"' self.kwargs.update({ 'content': new_content, 'message_id': message['id'] }) - self.cmd('az communication chat update-message --thread-id {thread_id} --message-id {message_id} --content {content}') + self.cmd('az communication chat message update --thread {thread_id} --message-id {message_id} --content {content}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -480,12 +480,12 @@ def test_chat_delete_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content}').get_output_in_json() # and delete it self.kwargs.update({ 'message_id': message['id'] }) - self.cmd('az communication chat delete-message --thread-id {thread_id} --message-id {message_id}') + self.cmd('az communication chat message delete --thread {thread_id} --message-id {message_id}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -502,13 +502,13 @@ def test_chat_update_message(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'content': content }) - message = self.cmd('az communication chat send-message --thread-id {thread_id} --content {content}').get_output_in_json() + message = self.cmd('az communication chat message send --thread {thread_id} --content {content}').get_output_in_json() new_content = '\"Hello there!\"' self.kwargs.update({ 'content': new_content, 'message_id': message['id'] }) - self.cmd('az communication chat update-message --thread-id {thread_id} --message-id {message_id} --content {content}') + self.cmd('az communication chat message update --thread {thread_id} --message-id {message_id} --content {content}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -525,7 +525,7 @@ def test_chat_update_topic(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id, 'topic': new_topic }) - self.cmd('az communication chat update-topic --thread-id {thread_id} --topic {topic}') + self.cmd('az communication chat thread update-topic --thread {thread_id} --topic {topic}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @@ -539,17 +539,17 @@ def test_chat_read_receipts(self, communication_resource_info): self.kwargs.update({ 'thread_id': thread_id }) - receipts = self.cmd('az communication chat list-read-receipts --thread-id {thread_id}').get_output_in_json() + receipts = self.cmd('az communication chat message receipt list --thread {thread_id}').get_output_in_json() assert len(receipts) == 0 - messages = self.cmd('az communication chat list-messages --thread-id {thread_id}').get_output_in_json() + messages = self.cmd('az communication chat message list --thread {thread_id}').get_output_in_json() message_id = messages[0]['id'] self.kwargs.update({ 'message_id': message_id }) - self.cmd('az communication chat send-read-receipt --thread-id {thread_id} --message-id {message_id}') + self.cmd('az communication chat message receipt send --thread {thread_id} --message-id {message_id}') - receipts = self.cmd('az communication chat list-read-receipts --thread-id {thread_id}').get_output_in_json() + receipts = self.cmd('az communication chat message receipt list --thread {thread_id}').get_output_in_json() assert len(receipts) == 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py index c5cb861e33c..38c4b811029 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_identity_scenario.py @@ -28,7 +28,7 @@ def __init__(self, method_name): @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_create_user(self, communication_resource_info): os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] - res = self.cmd('az communication identity create-user').get_output_in_json() + res = self.cmd('az communication identity user create').get_output_in_json() assert res is not None assert res['properties']['id'] == res['rawId'] @@ -37,11 +37,11 @@ def test_create_user(self, communication_resource_info): @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_delete_user(self, communication_resource_info): os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] - res = self.cmd('az communication identity create-user').get_output_in_json() + res = self.cmd('az communication identity user create').get_output_in_json() user_id = res['properties']['id'] self.kwargs.update({ 'user_id': user_id }) - self.cmd('az communication identity delete-user --user-id {user_id}') + self.cmd('az communication identity user delete --user {user_id}') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') @@ -62,7 +62,7 @@ def test_issue_access_token_with_id(self, communication_resource_info): self.kwargs.update({'id': id}) val = self.cmd( - 'az communication identity issue-access-token --scope chat --user-id {id}').get_output_in_json() + 'az communication identity issue-access-token --scope chat --userid {id}').get_output_in_json() self.assertIsNotNone(val['token']) @@ -76,10 +76,43 @@ def test_issue_access_token_with_multiple_scopes(self, communication_resource_in self.assertIsNotNone(val['token']) + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_token_issue(self, communication_resource_info): + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + val = self.cmd( + 'az communication identity token issue --scope chat').get_output_in_json() + self.assertIsNotNone(val['token']) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_token_issue_with_id(self, communication_resource_info): + + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) + self.kwargs.update({'id': id}) + + val = self.cmd( + 'az communication identity token issue --scope chat --user {id}').get_output_in_json() + self.assertIsNotNone(val['token']) + + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_token_issue_with_multiple_scopes(self, communication_resource_info): + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + val = self.cmd( + 'az communication identity token issue --scope voip chat').get_output_in_json() + self.assertIsNotNone(val['token']) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') @CommunicationResourcePreparer(resource_group_parameter_name='rg') def test_revoke_access_tokens(self, communication_resource_info): os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] id = get_test_identity_id(self.is_live, self.in_recording, communication_resource_info[1]) self.kwargs.update({'id': id}) - self.cmd('az communication identity revoke-access-tokens --user-id {id}') + self.cmd('az communication identity token revoke --user {id}') diff --git a/src/communication/azext_communication/tests/latest/test_communication_phonenumber_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_phonenumber_scenario.py index 83159e7a019..8bcfd6fd0e2 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_phonenumber_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_phonenumber_scenario.py @@ -53,3 +53,33 @@ def test_show_phonenumbers(self, communication_resource_info): self.assertIsNotNone(phonenumber_info['capabilities']) self.assertIsNotNone(phonenumber_info['cost']) self.check(phonenumber_info['phoneNumber'], phonenumber) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_phonenumber_list(self, communication_resource_info): + if self.is_live or self.in_recording: + get_new_phonenumber(communication_resource_info[1]) + + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + phonenumber_list = self.cmd( + 'az communication phonenumber list').get_output_in_json() + assert len(phonenumber_list) > 0 + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_phonenumber_show(self, communication_resource_info): + phonenumber = get_test_source_phonenumber(self.is_live, self.in_recording) + if phonenumber is None: + phonenumber = get_new_phonenumber(communication_resource_info[1]) + + self.kwargs.update({'phonenumber': phonenumber}) + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + phonenumber_info = self.cmd( + 'az communication phonenumber show --phonenumber \"{phonenumber}\"').get_output_in_json() + self.assertIsNotNone(phonenumber_info['id']) + self.assertIsNotNone(phonenumber_info['assignmentType']) + self.assertIsNotNone(phonenumber_info['capabilities']) + self.assertIsNotNone(phonenumber_info['cost']) + self.check(phonenumber_info['phoneNumber'], phonenumber) 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 65e8095e643..34e23e86a2e 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-08-10 02:53:56.293621|2022-08-10 02:53:56.722867| -|step_show|successed||||2022-08-10 02:53:56.722867|2022-08-10 02:53:56.787204| -|step_list|successed||||2022-08-10 02:53:56.788188|2022-08-10 02:53:56.855498| -|step_list2|successed||||2022-08-10 02:53:56.856411|2022-08-10 02:53:56.938058| -|step_update|successed||||2022-08-10 02:53:56.939059|2022-08-10 02:53:57.015767| -|step_link_notification_hub|successed||||2022-08-10 02:53:57.015767|2022-08-10 02:53:57.094033| -|step_list_key|successed||||2022-08-10 02:53:57.094033|2022-08-10 02:53:57.172616| -|step_regenerate_key|successed||||2022-08-10 02:53:57.172616|2022-08-10 02:53:57.249500| -|step_delete|successed||||2022-08-10 02:53:57.249500|2022-08-10 02:53:57.567183| +|step_create|successed||||2022-08-16 09:35:26.678914|2022-08-16 09:35:27.232728| +|step_show|successed||||2022-08-16 09:35:27.232728|2022-08-16 09:35:27.303575| +|step_list|successed||||2022-08-16 09:35:27.303575|2022-08-16 09:35:27.375428| +|step_list2|successed||||2022-08-16 09:35:27.375428|2022-08-16 09:35:27.446646| +|step_update|successed||||2022-08-16 09:35:27.447679|2022-08-16 09:35:27.520072| +|step_link_notification_hub|successed||||2022-08-16 09:35:27.520072|2022-08-16 09:35:27.591535| +|step_list_key|successed||||2022-08-16 09:35:27.591535|2022-08-16 09:35:27.667204| +|step_regenerate_key|successed||||2022-08-16 09:35:27.668187|2022-08-16 09:35:27.742632| +|step_delete|successed||||2022-08-16 09:35:27.742632|2022-08-16 09:35:28.100713| Coverage: 9/9 diff --git a/src/communication/azext_communication/tests/latest/test_communication_sms_scenarios.py b/src/communication/azext_communication/tests/latest/test_communication_sms_scenarios.py index c68ad6d5701..b3694c1ca49 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_sms_scenarios.py +++ b/src/communication/azext_communication/tests/latest/test_communication_sms_scenarios.py @@ -79,3 +79,60 @@ def test_send_sms_n_recipients(self, communication_resource_info): self.check("[0].httpStatusCode", "202"), self.check("[0].successful", "True") ]) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_sms_send(self, communication_resource_info): + + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + sender = get_test_source_phonenumber(self.is_live, self.in_recording) + recipient = get_test_recipient_phonenumber(self.is_live, self.in_recording) + + if sender is None: + sender = get_new_phonenumber(communication_resource_info[1]) + + if recipient is None: + recipient = sender + + self.kwargs.update({ + 'sender': sender, + 'recipient': recipient}) + + self.cmd('az communication sms send --sender \"{sender}\" \ + --recipient \"{recipient}\" --message "Hello there!!"', checks=[ + self.check("[0].errorMessage", None), + self.check("[0].httpStatusCode", "202"), + self.check("[0].successful", "True") + ]) + + @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @CommunicationResourcePreparer(resource_group_parameter_name='rg') + def test_sms_send_n_recipients(self, communication_resource_info): + + os.environ['AZURE_COMMUNICATION_CONNECTION_STRING'] = communication_resource_info[1] + + sender = get_test_source_phonenumber(self.is_live, self.in_recording) + recipient1 = get_test_recipient_phonenumber(self.is_live, self.in_recording) + recipient2 = get_test_recipient_phonenumber(self.is_live, self.in_recording) + + if sender is None: + sender = get_new_phonenumber(communication_resource_info[1]) + + if recipient1 is None: + recipient1 = get_new_phonenumber(communication_resource_info[1]) + + if recipient2 is None: + recipient2 = get_new_phonenumber(communication_resource_info[1]) + + self.kwargs.update({ + 'sender': sender, + 'recipient1': recipient1, + 'recipient2': recipient2}) + + self.cmd('az communication sms send --sender \"{sender}\" \ + --recipient \"{recipient1}\" \"{recipient2}\" --message "Hello there!!"', checks=[ + self.check("[0].errorMessage", None), + self.check("[0].httpStatusCode", "202"), + self.check("[0].successful", "True") + ]) From 9d5f9200f495924f698322968d5750ca686dab7b Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 16 Aug 2022 03:07:05 -0700 Subject: [PATCH 23/26] [Communication] update help and readme --- src/communication/README.md | 2 +- .../azext_communication/manual/_help.py | 66 ++++++++++++++++--- 2 files changed, 59 insertions(+), 9 deletions(-) diff --git a/src/communication/README.md b/src/communication/README.md index 299d92c8ec0..e1d8257b597 100644 --- a/src/communication/README.md +++ b/src/communication/README.md @@ -75,7 +75,7 @@ az communication identity token revoke --user "8:acs:xxxxxx" ``` ##### Get-Token-For-Teams-User ##### ``` -az communication identity token get-for-teams-user --aad-token "MyAzureADToken" --client "MyAzureADAppId" --user-object "MyTeamsUserId" +az communication identity token get-for-teams-user --aad-token "MyAzureADToken" --client "MyAzureADAppId" --aad-user "MyTeamsUserId" ``` ##### Send-SMS ##### ``` diff --git a/src/communication/azext_communication/manual/_help.py b/src/communication/azext_communication/manual/_help.py index 7e84adbfc19..2554f036993 100644 --- a/src/communication/azext_communication/manual/_help.py +++ b/src/communication/azext_communication/manual/_help.py @@ -118,7 +118,7 @@ """ helps['communication identity user'] = """ - type: subgroup + type: group short-summary: Commands to manage user Identities for a CommunicationService resource. """ @@ -140,8 +140,20 @@ az communication identity user delete --user "8:acs:xxxxxx" """ +helps['communication identity issue-access-token'] = """ + type: command + short-summary: "Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well." + examples: + - name: issue-access-token + text: |- + az communication identity issue-access-token --scope chat + - name: issue access-token with multiple scopes and user + text: |- + az communication identity issue-access-token --scope chat voip --user "8:acs:xxxxxx" +""" + helps['communication identity token'] = """ - type: subgroup + type: group short-summary: Commands to manage user tokens for a CommunicationService resource. """ @@ -154,7 +166,7 @@ az communication identity token issue --scope chat - name: issue access-token with multiple scopes and user text: |- - az communication identity tolen issue --scope chat voip --user "8:acs:xxxxxx" + az communication identity token issue --scope chat voip --user "8:acs:xxxxxx" """ helps['communication identity token revoke'] = """ @@ -172,7 +184,7 @@ examples: - name: token get-for-teams-user text: |- - az communication identity token get-for-teams-user --aad-token "aad-123-xyz" --client "app-id-123-xyz" --user-object "uid" + az communication identity token get-for-teams-user --aad-token "aad-123-xyz" --client "app-id-123-xyz" --aad-user "uid" """ helps['communication sms'] = """ @@ -180,7 +192,7 @@ short-summary: Commands to manage SMS for a CommunicationService resource. """ -helps['communication sms send-sms'] = """ +helps['communication sms send'] = """ type: command short-summary: "Sends an SMS from the sender phone number to the recipient(s) phone number." examples: @@ -190,6 +202,39 @@ --recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!" """ +helps['communication sms send-sms'] = """ + type: command + short-summary: "Sends an SMS from the sender phone number to the recipient(s) phone number." + examples: + - name: send-sms + text: |- + az communication sms send-sms --sender "+1833xxxxxxx" \ +--recipient "+1425xxxxxxx" "+1426xxxxxxx" "+1427xxxxxxx" --message "Hello there!!" +""" + +helps['communication phonenumbers'] = """ + type: group + short-summary: Commands to manage phone numbers for a CommunicationService resource. +""" + +helps['communication phonenumbers list-phonenumbers'] = """ + type: command + short-summary: "Lists all phone numbers associated with the CommunicationService resource." + examples: + - name: list-phonenumbers + text: |- + az communication phonenumbers list-phonenumbers +""" + +helps['communication phonenumbers show-phonenumber'] = """ + type: command + short-summary: "Shows the details for a phone number associated with the CommunicationService resource." + examples: + - name: show-phonenumber + text: |- + az communication phonenumbers show-phonenumber --phonenumber "+1833xxxxxxx" +""" + helps['communication phonenumber'] = """ type: group short-summary: Commands to manage phone numbers for a CommunicationService resource. @@ -219,7 +264,7 @@ """ helps['communication chat thread'] = """ - type: subgroup + type: group short-summary: Commands to manage chat thread of a CommunicationService resource. """ @@ -260,7 +305,7 @@ """ helps['communication chat participant'] = """ - type: subgroup + type: group short-summary: Commands to manage participants in a chat thread of a CommunicationService resource. """ @@ -292,7 +337,7 @@ """ helps['communication chat message'] = """ - type: subgroup + type: group short-summary: Commands to manage messages in a chat thread of a CommunicationService resource. """ @@ -341,6 +386,11 @@ az communication chat message delete --thread "19:a-bcd=xyz" --message-id "12345678" """ +helps['communication chat message receipt'] = """ + type: group + short-summary: Commands to manage message read-receipts in a chat thread of a CommunicationService resource. +""" + helps['communication chat message receipt list'] = """ type: command short-summary: "Gets read receipts of a chat thread." From cd30e1e2e9a912e84caf2e18b5312c8d70fff3fa Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 16 Aug 2022 03:13:05 -0700 Subject: [PATCH 24/26] [Communication] update test recordings --- .../recordings/test_chat_add_participant.yaml | 201 +++++++++++ .../test_chat_add_participant_bad_user.yaml | 194 +++++++++++ ...hat_add_participant_with_display_name.yaml | 202 ++++++++++++ ...hat_add_participant_with_history_time.yaml | 202 ++++++++++++ .../recordings/test_chat_create_thread.yaml | 26 +- ...test_chat_create_thread_without_topic.yaml | 12 +- .../recordings/test_chat_delete_message.yaml | 44 +-- .../recordings/test_chat_delete_thread.yaml | 36 +- .../recordings/test_chat_get_message.yaml | 48 +-- .../recordings/test_chat_list_messages.yaml | 56 ++-- .../test_chat_list_participants.yaml | 38 +-- ..._chat_list_participants_bad_thread_id.yaml | 22 +- .../test_chat_list_threads_no_endpoint.yaml | 12 +- ...t_chat_list_threads_with_cmdline_auth.yaml | 20 +- .../test_chat_list_threads_with_env_auth.yaml | 20 +- .../recordings/test_chat_read_receipts.yaml | 102 +++--- .../test_chat_remove_participants.yaml | 82 +++-- .../test_chat_send_html_message.yaml | 40 +-- .../recordings/test_chat_send_message.yaml | 44 ++- ...est_chat_send_message_without_content.yaml | 30 +- .../test_chat_send_text_message.yaml | 36 +- .../recordings/test_chat_update_message.yaml | 44 +-- .../recordings/test_chat_update_topic.yaml | 40 ++- .../test_communication_scenario.yaml | 136 ++++---- .../latest/recordings/test_create_user.yaml | 12 +- .../latest/recordings/test_delete_user.yaml | 20 +- .../recordings/test_issue_access_token.yaml | 12 +- .../test_issue_access_token_with_id.yaml | 26 +- ...sue_access_token_with_multiple_scopes.yaml | 12 +- .../recordings/test_list_phonenumbers.yaml | 108 +++--- .../recordings/test_phonenumber_list.yaml | 312 ++++++++++++++++++ .../recordings/test_phonenumber_show.yaml | 98 +++--- .../recordings/test_revoke_access_tokens.yaml | 20 +- .../latest/recordings/test_send_sms.yaml | 100 +++--- .../test_send_sms_n_recipients.yaml | 276 ++++++++-------- .../recordings/test_show_phonenumbers.yaml | 98 +++--- .../latest/recordings/test_sms_send.yaml | 110 +++--- .../test_sms_send_n_recipients.yaml | 288 ++++++++-------- .../latest/recordings/test_token_issue.yaml | 12 +- .../recordings/test_token_issue_with_id.yaml | 22 +- ...test_token_issue_with_multiple_scopes.yaml | 12 +- .../test_communication_scenario_coverage.md | 18 +- 42 files changed, 2162 insertions(+), 1081 deletions(-) create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml create mode 100644 src/communication/azext_communication/tests/latest/recordings/test_phonenumber_list.yaml diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml new file mode 100644 index 00000000000..d6a2f1326dc --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant.yaml @@ -0,0 +1,201 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:50:00 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:02.4106148+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, 16 Aug 2022 09:50:02 GMT + ms-cv: + - LsIStMJYHEarY2XXM8Rscw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T095002Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000hm2r + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:50:01 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:02.9481547+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, 16 Aug 2022 09:50:03 GMT + ms-cv: + - ZDXwchTQ0kuzz5DHfSUcvA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T095002Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000006ehu + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 126ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + repeatability-request-id: + - ce6eaa92-b047-49b7-a5e9-0a708cf21f5f + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-16T09:50:03Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:03 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3Asu9i_s8IXogihisX1C3q1cvIcYcJj-4d4MLhzNbVGus1@thread.v2 + ms-cv: + - k0FPjPB5rEqLYBZ40jT4hQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0S2j7YgAAAACOfhbXaANLToG2Dzi575PeWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 736ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:21fe0420-a046-426d-b99b-c089229ea1be_00000013-45f1-08bf-eef0-8b3a0d0003fe"}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:04 GMT + ms-cv: + - rJBLJ9il20+PZ/mOkRPtbg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0TGj7YgAAAABrI6O5f3jZSbgEDTx0OAuRWVZSMzBFREdFMDMxOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 259ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml new file mode 100644 index 00000000000..0e934fa81c8 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_bad_user.yaml @@ -0,0 +1,194 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:49:59 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:01.7960868+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, 16 Aug 2022 09:50:01 GMT + ms-cv: + - NFWG7AE5QU6Ft4Dpgrp08A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T095001Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg000000009xg7 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 120ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + repeatability-request-id: + - 3e8e8614-9b47-4033-8c52-8585877e2504 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-16T09:50:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:02 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AljMjuiP-Rqo10MByM7aOuQQ5nu2K3KuQuSfZegxgfkQ1@thread.v2 + ms-cv: + - 6YlBDJLdpUCYvjwlPGctLg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T095002Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000004v6e + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 649ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{"invalidParticipants": [{"code": "403", "message": "Permissions check + failed", "target": "8:acs:00000000-1111-2222-3333-444444444444_55555555-6666-7777-8888-999999999999"}]}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:02 GMT + ms-cv: + - bE+G+thWwEewZJ/G2XBK+w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0S2j7YgAAAAA860Xr7NzwSaWgnSaX78ZCWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 187ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:fakeid==="}}}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{"CommunicationError": {"Code": "BadRequest", "Message": "Identifier + format is invalid (8:acs:fakeid===).", "Details": []}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json + date: + - Tue, 16 Aug 2022 09:50:04 GMT + ms-cv: + - zCWTru5f1EukHH1ZGiCyOg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0TGj7YgAAAADeYbo/B6rxRK2DKtYIx0ktWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 22ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml new file mode 100644 index 00000000000..4187d4ce250 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_display_name.yaml @@ -0,0 +1,202 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:50:00 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:02.5804306+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, 16 Aug 2022 09:50:02 GMT + ms-cv: + - 5IR1txpU9UmZdcRxtA7tvw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T095002Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001wf7s + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 134ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + repeatability-request-id: + - 142afa66-5a01-4e85-b194-5fc6c2f8ca67 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-16T09:50:03Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:03 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3AceEGtwObpyj_D4rcZ5Z_gOgOaeaSshwWpfh9sMVRaVY1@thread.v2 + ms-cv: + - Gyx1qcpWLkuM2H8FWWLjeA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T095003Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000sb90 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 609ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:50:02 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:04.4487002+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:03 GMT + ms-cv: + - /G4MEVIsYUuUHQrV3s2Txg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0TGj7YgAAAABQDsFfJbtARpkqcf2bK1cOWVZSMzExMDAwMTE1MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 118ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:1e9c1c2c-188b-4297-8fa4-3dbfba303095_00000013-45f1-0e9b-69f0-553a0d00f6a2"}}, + "displayName": "John Doe"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '188' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:04 GMT + ms-cv: + - TUF1kTZUlEeqSFolR6Ao0g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0TGj7YgAAAAA1pHDWmDVISLfLLyXwFNBwWVZSMzExMDAwMTE1MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 258ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml new file mode 100644 index 00000000000..73b1e88fe18 --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_add_participant_with_history_time.yaml @@ -0,0 +1,202 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:49:59 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:02.0216826+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, 16 Aug 2022 09:50:02 GMT + ms-cv: + - uDksiHFSo06vgaJc6RFNOw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 20220816T095001Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000hkyu + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 129ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "chat-topic", "participants": []}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + repeatability-request-id: + - b8ef0319-b6b9-468f-98ba-a8cb667c6459 + method: POST + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 + response: + body: + string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": + "2022-08-16T09:50:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "communicationUser": {"id": "sanitized"}}}}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:03 GMT + location: + - https://clitest000002.communication.azure.com/chat/threads/19%3ArQd0sELNY_Lr9AoSEqBxSueAuyTbM95PBpVX2fmk6eU1@thread.v2 + ms-cv: + - FvHA0voBmEieCzWltEc7qg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T095002Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg000000000udf + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 581ms + status: + code: 201 + message: Created +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-date: + - Tue, 16 Aug 2022 09:50:01 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-17T09:50:03.7473547+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 + content-length: + - '122' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:03 GMT + ms-cv: + - J4+9N0ogDE2N0a+9GRmDzQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0S2j7YgAAAAAXgHv4f+H0SrhvE8Y1gm7jWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 125ms + status: + code: 201 + message: Created +- request: + body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": + "8:acs:092a556e-45a7-442e-b9c8-13d8ebc7eb22_00000013-45f1-0bde-80f5-8b3a0d00050d"}}, + "shareHistoryTime": "2022-01-01T00:00:00.000Z"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '209' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-09-07 + response: + body: + string: '{}' + headers: + api-supported-versions: + - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 09:50:04 GMT + ms-cv: + - KAGysEdKtEKrYhbmxptBNA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0TGj7YgAAAAAnkCLJzxCIQLfhLbdl+BYsWVZSMzBFREdFMDMwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 287ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml index c1e6f861d0b..014052760c8 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:29:30 GMT + - Tue, 16 Aug 2022 09:51:39 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:29:32.9375204+00:00"}}' + "expiresOn": "2022-08-17T09:51:41.0335374+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:33 GMT + - Tue, 16 Aug 2022 09:51:41 GMT ms-cv: - - dHn9VbINi0CSpEKs17eFjw.0 + - GCrO3CYuT0WYNHADLG/buQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082932Z-z5w8hfkph50p97tr7b7ay90rp000000000b0000000020e8s + - 20220816T095140Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003uk24 x-cache: - CONFIG_NOCACHE x-processing-time: - - 147ms + - 121ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 3ab99c6f-491f-4e74-a18d-c98313291560 + - de6dc945-909e-4c0a-a409-aef435da11a9 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-16T08:29:33Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:51:41Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:33 GMT + - Tue, 16 Aug 2022 09:51:41 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AlWSoi0HmANCoKYXvK2xIJ2gDBFfVV49ISaEENuIt9Rc1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3ACWpfIAXQ-_3pSieepXdJrozZgrUxFk3P0JiICWMvgrU1@thread.v2 ms-cv: - - khxnP/QPz0Klpo90LI9DLQ.0 + - R95zBVMqwUW2ngy7OQlwvg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T082933Z-z5w8hfkph50p97tr7b7ay90rp000000000a0000000034gnm + - 20220816T095141Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000dw4y x-cache: - CONFIG_NOCACHE x-processing-time: - - 514ms + - 540ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml index 039a42883b1..16499396840 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_create_thread_without_topic.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:29:30 GMT + - Tue, 16 Aug 2022 09:51:38 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:29:32.3868449+00:00"}}' + "expiresOn": "2022-08-17T09:51:40.6713674+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:32 GMT + - Tue, 16 Aug 2022 09:51:40 GMT ms-cv: - - ljoYO0UsTEqcwqYO3FnDcA.0 + - 5Ny5J6E0YkOTeeEEAFv7mA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082932Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001ashv + - 20220816T095140Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003h910 x-cache: - CONFIG_NOCACHE x-processing-time: - - 124ms + - 122ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml index 727970d0083..e9cb3fdbd2e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:29:31 GMT + - Tue, 16 Aug 2022 09:51:39 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:29:33.6215712+00:00"}}' + "expiresOn": "2022-08-17T09:51:41.3614457+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:33 GMT + - Tue, 16 Aug 2022 09:51:41 GMT ms-cv: - - C/HGAue5zkWAZOjjJRCffQ.0 + - NyjFi9QZEEODJ2ySiuwRrw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082933Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000032dpp + - 20220816T095141Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000t5e5 x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 123ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - c3744ea5-1784-411d-9a77-38ea443e69b8 + - 77d3a950-2cd9-4955-8df6-a43e26bec851 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-16T08:29:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:51:41Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:34 GMT + - Tue, 16 Aug 2022 09:51:42 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ArQOXMS2mWKx92ZUExb4M0KWEbNlCAdbnU53lyJkJLa01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AtQbRRrrppDZM7G-muao2C7Q45dspLlYV6gjzyad9yFc1@thread.v2 ms-cv: - - ZGpL72Bt9km8OHq0rjQVvA.0 + - UEP/MKqBJU6M2hGOXdksCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T082933Z-zvdmwacghh4c97ggppewnyshxn00000000e000000001rf0w + - 20220816T095141Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003uk83 x-cache: - CONFIG_NOCACHE x-processing-time: - - 821ms + - 421ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:35 GMT + - Tue, 16 Aug 2022 09:51:42 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ArQOXMS2mWKx92ZUExb4M0KWEbNlCAdbnU53lyJkJLa01@thread.v2/messages/1660638575163 + - https://clitest000002.communication.azure.com/chat/threads/19%3AtQbRRrrppDZM7G-muao2C7Q45dspLlYV6gjzyad9yFc1@thread.v2/messages/1660643502528 ms-cv: - - gvDCX4ek6kWFwu8aRuiODw.0 + - BuASyKpEyE2ZOwhcOYLjLg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T082935Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000032eb9 + - 20220816T095142Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000ketz x-cache: - CONFIG_NOCACHE x-processing-time: - - 188ms + - 204ms status: code: 201 message: Created @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:29:35 GMT + - Tue, 16 Aug 2022 09:51:43 GMT ms-cv: - - v98sQhXWYEOmudjE03lIDA.0 + - a1Xy1biKq06zzTBB3x0H6g.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082935Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002eee9 + - 20220816T095142Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg0000000045wt x-cache: - CONFIG_NOCACHE x-processing-time: - - 395ms + - 289ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml index aec92146c54..1eb6b2724d8 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_delete_thread.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:29:31 GMT + - Tue, 16 Aug 2022 09:51:38 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:29:33.718361+00:00"}}' + "expiresOn": "2022-08-17T09:51:40.8504947+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '121' + - '122' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:33 GMT + - Tue, 16 Aug 2022 09:51:40 GMT ms-cv: - - L2FxlzGliE69v1weVfIYfQ.0 + - 16j9c0qbeUeLe6oR5sh+Og.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082933Z-z5w8hfkph50p97tr7b7ay90rp000000000a0000000034gr0 + - 20220816T095140Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005g0000000011ptr x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 117ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - a503b687-3389-437d-9b99-129101a46f84 + - 9e94686e-d149-4e85-8b58-829b51c14763 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-16T08:29:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:51:41Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:29:34 GMT + - Tue, 16 Aug 2022 09:51:42 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aq6yQlPWVFa5iMLKPxOaIhUxjTL2kg0QnxYHxmqEm0C01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AegRS6dK60O9yYgN3WDWOe4LXHLInS3YRU96XF2qy3ME1@thread.v2 ms-cv: - - pgywX5U7PEWhYHOWTOg3uQ.0 + - mpFI5LJDOUC3q74/ITAdIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T082934Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000001nfh1 + - 20220816T095141Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001qn7y x-cache: - CONFIG_NOCACHE x-processing-time: - - 494ms + - 715ms status: code: 201 message: Created @@ -127,17 +127,17 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:29:35 GMT + - Tue, 16 Aug 2022 09:51:42 GMT ms-cv: - - n/WioeSgm0264NxHU5Yx3A.0 + - UANS+3WfV0662gMTvJTrxA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T082934Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000uub3 + - 20220816T095142Z-p18hf8s3dx4xf8cgexx53pe93400000000dg0000000031dn x-cache: - CONFIG_NOCACHE x-processing-time: - - 140ms + - 212ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml index 771c8e98c9a..b00ccf0e484 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_get_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:31:06 GMT + - Tue, 16 Aug 2022 09:53:15 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:31:08.2082199+00:00"}}' + "expiresOn": "2022-08-17T09:53:17.5785701+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:08 GMT + - Tue, 16 Aug 2022 09:53:17 GMT ms-cv: - - sRF6GNjSnkaSMcZqJYFSgA.0 + - wKCTnRoTJE+eqrCIlZ5dOA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083108Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000022ap1 + - 20220816T095317Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000001tq86 x-cache: - CONFIG_NOCACHE x-processing-time: - - 116ms + - 129ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - e0ccea5f-e9a0-40d4-a94b-941902c0f8b0 + - 0586b957-8d23-4a17-af78-5bc56fbfe392 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "new-topic", "createdOn": - "2022-08-16T08:31:08Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:53:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:09 GMT + - Tue, 16 Aug 2022 09:53:18 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASSg2xS4yLYyhoeQMcTnIcVr0mPEda7R6ZMB1Z_SuIAw1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AYpSWK-2APrqgddvgvjNAcjW6aOSLZ7maoNMiiaMvCC81@thread.v2 ms-cv: - - Dd9PJOgTk06vdw2jsPmhYA.0 + - cXon1FDq/EKUIW8xd0Ku4g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083108Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000vw6d + - 20220816T095317Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000008af7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 424ms + - 954ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:10 GMT + - Tue, 16 Aug 2022 09:53:19 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3ASSg2xS4yLYyhoeQMcTnIcVr0mPEda7R6ZMB1Z_SuIAw1@thread.v2/messages/1660638669878 + - https://clitest000002.communication.azure.com/chat/threads/19%3AYpSWK-2APrqgddvgvjNAcjW6aOSLZ7maoNMiiaMvCC81@thread.v2/messages/1660643599231 ms-cv: - - ez+9IoHOcEui8ESmkCeRpA.0 + - wHIksblXoUyCuKzGZ+aDtA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083109Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005fg00000000mcmx + - 20220816T095319Z-vucxhh51rx5mv27fvss3h7q1kc00000000f0000000000916 x-cache: - CONFIG_NOCACHE x-processing-time: - - 234ms + - 74ms status: code: 201 message: Created @@ -164,8 +164,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-09-07 response: body: - string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1660638669878", - "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-16T08:31:09Z", + string: '{"id": "sanitized", "type": "html", "sequenceId": "3", "version": "1660643599231", + "content": {"message": "hello!"}, "senderDisplayName": "", "createdOn": "2022-08-16T09:53:19Z", "senderCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}' headers: @@ -176,19 +176,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:10 GMT + - Tue, 16 Aug 2022 09:53:19 GMT ms-cv: - - f7Qs2rbCxUuuc3XkK3EfQQ.0 + - 59pWRFZDikavygUlK4QKEw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083110Z-z5w8hfkph50p97tr7b7ay90rp000000000c000000000qrvx + - 20220816T095319Z-hq6y7egy7x60fea7pte6x8g1v000000000eg00000000wtra x-cache: - CONFIG_NOCACHE x-processing-time: - - 189ms + - 136ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml index 3598acf136d..b304590c2d2 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_messages.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:32:44 GMT + - Tue, 16 Aug 2022 09:53:15 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:32:46.8509733+00:00"}}' + "expiresOn": "2022-08-17T09:53:17.3507748+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:46 GMT + - Tue, 16 Aug 2022 09:53:17 GMT ms-cv: - - EBt6BbzqjU+prHZdkCiz+Q.0 + - 5O/PwE13GE2Liz49rTkoPw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083246Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000034h66 + - 20220816T095316Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000001tq53 x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 123ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 8351a044-eb80-4847-a410-eb1fcc55ad31 + - 56b24df4-5527-45fb-9e43-bba3e0176378 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "another-topic", "createdOn": - "2022-08-16T08:32:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:53:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:48 GMT + - Tue, 16 Aug 2022 09:53:18 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AqopGHJkiPtZTq2-3i5XU2XiYHPzhmplyUKzJox9orus1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AeR_MnK1spkPX4RHB4F0fyxIQVXDP0tn97zwRZbsRnPA1@thread.v2 ms-cv: - - gQWWaxbLEke9zvGtio9YWQ.0 + - YtEJbR5NtEasHuNRDCB5Hg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083247Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005eg000000018my1 + - 20220816T095317Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002kyy1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 862ms + - 627ms status: code: 201 message: Created @@ -118,18 +118,18 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?startTime=2022-01-01T00%3A00%3A00.000Z&api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1660638767978", "type": "topicUpdated", "sequenceId": - "2", "version": "1660638767978", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", - "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}}, - "createdOn": "2022-08-16T08:32:47Z"}, {"id": "1660638767873", "type": "participantAdded", - "sequenceId": "1", "version": "1660638767873", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", - "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}, + string: '{"value": [{"id": "1660643598419", "type": "topicUpdated", "sequenceId": + "2", "version": "1660643598419", "content": {"topic": "another-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a", + "communicationUser": {"id": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a"}}}, + "createdOn": "2022-08-16T09:53:18Z"}, {"id": "1660643598335", "type": "participantAdded", + "sequenceId": "1", "version": "1660643598335", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a", + "communicationUser": {"id": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023", - "communicationUser": {"id": "8:acs:f4f2aa05-c3dd-40cd-b17e-209e1bb3dedb_00000013-45aa-4afd-defd-8b3a0d000023"}}}, - "createdOn": "2022-08-16T08:32:47Z"}]}' + {"rawId": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a", + "communicationUser": {"id": "8:acs:9e61d9f2-a2b3-4ab6-96e7-9985b8bf8dd9_00000013-45f4-0021-eef0-8b3a0d00046a"}}}, + "createdOn": "2022-08-16T09:53:18Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 @@ -138,19 +138,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:49 GMT + - Tue, 16 Aug 2022 09:53:19 GMT ms-cv: - - ZeSVeYAXTEOQAS1wifHSLA.0 + - ghCgc0nbM0uQl9liXllt6A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083248Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003yhfz + - 20220816T095318Z-z5w8hfkph50p97tr7b7ay90rp000000000a000000004vhzb x-cache: - CONFIG_NOCACHE x-processing-time: - - 318ms + - 28ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml index 051e08eeaef..469242e0878 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:31:06 GMT + - Tue, 16 Aug 2022 09:53:16 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:31:10.0058939+00:00"}}' + "expiresOn": "2022-08-17T09:53:18.3889107+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:09 GMT + - Tue, 16 Aug 2022 09:53:18 GMT ms-cv: - - D7bUD27U4UymhT0vIJpRoQ.0 + - VOiGUHi9KEWbhRtJWyMwCw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083108Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000eh0e + - 20220816T095318Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002kz18 x-cache: - CONFIG_NOCACHE x-processing-time: - - 124ms + - 120ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 362a0e92-b065-433f-8806-c168e46ef61f + - 88b8134f-630e-43d1-8c2b-49296df38403 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-topic", "createdOn": - "2022-08-16T08:31:09Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:53:18Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:09 GMT + - Tue, 16 Aug 2022 09:53:19 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A4pvH_xQgUZDtazSxLExr6FSd3veT1Vn_hMRwjuantcE1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A449sxqeIou_ORX2gyq6OroB61HEeGi3ptNJZnF3njbc1@thread.v2 ms-cv: - - esZg5hfzpki0ctz9t9fLtA.0 + - vWSbzNLGZU22eWwGkJCfKQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083109Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003xm6v + - 20220816T095318Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000006452 x-cache: - CONFIG_NOCACHE x-processing-time: - - 446ms + - 574ms status: code: 201 message: Created @@ -118,8 +118,8 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?api-version=2021-09-07 response: body: - string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:a4a152e4-675b-4bf6-af7d-4517f57291ec_00000013-45a8-ccc8-80f5-8b3a0d00fd4e", - "communicationUser": {"id": "8:acs:a4a152e4-675b-4bf6-af7d-4517f57291ec_00000013-45a8-ccc8-80f5-8b3a0d00fd4e"}}, + string: '{"value": [{"communicationIdentifier": {"rawId": "8:acs:f22dc9a9-f255-4ae4-9d06-eac091136190_00000013-45f4-042e-7bfa-553a0d00f6a5", + "communicationUser": {"id": "8:acs:f22dc9a9-f255-4ae4-9d06-eac091136190_00000013-45f4-042e-7bfa-553a0d00f6a5"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}]}' headers: api-supported-versions: @@ -129,19 +129,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:10 GMT + - Tue, 16 Aug 2022 09:53:20 GMT ms-cv: - - kWCAWpWN5U2VIsw/2QkG7w.0 + - E3DqbBJXPE+eaZEXVavEqw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083110Z-hq6y7egy7x60fea7pte6x8g1v000000000b000000003grwy + - 20220816T095319Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002fd4g x-cache: - CONFIG_NOCACHE x-processing-time: - - 111ms + - 154ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml index ba74b6f2e31..18930f8398d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_participants_bad_thread_id.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:32:44 GMT + - Tue, 16 Aug 2022 09:54:54 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:32:46.3564709+00:00"}}' + "expiresOn": "2022-08-17T09:54:56.713839+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,23 +33,23 @@ interactions: connection: - keep-alive content-length: - - '122' + - '121' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:46 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - 8/MTx6wWAEuliZDQmLzTWQ.0 + - d/3LsMaHt0up/aU5x/2K6w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083246Z-hq6y7egy7x60fea7pte6x8g1v000000000a000000004bhz7 + - 20220816T095456Z-pvk0k4gqx51st0bh1fssf7cw3000000005gg00000000d6qh x-cache: - CONFIG_NOCACHE x-processing-time: - - 129ms + - 127ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json date: - - Tue, 16 Aug 2022 08:32:47 GMT + - Tue, 16 Aug 2022 09:54:57 GMT ms-cv: - - s+lMRJ2YdkuArqq2+xbkvw.0 + - wKr9IFGVWk6uOmT+A81urQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083246Z-pvk0k4gqx51st0bh1fssf7cw3000000005eg00000000vuq1 + - 20220816T095457Z-hq6y7egy7x60fea7pte6x8g1v000000000e0000000016ngp x-cache: - CONFIG_NOCACHE x-processing-time: - - 395ms + - 258ms status: code: 400 message: Bad Request diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml index a922e3030e5..7e901979e42 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_no_endpoint.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:31:07 GMT + - Tue, 16 Aug 2022 09:53:18 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:31:09.6726574+00:00"}}' + "expiresOn": "2022-08-17T09:53:20.4727917+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:09 GMT + - Tue, 16 Aug 2022 09:53:20 GMT ms-cv: - - m47lZ4y6FE6GKBU6Bz2b3Q.0 + - 7w+wrtryu0OJEGkvD8piwA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083109Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000033ha6 + - 20220816T095320Z-vucxhh51rx5mv27fvss3h7q1kc00000000f000000000096b x-cache: - CONFIG_NOCACHE x-processing-time: - - 132ms + - 127ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml index 1ed2201075f..87f5e89a9b2 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_cmdline_auth.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:31:08 GMT + - Tue, 16 Aug 2022 09:54:54 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:31:10.4492954+00:00"}}' + "expiresOn": "2022-08-17T09:54:56.4513822+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:10 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - qY6AwFLyDUaMkRIjfx13hg.0 + - ZAil2r8C90WbyKJ4C8dqxQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083110Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001arg0 + - 20220816T095456Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000n45n x-cache: - CONFIG_NOCACHE x-processing-time: - - 122ms + - 118ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:31:10 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - 2pC1lQpMQkCH8Bk2Jl3R5A.0 + - qKwCz2ppTEySjAqsWGleEA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083110Z-z5w8hfkph50p97tr7b7ay90rp000000000c000000000qrxb + - 20220816T095456Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000esxg x-cache: - CONFIG_NOCACHE x-processing-time: - - 89ms + - 76ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml index 31cc1e6155f..30eabf8f4b4 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_list_threads_with_env_auth.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:32:43 GMT + - Tue, 16 Aug 2022 09:54:54 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:32:45.6199857+00:00"}}' + "expiresOn": "2022-08-17T09:54:56.4613628+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:45 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - pBCdBcUIVES2+vo9fKBtdA.0 + - 6cTtFagLx0auBFbZP6nS9Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083245Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001bvyc + - 20220816T095456Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002mst9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 131ms + - 118ms status: code: 201 message: Created @@ -77,19 +77,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:46 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - DOY1sKA810+pY3rfw+pmOg.0 + - ebc36xJAdECr/KD2QhyA2Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083245Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000034gy9 + - 20220816T095456Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003w0tc x-cache: - CONFIG_NOCACHE x-processing-time: - - 16ms + - 15ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml index 8a41e1b4c19..33a71b967d6 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_read_receipts.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:32:44 GMT + - Tue, 16 Aug 2022 09:56:30 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:32:46.8007556+00:00"}}' + "expiresOn": "2022-08-17T09:56:32.6055699+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, 16 Aug 2022 08:32:46 GMT + - Tue, 16 Aug 2022 09:56:31 GMT ms-cv: - - vpOMNlIhTk6GdgKAP2f9Hw.0 + - 2qF8WwwPiEyV+0T+R6tJew.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083246Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000wzv3 + - 00Gn7YgAAAAApg/79iVAtQ4kDSIFn4NkuWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 123ms + - 117ms status: code: 201 message: Created @@ -69,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 1db7378d-20b0-47f3-9017-a595ac6d4739 + - 3ad13b1d-2bb9-452d-8616-22cd5374f49d method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-16T08:32:47Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:56:33Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:47 GMT + - Tue, 16 Aug 2022 09:56:33 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A8-wboRz56hQpYW6AUU_6jYyQFR-6viB0BFjfjePfsko1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AYnwEAcQrBLxuoUH2EoLEHvC50E8KOl7B-Kx_QYEyhdA1@thread.v2 ms-cv: - - usJk/EwLo0KKe+NT/4UPaA.0 + - /8iVVjuG4kSUg9MUI5xM0A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083247Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002pu5q + - 00Wn7YgAAAACGRD6ctCT6S5q2bICQWa3jWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 658ms + - 808ms status: code: 201 message: Created @@ -122,24 +118,22 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:48 GMT + - Tue, 16 Aug 2022 09:56:33 GMT ms-cv: - - xt3bNGfwJkyPQAKLcWT7XA.0 + - patqpvvZlEq1obwUk5FoLA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083248Z-hq6y7egy7x60fea7pte6x8g1v000000000b000000003hhmr + - 00mn7YgAAAAAc6nR7XO+PSp80Ql76yI0HWVZSMzBFREdFMDMxOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 186ms + - 104ms status: code: 200 message: OK @@ -158,44 +152,42 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-09-07 response: body: - string: '{"value": [{"id": "1660638767579", "type": "topicUpdated", "sequenceId": - "2", "version": "1660638767579", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": - {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", - "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}}, - "createdOn": "2022-08-16T08:32:47Z"}, {"id": "1660638767549", "type": "participantAdded", - "sequenceId": "1", "version": "1660638767549", "content": {"participants": - [{"communicationIdentifier": {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", - "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}, + string: '{"value": [{"id": "1660643793543", "type": "topicUpdated", "sequenceId": + "2", "version": "1660643793543", "content": {"topic": "thread-topic", "initiatorCommunicationIdentifier": + {"rawId": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5", + "communicationUser": {"id": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5"}}}, + "createdOn": "2022-08-16T09:56:33Z"}, {"id": "1660643793453", "type": "participantAdded", + "sequenceId": "1", "version": "1660643793453", "content": {"participants": + [{"communicationIdentifier": {"rawId": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5", + "communicationUser": {"id": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5"}}, "shareHistoryTime": "1970-01-01T00:00:00Z"}], "initiatorCommunicationIdentifier": - {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", - "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}}, - "createdOn": "2022-08-16T08:32:47Z"}]}' + {"rawId": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5", + "communicationUser": {"id": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5"}}}, + "createdOn": "2022-08-16T09:56:33Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:48 GMT + - Tue, 16 Aug 2022 09:56:34 GMT ms-cv: - - rxdZEmZfM0ynEysV/g7/8A.0 + - hp/6FEnkEEKEV15ioPMxqg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083248Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000vpg3 + - 00mn7YgAAAACvZwUhVxemQoCcuZ7Uh1DnWVZSMzBFREdFMDMxOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 101ms + - 96ms status: code: 200 message: OK - request: - body: '{"chatMessageId": "1660638767579"}' + body: '{"chatMessageId": "1660643793543"}' headers: Accept: - application/json @@ -215,26 +207,22 @@ interactions: body: string: '' headers: - accept-ranges: - - bytes api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 08:32:49 GMT + - Tue, 16 Aug 2022 09:56:35 GMT ms-cv: - - bQRTQ19m+0+RGco2YlDJ1w.0 + - gycFj9htB02cAonpPu5s3Q.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083248Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002g7kx + - 002n7YgAAAACOFKoAah90RbsJyEY6xHrXWVZSMzExMDAwMTE1MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 285ms status: code: 200 message: OK @@ -253,30 +241,28 @@ interactions: uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-09-07 response: body: - string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0", - "communicationUser": {"id": "8:acs:29545e00-e5e3-4956-b844-6d59bae7b4ad_00000013-45aa-4acc-80f5-8b3a0d00fda0"}}, - "chatMessageId": "1660638767579", "readOn": "2022-08-16T08:32:49Z"}]}' + string: '{"value": [{"senderCommunicationIdentifier": {"rawId": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5", + "communicationUser": {"id": "8:acs:a5b1eb40-a0fe-45c8-b179-6c19dcc695b3_00000013-45f6-fad8-92fd-8b3a0d0020f5"}}, + "chatMessageId": "1660643793543", "readOn": "2022-08-16T09:56:35Z"}]}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:32:49 GMT + - Tue, 16 Aug 2022 09:56:36 GMT ms-cv: - - CLDyhU/NbkqOIbOutvu7Qg.0 + - ddcLSXpDCUiX2TgMRTwIYA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083249Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002pv30 + - 01Gn7YgAAAACL4l0gp8X2SbBdec9DzneMWVZSMzBFREdFMDMyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 40ms + - 89ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml index a3d804b0565..d4745dd0ad5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_remove_participants.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:34:19 GMT + - Tue, 16 Aug 2022 09:54:53 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:34:21.5040849+00:00"}}' + "expiresOn": "2022-08-17T09:54:55.2124074+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:21 GMT + - Tue, 16 Aug 2022 09:54:55 GMT ms-cv: - - XsD3E87Xj02XyHT730ekRQ.0 + - 1e2ARk5CzkavIacmvZV8QA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083421Z-pvk0k4gqx51st0bh1fssf7cw3000000005fg00000000b6rn + - 20220816T095455Z-vucxhh51rx5mv27fvss3h7q1kc00000000f0000000001azg x-cache: - CONFIG_NOCACHE x-processing-time: - - 123ms + - 121ms status: code: 201 message: Created @@ -71,7 +71,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:34:20 GMT + - Tue, 16 Aug 2022 09:54:53 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -79,7 +79,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:34:21.9553078+00:00"}}' + "expiresOn": "2022-08-17T09:54:55.9111206+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:22 GMT + - Tue, 16 Aug 2022 09:54:56 GMT ms-cv: - - mkw7am7jM0OW9x2HxWEmjA.0 + - fPG1ZCPHlEWnq0qmqlEcOg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083421Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000000v7ug + - 20220816T095455Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002gfd4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 153ms + - 125ms status: code: 201 message: Created @@ -123,13 +123,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - a6c1b67c-b3a8-473b-8c12-107e35bc98a5 + - 6577625c-c22d-47a1-b5e1-67e4f0abf778 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "chat-topic", "createdOn": - "2022-08-16T08:34:22Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:54:56Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -139,27 +139,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:23 GMT + - Tue, 16 Aug 2022 09:54:57 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AbVICk3QHBP8Y97cNmMUrTjnoQjQaPFfap_apoXX_t1E1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A0snpJQWLgaXIQhZGbGG15TyCyRxNq_P_YpJvXq_HG041@thread.v2 ms-cv: - - ihfroSSoZ0OTLuYrOAOa1A.0 + - xUqHu94oUkqwBd5nfOGiYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083422Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000g22r + - 20220816T095456Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000009834 x-cache: - CONFIG_NOCACHE x-processing-time: - - 640ms + - 656ms status: code: 201 message: Created - request: body: '{"participants": [{"communicationIdentifier": {"communicationUser": {"id": - "8:acs:42ed238b-cdf2-4be3-91f1-7c0d30789910_00000013-45ab-be7e-1252-573a0d00f7dd"}}}]}' + "8:acs:f9b74cf9-a58c-44f7-ab39-fe64b20bf5cf_00000013-45f5-8121-fa5d-573a0d000086"}}}]}' headers: Accept: - application/json @@ -186,19 +186,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:23 GMT + - Tue, 16 Aug 2022 09:54:57 GMT ms-cv: - - yedYG9LzAU2i5G16bRCr3w.0 + - U3ufTcXZaUmzg+QHBZ8b8A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083423Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000018f2g + - 20220816T095457Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000bgcy x-cache: - CONFIG_NOCACHE x-processing-time: - - 257ms + - 317ms status: code: 201 message: Created @@ -228,17 +228,17 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:34:24 GMT + - Tue, 16 Aug 2022 09:54:58 GMT ms-cv: - - Yyy59k7DHESdLkSA9WCV9A.0 + - +OzGDyKRxka+AvhDJGH6WQ.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083424Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000002qvva + - 20220816T095457Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002gg3g x-cache: - CONFIG_NOCACHE x-processing-time: - - 207ms + - 234ms status: code: 204 message: No Content @@ -266,24 +266,22 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json date: - - Tue, 16 Aug 2022 08:34:24 GMT + - Tue, 16 Aug 2022 09:54:58 GMT ms-cv: - - wkTeR2HOmEyim+sRSrslkw.0 + - uT5bpxfzskmGLH+Y5l9zsA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083424Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002h5wy + - 0c2n7YgAAAAAKOMN67D21TppHJBcNQV5HWVZSMzBFREdFMDMxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= x-cache: - CONFIG_NOCACHE x-processing-time: - - 3ms + - 20ms status: code: 400 message: Bad Request @@ -313,17 +311,17 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:34:25 GMT + - Tue, 16 Aug 2022 09:54:59 GMT ms-cv: - - lSoNXDVnyUSCWN5Tmr9HwQ.0 + - BW0i3uP5WEGCmaWWxIwdhg.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083424Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001c8hc + - 20220816T095459Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000029sw0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 263ms + - 154ms status: code: 204 message: No Content @@ -357,19 +355,19 @@ interactions: content-type: - application/json date: - - Tue, 16 Aug 2022 08:34:25 GMT + - Tue, 16 Aug 2022 09:55:00 GMT ms-cv: - - 9T0l1rIkLky94Jbvr9pe0g.0 + - LrdvqCI0tkymfAcxHU4RMQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083425Z-hq6y7egy7x60fea7pte6x8g1v000000000bg00000002zmb6 + - 20220816T095500Z-vucxhh51rx5mv27fvss3h7q1kc00000000f0000000000t05 x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 208ms status: code: 403 message: Forbidden diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml index 56ca21666c7..4ac9d894b29 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_html_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:34:23 GMT + - Tue, 16 Aug 2022 09:56:34 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:34:24.9758944+00:00"}}' + "expiresOn": "2022-08-17T09:56:36.0751528+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, 16 Aug 2022 08:34:25 GMT + - Tue, 16 Aug 2022 09:56:35 GMT ms-cv: - - C6H2XDZ/4Um03Tj4TYc9/A.0 + - hHK2tVfO1kaGj/iJqI7D8A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083424Z-hq6y7egy7x60fea7pte6x8g1v000000000c0000000027twy + - 002n7YgAAAACa9/AdSTt2SI+y4z4wj2ORWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 115ms status: code: 201 message: Created @@ -69,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - e0d83c05-5b3a-493e-be33-f13f75d0fd91 + - 04f06161-cbc2-498e-8978-719b48a7688b method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-16T08:34:25Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:56:36Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:26 GMT + - Tue, 16 Aug 2022 09:56:36 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aj3L3TDgL0NVcFf1KB8WYAkMMnRl5WyURTlSnS_wjTm41@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3A0okX6AgAN72fC3WOouWhETNJ7jAv6WW-aP4bGk7kI581@thread.v2 ms-cv: - - o0ovaG0LdEaG4ZEbb2woSQ.0 + - neIv9yJv20SnNlogTeyVWw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083425Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000g2vn + - 01Gn7YgAAAAA6zi5fJ8fxT4M+XvIVKfryWVZSMzExMDAwMTE1MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 797ms + - 602ms status: code: 201 message: Created @@ -131,21 +127,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:26 GMT + - Tue, 16 Aug 2022 09:56:37 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Aj3L3TDgL0NVcFf1KB8WYAkMMnRl5WyURTlSnS_wjTm41@thread.v2/messages/1660638866680 + - https://clitest000002.communication.azure.com/chat/threads/19%3A0okX6AgAN72fC3WOouWhETNJ7jAv6WW-aP4bGk7kI581@thread.v2/messages/1660643797824 ms-cv: - - /Qr2KxXI8UKVrslNRf0IPA.0 + - qwdDxhXhDU6tuhI1kVo1Kw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083426Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000024548 + - 20220816T095637Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg000000013hyd x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 204ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml index 687260eccbb..3c5df4af0a5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:33:56 GMT + - Tue, 16 Aug 2022 09:56:31 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:33:58.5480212+00:00"}}' + "expiresOn": "2022-08-17T09:56:33.569662+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, 16 Aug 2022 08:33:58 GMT + - Tue, 16 Aug 2022 09:56:32 GMT ms-cv: - - dM6ewS1eNkGW3cWuW6ryQQ.0 + - 5PyTHTAtEUSLiD9fE043zQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083358Z-z5w8hfkph50p97tr7b7ay90rp000000000b0000000022p36 + - 00Wn7YgAAAACm9EQeTIltQL4vOSuTeTCCWVZSMzExMDAwMTE2MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 116ms status: code: 201 message: Created @@ -69,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - bef44c37-31e0-4b28-9a71-53978d429b81 + - e177dda7-bcdb-4310-a743-56bb0b6ff940 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "some-other-topic", "createdOn": - "2022-08-16T08:33:59Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:56:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:33:59 GMT + - Tue, 16 Aug 2022 09:56:34 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AjZZQTGa4Opu_FOUKBPUQDs0PNo0rgpUgzwFd1_AEsWA1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVIBwC5MylRkJ0MF_NzexafZa4SFDGcZ0O46chAPlmjc1@thread.v2 ms-cv: - - RL/kGdnDrE2xyKMJOwJjZg.0 + - /0lGAQx5/ESgf4QAcQJ1Vw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083358Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001c1c8 + - 00mn7YgAAAAC+Pr4+qA69S7fO3od6lEZLWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 482ms + - 518ms status: code: 201 message: Created @@ -126,26 +122,24 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:33:59 GMT + - Tue, 16 Aug 2022 09:56:35 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3AjZZQTGa4Opu_FOUKBPUQDs0PNo0rgpUgzwFd1_AEsWA1@thread.v2/messages/1660638839821 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVIBwC5MylRkJ0MF_NzexafZa4SFDGcZ0O46chAPlmjc1@thread.v2/messages/1660643795886 ms-cv: - - 0OcX6wlpXEuygUBkINQg+A.0 + - 5pLrUasYZUO1raMHFAUgtQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083359Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002gxss + - 002n7YgAAAAAZ6lUSFkNqSayAa+TUpCy/WVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 129ms + - 316ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml index d121077ae4b..0e49a31743a 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_message_without_content.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:34:22 GMT + - Tue, 16 Aug 2022 09:56:30 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,31 +25,29 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:34:24.5521884+00:00"}}' + "expiresOn": "2022-08-17T09:56:33.1031918+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, 16 Aug 2022 08:34:24 GMT + - Tue, 16 Aug 2022 09:56:33 GMT ms-cv: - - w6XOfGvQ40qM648RqXLqBw.0 + - 3KP78okLO0OC8TyVUlQAAw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083424Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000035fet + - 00Gn7YgAAAAApG/zgd+93T5ObTlTjuJkqWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 128ms + - 135ms status: code: 201 message: Created @@ -69,37 +67,35 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 18a601c4-c355-4750-82ba-53fcf684acad + - 4db676e7-1ecc-4d64-861d-95428c0ef112 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-16T08:34:25Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:56:34Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:34:25 GMT + - Tue, 16 Aug 2022 09:56:34 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A_pQl8zfChZvYdRi0LFmMpXcR4KwOoxamBNh7M6YmIw01@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AwvrzYN4EccwlJH6HQ0Jom4CMLMxvWVXk_LAKLZF0_go1@thread.v2 ms-cv: - - g5SjE3Ms+kWQEhBVa0Y4cQ.0 + - uPgzGXzew06HPsIfRtsOPg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083424Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000003zcp8 + - 00Wn7YgAAAABqJtBJ2SNFQIVYTh6IhQx3WVZSMzExMDAwMTE2MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 737ms + - 707ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml index 31b663d3b6c..b8c812b8ca5 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_send_text_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:36:05 GMT + - Tue, 16 Aug 2022 09:58:12 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:36:07.2549499+00:00"}}' + "expiresOn": "2022-08-17T09:58:14.4875694+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:36:07 GMT + - Tue, 16 Aug 2022 09:58:14 GMT ms-cv: - - 4HkeSq4OVEya3y/ARmSUTg.0 + - qDPbFi35YUKYM40AHhYnQQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083607Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000002k369 + - 20220816T095814Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000036ffq x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 129ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - fab9c049-0ffc-4bc0-b8e1-ee000881a8e5 + - e17a6379-b56d-41e7-95c0-fd8accb64032 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "yet-another-topic", "createdOn": - "2022-08-16T08:36:07Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:58:15Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:36:08 GMT + - Tue, 16 Aug 2022 09:58:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3APn9YTlNZg7v0RpeTIGZziby0Ap7MQKs1SQj1VMWRhUo1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVOlNrrSfAnvUlIbV_ET8nzaR_UcryeMdAq_lLxj9XzM1@thread.v2 ms-cv: - - twTjlPHzR0O8mzyxqgCxMQ.0 + - N7Zs5jKM80O8BoRCouMuuw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083607Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000z5ac + - 20220816T095814Z-z5w8hfkph50p97tr7b7ay90rp000000000c000000000xfez x-cache: - CONFIG_NOCACHE x-processing-time: - - 590ms + - 550ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:36:09 GMT + - Tue, 16 Aug 2022 09:58:15 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3APn9YTlNZg7v0RpeTIGZziby0Ap7MQKs1SQj1VMWRhUo1@thread.v2/messages/1660638968966 + - https://clitest000002.communication.azure.com/chat/threads/19%3AVOlNrrSfAnvUlIbV_ET8nzaR_UcryeMdAq_lLxj9XzM1@thread.v2/messages/1660643895843 ms-cv: - - p1I7QYHih0GMb5wroiKLxw.0 + - VSs+IufIMkKjw1sWgNMPHQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083608Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000ws54 + - 20220816T095815Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000001hdy1 x-cache: - CONFIG_NOCACHE x-processing-time: - - 171ms + - 199ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml index d92d2357436..aeeca3989c9 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_message.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:35:33 GMT + - Tue, 16 Aug 2022 09:58:09 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:35:35.2475197+00:00"}}' + "expiresOn": "2022-08-17T09:58:11.6025564+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:35:35 GMT + - Tue, 16 Aug 2022 09:58:11 GMT ms-cv: - - OyYIS9CvZU2DQDWnp/+5lA.0 + - WhtDLr1jiE+FNCYSlW59Mg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083535Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000000zax9 + - 20220816T095811Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002kf3k x-cache: - CONFIG_NOCACHE x-processing-time: - - 235ms + - 124ms status: code: 201 message: Created @@ -69,13 +69,13 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 5690fb79-a9a1-414b-bd8f-57b7eb6a4f15 + - 28941290-0794-4d06-9e83-84ce0d30524a method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-16T08:35:35Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:58:12Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: @@ -85,21 +85,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:35:36 GMT + - Tue, 16 Aug 2022 09:58:12 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A8vkXkeRckOP1o5lbyTws2D8eizVr_YJZlFGGwRgauAo1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AyYLxTMKym5r9y97eVGBfWj2duAUU0GPmB2AorxyFhLE1@thread.v2 ms-cv: - - Hax46/2CNkOtfyk0r7gYRg.0 + - W6KiMLoc60aImqPJYn8kww.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083535Z-pvk0k4gqx51st0bh1fssf7cw3000000005f000000000gmsh + - 20220816T095811Z-hq6y7egy7x60fea7pte6x8g1v000000000f000000000qax4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 281ms + - 427ms status: code: 201 message: Created @@ -131,21 +131,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:35:36 GMT + - Tue, 16 Aug 2022 09:58:13 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3A8vkXkeRckOP1o5lbyTws2D8eizVr_YJZlFGGwRgauAo1@thread.v2/messages/1660638936700 + - https://clitest000002.communication.azure.com/chat/threads/19%3AyYLxTMKym5r9y97eVGBfWj2duAUU0GPmB2AorxyFhLE1@thread.v2/messages/1660643892983 ms-cv: - - qUQOACQHlUGCf9a3G7o1CA.0 + - jHpTJiXnJ0uBxr8kC/41FA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T083536Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000000yubv + - 20220816T095812Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005g0000000013gyh x-cache: - CONFIG_NOCACHE x-processing-time: - - 190ms + - 167ms status: code: 201 message: Created @@ -175,17 +175,17 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:35:37 GMT + - Tue, 16 Aug 2022 09:58:14 GMT ms-cv: - - SJTmnxePCkOyTcsewjMMbA.0 + - /D3SPjovbEqwrOxa95leXQ.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083537Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000016437 + - 20220816T095813Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000vcea x-cache: - CONFIG_NOCACHE x-processing-time: - - 343ms + - 426ms status: code: 204 message: No Content diff --git a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml index 4b55f84e034..edcdba66d68 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_chat_update_topic.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:35:59 GMT + - Tue, 16 Aug 2022 09:58:10 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,29 +25,31 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:36:01.3239909+00:00"}}' + "expiresOn": "2022-08-17T09:58:12.5511397+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, 16 Aug 2022 08:36:00 GMT + - Tue, 16 Aug 2022 09:58:12 GMT ms-cv: - - lUNbtDGhs0y2lJ+tIfIy2w.0 + - UhGgTN6ClUOU3hL8rLBUug.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 08Fb7YgAAAAA7JN6+jm5DSLM1gN6GuoPGWVZSMzExMDAwMTE2MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T095812Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003xdwg x-cache: - CONFIG_NOCACHE x-processing-time: - - 126ms + - 122ms status: code: 201 message: Created @@ -67,35 +69,37 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) repeatability-request-id: - - 6dbcb132-e0b6-4297-b8b9-e21630322244 + - 0f20495d-09b0-4eb1-8891-9a9a0f0fb375 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-09-07 response: body: string: '{"chatThread": {"id": "sanitized", "topic": "thread-topic", "createdOn": - "2022-08-16T08:36:02Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", + "2022-08-16T09:58:13Z", "createdByCommunicationIdentifier": {"rawId": "sanitized", "communicationUser": {"id": "sanitized"}}}}' headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:36:02 GMT + - Tue, 16 Aug 2022 09:58:13 GMT location: - - https://clitest000002.communication.azure.com/chat/threads/19%3Akc6Nc3HOi0cE3HNVGYpeZQ7lBT6tUKJMMZS2Me6qk6E1@thread.v2 + - https://clitest000002.communication.azure.com/chat/threads/19%3AGPmfjMrE_Mrn6CRNZzBhBA9I2jpjZ_xUxRCUViQ0Ocw1@thread.v2 ms-cv: - - z3Ne2E6Cf0CvELr09z5ZWg.0 + - yO//0djuG0q7iDCOtmg/wA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 08Vb7YgAAAACRSUnjhJkqS48kIk/UDhlQWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T095812Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000pm1k x-cache: - CONFIG_NOCACHE x-processing-time: - - 661ms + - 960ms status: code: 201 message: Created @@ -122,18 +126,20 @@ interactions: headers: api-supported-versions: - 2021-03-07, 2021-04-05-preview6, 2021-09-07, 2022-11-15-preview8 + connection: + - keep-alive date: - - Tue, 16 Aug 2022 08:36:02 GMT + - Tue, 16 Aug 2022 09:58:14 GMT ms-cv: - - 1zJMm7rsekK3rC5XnF6JiA.0 + - zajFbVGk30CrsPoquNO+FA.0 strict-transport-security: - max-age=2592000 x-azure-ref: - - 08lb7YgAAAACtU4j/uGaRSJDDJTDyjnDfWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T095814Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001sx2s x-cache: - CONFIG_NOCACHE x-processing-time: - - 131ms + - 243ms status: code: 204 message: No Content 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 7e2826c2f3e..3835fe4616d 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 @@ -22,21 +22,21 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"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/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 cache-control: - no-cache content-length: - - '576' + - '578' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:37:50 GMT + - Tue, 16 Aug 2022 10:04:19 GMT etag: - - '"00000a29-0000-0700-0000-62fb575e0000"' + - '"00004039-0000-0700-0000-62fb6ba40000"' expires: - '-1' pragma: @@ -70,10 +70,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T08:37:50.4950262Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T10:04:20.2079751Z"}' headers: cache-control: - no-cache @@ -82,9 +82,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:38:20 GMT + - Tue, 16 Aug 2022 10:04:50 GMT etag: - - '"0400cc1d-0000-0800-0000-62fb575e0000"' + - '"4b002074-0000-0800-0000-62fb6ba40000"' expires: - '-1' pragma: @@ -116,10 +116,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T08:37:50.4950262Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-08-16T10:04:20.2079751Z"}' headers: cache-control: - no-cache @@ -128,9 +128,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:38:50 GMT + - Tue, 16 Aug 2022 10:05:20 GMT etag: - - '"0400cc1d-0000-0800-0000-62fb575e0000"' + - '"4b002074-0000-0800-0000-62fb6ba40000"' expires: - '-1' pragma: @@ -162,10 +162,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6649de1a-2efc-40fa-953e-00b5a30c654e*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:37:50.4950262Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"54c4181e-f238-4f84-8db1-fc9f7778eaa2*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T10:04:20.2079751Z","properties":null}' headers: cache-control: - no-cache @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:20 GMT + - Tue, 16 Aug 2022 10:05:50 GMT etag: - - '"0400f61f-0000-0800-0000-62fb57a00000"' + - '"170019b2-0000-0100-0000-62fb6be60000"' expires: - '-1' pragma: @@ -211,19 +211,19 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:20 GMT + - Tue, 16 Aug 2022 10:05:50 GMT etag: - - '"00001929-0000-0700-0000-62fb57650000"' + - '"00007339-0000-0700-0000-62fb6bab0000"' expires: - '-1' pragma: @@ -260,19 +260,19 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:21 GMT + - Tue, 16 Aug 2022 10:05:51 GMT etag: - - '"00001929-0000-0700-0000-62fb57650000"' + - '"00007339-0000-0700-0000-62fb6bab0000"' expires: - '-1' pragma: @@ -309,19 +309,19 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States"}}' headers: cache-control: - no-cache content-length: - - '699' + - '701' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:21 GMT + - Tue, 16 Aug 2022 10:05:51 GMT etag: - - '"00001929-0000-0700-0000-62fb57650000"' + - '"00007339-0000-0700-0000-62fb6bab0000"' expires: - '-1' pragma: @@ -358,17 +358,17 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '711' + - '713' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:22 GMT + - Tue, 16 Aug 2022 10:05:51 GMT expires: - '-1' pragma: @@ -405,17 +405,17 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:37:49.278111Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:04:19.6406836Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States"}}]}' headers: cache-control: - no-cache content-length: - - '711' + - '713' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:22 GMT + - Tue, 16 Aug 2022 10:05:52 GMT expires: - '-1' pragma: @@ -456,19 +456,19 @@ interactions: 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-08-16T08:37:49.278111Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T08:39:23.8146107Z"},"properties":{"hostName":"mycommunicauct352bvjp77.communication.azure.com","immutableResourceId":"a9610ecb-e09c-4dde-a1b2-97f11119c5f7","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":"sanitized@microsoft.com","createdByType":"User","createdAt":"2022-08-16T10:04:19.6406836Z","lastModifiedBy":"sanitized@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-16T10:05:53.3716978Z"},"properties":{"hostName":"mycommunicas4i5mkqz3v7l.communication.azure.com","immutableResourceId":"57b92965-9359-451b-a4a8-e5d99fefec14","dataLocation":"United States","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '727' + - '728' content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:24 GMT + - Tue, 16 Aug 2022 10:05:53 GMT etag: - - '"00006e29-0000-0700-0000-62fb57bc0000"' + - '"0000e239-0000-0700-0000-62fb6c010000"' expires: - '-1' pragma: @@ -486,7 +486,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -523,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:25 GMT + - Tue, 16 Aug 2022 10:05:55 GMT expires: - '-1' pragma: @@ -566,7 +566,7 @@ interactions: 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":"xHkz8z32Qyno+DhUDBdjnvAh/Gq55GkJB3vryp60SIsbQSOwPd57GPLLwlatOpyqF5XXcfQpyrlGQzq+a/Hc6g==","secondaryKey":"IgMlFAp9ZqxRPWNOeH4hmv+z1+WD7UtvormCnrYtBRflRILyYWPRqCDG5LbxWTyMyfqI5O+m6tH8SkDDdPNoLA==","primaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=xHkz8z32Qyno+DhUDBdjnvAh/Gq55GkJB3vryp60SIsbQSOwPd57GPLLwlatOpyqF5XXcfQpyrlGQzq+a/Hc6g==","secondaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=IgMlFAp9ZqxRPWNOeH4hmv+z1+WD7UtvormCnrYtBRflRILyYWPRqCDG5LbxWTyMyfqI5O+m6tH8SkDDdPNoLA=="}' + string: '{"primaryKey":"UaeGEOhiyNUWw+Y9ZKvgsmenpHCCSHY13q6zP6QyKj98czq66nVlTsqKwfzI4+7iytBQKWZ41H8YeqTvpJYrfQ==","secondaryKey":"ew75lvU6WkBiy27dw69xbBkW2I7kr+T30DR/k+HfpcQ81iRSDdktmgXKsWRhgfkWhnpFf6T8XNAwbIyBoqtrUQ==","primaryConnectionString":"endpoint=https://mycommunicas4i5mkqz3v7l.communication.azure.com/;accesskey=UaeGEOhiyNUWw+Y9ZKvgsmenpHCCSHY13q6zP6QyKj98czq66nVlTsqKwfzI4+7iytBQKWZ41H8YeqTvpJYrfQ==","secondaryConnectionString":"endpoint=https://mycommunicas4i5mkqz3v7l.communication.azure.com/;accesskey=ew75lvU6WkBiy27dw69xbBkW2I7kr+T30DR/k+HfpcQ81iRSDdktmgXKsWRhgfkWhnpFf6T8XNAwbIyBoqtrUQ=="}' headers: cache-control: - no-cache @@ -575,7 +575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:25 GMT + - Tue, 16 Aug 2022 10:05:55 GMT expires: - '-1' pragma: @@ -593,7 +593,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -620,7 +620,7 @@ interactions: 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":"xRzIV7WfRYN8gcr/9/A1wNJ+HWF5ZXSWs4wYA6cX4QwK2smCY+UmzFJtIf957EhnE+RaeGBuOLifufWm5R+/Gw==","primaryConnectionString":"endpoint=https://mycommunicauct352bvjp77.communication.azure.com/;accesskey=xRzIV7WfRYN8gcr/9/A1wNJ+HWF5ZXSWs4wYA6cX4QwK2smCY+UmzFJtIf957EhnE+RaeGBuOLifufWm5R+/Gw=="}' + string: '{"primaryKey":"j1o+ZM3aWS831v/h6gNrK8N0SKzKPf2bB9lGA7/zx0Ai/dbTwigHij1iuzNfC70mcSoj4R+YJdrNZHtUD6RzKQ==","primaryConnectionString":"endpoint=https://mycommunicas4i5mkqz3v7l.communication.azure.com/;accesskey=j1o+ZM3aWS831v/h6gNrK8N0SKzKPf2bB9lGA7/zx0Ai/dbTwigHij1iuzNfC70mcSoj4R+YJdrNZHtUD6RzKQ=="}' headers: cache-control: - no-cache @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:26 GMT + - Tue, 16 Aug 2022 10:05:56 GMT expires: - '-1' pragma: @@ -647,7 +647,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -675,7 +675,7 @@ interactions: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 cache-control: - no-cache content-length: @@ -683,13 +683,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:27 GMT + - Tue, 16 Aug 2022 10:05:57 GMT etag: - - '"00007229-0000-0700-0000-62fb57bf0000"' + - '"0000e739-0000-0700-0000-62fb6c050000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 pragma: - no-cache strict-transport-security: @@ -699,7 +699,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -719,10 +719,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T08:39:27.5024021Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T10:05:57.5507433Z"}' headers: cache-control: - no-cache @@ -731,9 +731,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:39:57 GMT + - Tue, 16 Aug 2022 10:06:27 GMT etag: - - '"04000221-0000-0800-0000-62fb57bf0000"' + - '"4b00a476-0000-0800-0000-62fb6c050000"' expires: - '-1' pragma: @@ -761,10 +761,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T08:39:27.5024021Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-08-16T10:05:57.5507433Z"}' headers: cache-control: - no-cache @@ -773,9 +773,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:40:27 GMT + - Tue, 16 Aug 2022 10:06:57 GMT etag: - - '"04000221-0000-0800-0000-62fb57bf0000"' + - '"4b00a476-0000-0800-0000-62fb6c050000"' expires: - '-1' pragma: @@ -803,10 +803,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:39:27.5024021Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T10:05:57.5507433Z","properties":null}' headers: cache-control: - no-cache @@ -815,9 +815,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:40:57 GMT + - Tue, 16 Aug 2022 10:07:27 GMT etag: - - '"04009a23-0000-0800-0000-62fb58020000"' + - '"4b00db77-0000-0800-0000-62fb6c470000"' expires: - '-1' pragma: @@ -849,10 +849,10 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (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/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C?api-version=2020-08-20 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967?api-version=2020-08-20 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","name":"6c269c70-4323-453c-a43e-b4a81a244fed*7AEB577BE528E33CD48FE26790DF40F83D113941083E8397F9EB16F9EF1B536C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T08:39:27.5024021Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","name":"9257ef14-ed61-4317-93e8-1d546171eb10*24F84614A94FF53828360F0278A761D5912EFEF54109BFBDCB4498690D714967","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-08-16T10:05:57.5507433Z","properties":null}' headers: cache-control: - no-cache @@ -861,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:40:57 GMT + - Tue, 16 Aug 2022 10:07:27 GMT etag: - - '"04009a23-0000-0800-0000-62fb58020000"' + - '"4b00db77-0000-0800-0000-62fb6c470000"' expires: - '-1' pragma: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml index deeb23ec92d..4e7d235a51b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_create_user.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Tue, 16 Aug 2022 08:36:00 GMT + - Tue, 16 Aug 2022 09:58:11 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -29,24 +29,26 @@ 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, 16 Aug 2022 08:36:02 GMT + - Tue, 16 Aug 2022 09:58:13 GMT ms-cv: - - ZEjNeHoGxUKIlT84gGT08g.0 + - 11DkwBKNQEG7Y8S+VbHRqQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 08lb7YgAAAAABQx/WfivFTZaSjPwcjl9dWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T095813Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002kfsc x-cache: - CONFIG_NOCACHE x-processing-time: - - 119ms + - 127ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml index e3d156e9cd6..06e9bae5001 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_delete_user.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Tue, 16 Aug 2022 08:37:10 GMT + - Tue, 16 Aug 2022 09:59:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:37:12 GMT + - Tue, 16 Aug 2022 09:59:49 GMT ms-cv: - - JAiZ0EMsRUGSFJRV4DYOtA.0 + - gFoJR4TIm0ejsosKMnxJ7Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083712Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000x3dp + - 20220816T095949Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg000000015vfh x-cache: - CONFIG_NOCACHE x-processing-time: - - 117ms + - 120ms status: code: 201 message: Created @@ -68,7 +68,7 @@ interactions: x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Tue, 16 Aug 2022 08:37:11 GMT + - Tue, 16 Aug 2022 09:59:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -83,19 +83,19 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:37:13 GMT + - Tue, 16 Aug 2022 09:59:50 GMT ms-cv: - - rXuIBXf1Y0ukhBAAiUJh7g.0 + - XZXOKIqDzE2QUUtqG3QuOw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083712Z-pvk0k4gqx51st0bh1fssf7cw3000000005gg000000002sye + - 20220816T095949Z-p18hf8s3dx4xf8cgexx53pe93400000000dg0000000056hv x-cache: - CONFIG_NOCACHE x-processing-time: - - 299ms + - 215ms status: code: 204 message: No Content 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 5e48336fea1..33ec1ae06e3 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 08:37:36 GMT + - Tue, 16 Aug 2022 09:59:48 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:37:38.3197808+00:00"}}' + "expiresOn": "2022-08-17T09:59:50.2517087+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:37:38 GMT + - Tue, 16 Aug 2022 09:59:50 GMT ms-cv: - - f/TlI3n5X0ywPzTNbVF+UQ.0 + - eUR1vMVBokSAp9TYSwkWKw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083738Z-zvdmwacghh4c97ggppewnyshxn00000000g000000000kd1e + - 20220816T095950Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000wzwf x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 144ms 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 fae66182b3b..40609fa10de 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 @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Tue, 16 Aug 2022 08:37:36 GMT + - Tue, 16 Aug 2022 09:59:49 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:37:38 GMT + - Tue, 16 Aug 2022 09:59:51 GMT ms-cv: - - 7265Bef/IEaA7bsCJN9cYg.0 + - fOWnuTGPGE+mfuP3vwht5w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083738Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000104r0 + - 20220816T095951Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg000000015w66 x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 119ms status: code: 201 message: Created @@ -70,36 +70,40 @@ interactions: x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-date: - - Tue, 16 Aug 2022 08:37:37 GMT + - Tue, 16 Aug 2022 09:59:50 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-17T08:37:39.4529824+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-17T09:59:52.5354481+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, 16 Aug 2022 08:37:38 GMT + - Tue, 16 Aug 2022 09:59:52 GMT ms-cv: - - 39et9ix/F0OjFYMzgJdOMg.0 + - JEM0enPPl0y624oaGjgvkw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 0Ulf7YgAAAAD36jZNIvvKSI/zeKDxUSJSWVZSMzExMDAwMTE2MDI5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T095952Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005fg00000001uuq3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 168ms + - 184ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml index 00e893fa8a3..a75696fba75 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_multiple_scopes.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= x-ms-date: - - Tue, 16 Aug 2022 08:37:42 GMT + - Tue, 16 Aug 2022 09:59:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T08:37:44.5896574+00:00"}}' + "expiresOn": "2022-08-17T09:59:49.7131237+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:37:44 GMT + - Tue, 16 Aug 2022 09:59:49 GMT ms-cv: - - fgZoHRd0RUiJUkvkMuWa4Q.0 + - /GbH2hz02EWxkzskbH4bkw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083744Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg000000037gyd + - 20220816T095949Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002q1h3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 138ms + - 278ms status: code: 201 message: Created 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 0b86821aab0..caec95d4bbf 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:47:45 GMT + - Tue, 16 Aug 2022 10:02:59 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -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, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 08:47:50 GMT + - Tue, 16 Aug 2022 10:03:05 GMT location: - - /availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 ms-cv: - - 8AHEI1LBd0WPzkmRkYYfvA.0 + - JNp1ANWAJkO2kPrqNKBU5g.0 operation-id: - - search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 + - search_d071e23a-614e-40f1-b9bb-f1b8878e7fe7 operation-location: - - /phoneNumbers/operations/search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + - /phoneNumbers/operations/search_d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 search-id: - - 9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 + - d071e23a-614e-40f1-b9bb-f1b8878e7fe7 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084747Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014fh2 + - 0VWv7YgAAAACeTZ5riaG7T4HHNGJvM23uWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2636ms + - 4004ms status: code: 202 message: Accepted @@ -68,7 +66,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:48:18 GMT + - Tue, 16 Aug 2022 10:03:34 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,38 +74,36 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:47:49.7690904+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:03:05.6267011+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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:48:20 GMT + - Tue, 16 Aug 2022 10:03:35 GMT location: - - /availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 ms-cv: - - CjX6vZ4pTUGkjo+UlnkjmA.0 + - nJUR3FD4g0O1c1aAAFx01g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084820Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014pqv + - 0eGv7YgAAAAAeNccW+PimT77G0CVsSZ6XWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 369ms + - 435ms status: code: 200 message: OK @@ -122,7 +118,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:48:19 GMT + - Tue, 16 Aug 2022 10:03:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,41 +126,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 response: body: - string: '{"searchId": "9a7c05e6-4523-4118-aef9-1f8e2b2c0f82", "phoneNumbers": + string: '{"searchId": "d071e23a-614e-40f1-b9bb-f1b8878e7fe7", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:03:52.3052128+00:00"}' + "2022-08-16T10:19:07.3793843+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:48:22 GMT + - Tue, 16 Aug 2022 10:03:36 GMT ms-cv: - - hFwcb393K0ixk1BSrBAWaw.0 + - s1cp4Qgi3kCalkgpv6ahbA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084820Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014pub + - 0eGv7YgAAAADFGvBuRhH/ToV7Dm3muXbdWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1618ms + - 1098ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "9a7c05e6-4523-4118-aef9-1f8e2b2c0f82"}' + body: '{"searchId": "d071e23a-614e-40f1-b9bb-f1b8878e7fe7"}' headers: Accept: - application/json @@ -177,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:48:21 GMT + - Tue, 16 Aug 2022 10:03:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - yRpDZz70teXwV0ivwO4n0XsCuwWm45iX9iaTd9YtLCM= + - Vpmsi4K+24MsWNqaNmRpokcTvXGVH3wCRTgjYqGfmfQ= 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, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 08:48:24 GMT + - Tue, 16 Aug 2022 10:03:39 GMT ms-cv: - - gDU6ZzytG0+mb/HAxu9rwQ.0 + - FSLBzs3uHk2Oacyh+ZymAQ.0 operation-id: - - purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 + - purchase_d071e23a-614e-40f1-b9bb-f1b8878e7fe7 operation-location: - - /phoneNumbers/operations/purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 purchase-id: - - 9a7c05e6-4523-4118-aef9-1f8e2b2c0f82 + - d071e23a-614e-40f1-b9bb-f1b8878e7fe7 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084822Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014q5q + - 0eWv7YgAAAAB6Gnc72A+fT4KHR4p9y4hSWVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1915ms + - 1995ms status: code: 202 message: Accepted @@ -229,7 +221,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:48:53 GMT + - Tue, 16 Aug 2022 10:04:08 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,33 +229,31 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_9a7c05e6-4523-4118-aef9-1f8e2b2c0f82?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_d071e23a-614e-40f1-b9bb-f1b8878e7fe7?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:47:49.7690904+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-16T10:03:05.6267011+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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:48:54 GMT + - Tue, 16 Aug 2022 10:04:10 GMT ms-cv: - - 1g3vHr+RqEGGWXJNIBrkvQ.0 + - NIf8q8diCESbEklpyCBjvQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084854Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000014v6c + - 0mWv7YgAAAACnJf/UOQdJT7jNc7OZjxX+WVZSMzExMDAwMTE2MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 466ms status: code: 200 message: OK @@ -278,7 +268,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:48:53 GMT + - Tue, 16 Aug 2022 10:04:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -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-08-16T08:48:40.8917946+00:00", "cost": {"amount": 2.0, "currencyCode": + "2022-08-16T10:04:02.0257701+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: @@ -302,19 +292,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:48:59 GMT + - Tue, 16 Aug 2022 10:04:14 GMT ms-cv: - - hwCTAk+VrECNI3Cw0O/myA.0 + - Fj8/qnFgDEmcnEDe6TJ9og.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084855Z-zvdmwacghh4c97ggppewnyshxn00000000fg00000001mm59 + - 20220816T100411Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005fg00000001wyzz x-cache: - CONFIG_NOCACHE x-processing-time: - - 4372ms + - 3188ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_list.yaml b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_list.yaml new file mode 100644 index 00000000000..d87b8c3846e --- /dev/null +++ b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_list.yaml @@ -0,0 +1,312 @@ +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, 16 Aug 2022 10:02:59 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 10:03:06 GMT + location: + - /availablePhoneNumbers/searchResults/0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + ms-cv: + - RQ4f1aWn3UyPGdjnXXJcnQ.0 + operation-id: + - search_0d5d4cad-4386-42e5-8490-1ecebaaeeab4 + operation-location: + - /phoneNumbers/operations/search_0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + search-id: + - 0d5d4cad-4386-42e5-8490-1ecebaaeeab4 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0VWv7YgAAAADoCbObVWMYRY9nEAPN7lRBWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 4672ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 10:03:35 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:03:06.255795+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, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 10:03:37 GMT + location: + - /availablePhoneNumbers/searchResults/0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + ms-cv: + - Iyer8+C8xEmgzHF+c2TdsA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0eGv7YgAAAAD9OELzbL6FQrSFeezqnOw2WVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 480ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 10:03:35 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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/0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + response: + body: + string: '{"searchId": "0d5d4cad-4386-42e5-8490-1ecebaaeeab4", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-08-16T10:19:08.6849195+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 10:03:38 GMT + ms-cv: + - /c3H3J2QxU2nZZPDYod3zw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0eWv7YgAAAAAUdzqn/AwiSaiuo1XSwULKWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1184ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "0d5d4cad-4386-42e5-8490-1ecebaaeeab4"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Tue, 16 Aug 2022 10:03:37 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + x-ms-content-sha256: + - TmqDDYLXl38UpeqVJfkdBx2bma+yyPj3yfp0TcmDkMQ= + 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, 2022-12-01 + content-length: + - '0' + date: + - Tue, 16 Aug 2022 10:03:40 GMT + ms-cv: + - blKi99R4jEij2H/0IUqvCQ.0 + operation-id: + - purchase_0d5d4cad-4386-42e5-8490-1ecebaaeeab4 + operation-location: + - /phoneNumbers/operations/purchase_0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + purchase-id: + - 0d5d4cad-4386-42e5-8490-1ecebaaeeab4 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0emv7YgAAAADKq5ZE09e7RLFyMmXyxmq3WVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2096ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 10:04:09 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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_0d5d4cad-4386-42e5-8490-1ecebaaeeab4?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-08-16T10:03:06.255795+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, 2022-12-01 + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 10:04:11 GMT + ms-cv: + - OJ+EicyA5UK9p2iqafAEsw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0mmv7YgAAAAC3A1t9JOmZSqKaQdT9LL4BWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 612ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Tue, 16 Aug 2022 10:04:10 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (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-08-16T10:03:56.1608173+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, 2022-12-01 + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Tue, 16 Aug 2022 10:04:15 GMT + ms-cv: + - a6tSvLcitUWbmN+q7PdSSA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 20220816T100411Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005fg00000001wz7f + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3441ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml index 9d00abd4552..ae8da5eafd9 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_phonenumber_show.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:29:16 GMT + - Tue, 16 Aug 2022 10:03:00 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -34,25 +34,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:29:21 GMT + - Tue, 16 Aug 2022 10:03:06 GMT location: - - /availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 ms-cv: - - CIqT+vqzckiD4Vs4R93caQ.0 + - lF6OjIXTiUygJzR29Ygt+A.0 operation-id: - - search_4d742fdc-1981-4d44-9fa7-38d52a73fe1b + - search_daee3c02-ff9c-4471-affd-6ecefbc5634d operation-location: - - /phoneNumbers/operations/search_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + - /phoneNumbers/operations/search_daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 search-id: - - 4d742fdc-1981-4d44-9fa7-38d52a73fe1b + - daee3c02-ff9c-4471-affd-6ecefbc5634d strict-transport-security: - max-age=2592000 x-azure-ref: - - 0bmP7YgAAAACy0S1591yFQLPp1bEFWdZEWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0VWv7YgAAAABQuvExpPAqSrvAB196hovGWVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2594ms + - 4808ms status: code: 202 message: Accepted @@ -66,7 +66,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:29:50 GMT + - Tue, 16 Aug 2022 10:03:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -74,12 +74,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07", - "createdDateTime": "2022-08-16T09:29:21.3718259+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:03:06.6005275+00:00", "id": "sanitized", "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, 16 Aug 2022 09:29:52 GMT + - Tue, 16 Aug 2022 10:03:36 GMT location: - - /availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 ms-cv: - - 8fdfnnnIP06O6+J32dxYqg.0 + - PPPCxoNAKE6KXxsAco2uaA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0j2P7YgAAAAC+47ivgDJOTLc5leHS4Bu9WVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0eWv7YgAAAACqN/8beqHCTYIol2ZXz0mmWVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 541ms + - 346ms status: code: 200 message: OK @@ -118,7 +118,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:29:50 GMT + - Tue, 16 Aug 2022 10:03:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -126,39 +126,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 response: body: - string: '{"searchId": "4d742fdc-1981-4d44-9fa7-38d52a73fe1b", "phoneNumbers": + string: '{"searchId": "daee3c02-ff9c-4471-affd-6ecefbc5634d", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:45:25.3459022+00:00"}' + "2022-08-16T10:19:09.1577578+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:29:53 GMT + - Tue, 16 Aug 2022 10:03:38 GMT ms-cv: - - hp8gzNkb9UuWTSfqAdUnMw.0 + - V77idBuuoku0FgcpaoVeKQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0kGP7YgAAAABXyDE0RFVwSZrY2oG7mQ+SWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0eWv7YgAAAADcwu0O0O2zQI96in+68Eu6WVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1193ms + - 1220ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "4d742fdc-1981-4d44-9fa7-38d52a73fe1b"}' + body: '{"searchId": "daee3c02-ff9c-4471-affd-6ecefbc5634d"}' headers: Accept: - application/json @@ -171,11 +171,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:29:52 GMT + - Tue, 16 Aug 2022 10:03:37 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - nptcfq37EVt010R0/vDbROxNpem7GRLqsDwUR0QRhBw= + - mW6DOLK8/P/1iH7cJUnUzXnPlqeR/3yLhvspY1J+hk4= x-ms-return-client-request-id: - 'true' method: POST @@ -191,23 +191,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:29:55 GMT + - Tue, 16 Aug 2022 10:03:40 GMT ms-cv: - - oHacoRxOlUSELXLq4zlrNA.0 + - ySa4BpVCCk+gwvbFpf9mhg.0 operation-id: - - purchase_4d742fdc-1981-4d44-9fa7-38d52a73fe1b + - purchase_daee3c02-ff9c-4471-affd-6ecefbc5634d operation-location: - - /phoneNumbers/operations/purchase_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 purchase-id: - - 4d742fdc-1981-4d44-9fa7-38d52a73fe1b + - daee3c02-ff9c-4471-affd-6ecefbc5634d strict-transport-security: - max-age=2592000 x-azure-ref: - - 0kWP7YgAAAACFjIxNCNI5RKLA0h83hE5hWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0emv7YgAAAAAVb4dfViWbRrewhF8uOaj3WVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2092ms + - 1949ms status: code: 202 message: Accepted @@ -221,7 +221,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:30:24 GMT + - Tue, 16 Aug 2022 10:04:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -229,11 +229,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_4d742fdc-1981-4d44-9fa7-38d52a73fe1b?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_daee3c02-ff9c-4471-affd-6ecefbc5634d?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T09:29:21.3718259+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-16T10:03:06.6005275+00:00", "id": "sanitized", "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, 16 Aug 2022 09:30:25 GMT + - Tue, 16 Aug 2022 10:04:11 GMT ms-cv: - - OO1arVIMP0C0vfQG+HRpEw.0 + - iOOhq3V0m0ammIf6EC7YQw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0sWP7YgAAAABvY2Ycrn6CRbPFjjswfwvHWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 0mmv7YgAAAACWnyi3KhGEQrorrKP/fRTiWVZSMzExMDAwMTE2MDQ3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 436ms + - 379ms status: code: 200 message: OK @@ -268,7 +268,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:30:25 GMT + - Tue, 16 Aug 2022 10:04:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -281,7 +281,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-16T09:30:22.1381982+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-16T10:03:56.35774+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -291,19 +291,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:30:29 GMT + - Tue, 16 Aug 2022 10:04:14 GMT ms-cv: - - g3R/EFTUV0qvJ36ChpNtRw.0 + - Tu+JS/GbtEmrscFDHxK2dg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093026Z-hq6y7egy7x60fea7pte6x8g1v000000000eg00000000h7cx + - 20220816T100411Z-z5w8hfkph50p97tr7b7ay90rp000000000bg00000001ye36 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2837ms + - 2391ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml index e96f34812eb..a9d24cb3879 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_revoke_access_tokens.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Tue, 16 Aug 2022 08:38:47 GMT + - Tue, 16 Aug 2022 10:01:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:38:49 GMT + - Tue, 16 Aug 2022 10:01:25 GMT ms-cv: - - iDo/vC1BKkGCg/yfHX0WjA.0 + - P3DICJT/b061SkQGdZt8AQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083849Z-z5w8hfkph50p97tr7b7ay90rp000000000a000000003bas1 + - 20220816T100125Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003rud9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 115ms + - 120ms status: code: 201 message: Created @@ -68,7 +68,7 @@ interactions: x-ms-content-sha256: - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= x-ms-date: - - Tue, 16 Aug 2022 08:38:48 GMT + - Tue, 16 Aug 2022 10:01:24 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,19 +83,19 @@ interactions: connection: - keep-alive date: - - Tue, 16 Aug 2022 08:38:50 GMT + - Tue, 16 Aug 2022 10:01:26 GMT ms-cv: - - iMP6OmdlHUipPQadEVgEYg.0 + - aZ0HuPq9skuoVOAKj+UBPA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T083849Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005eg00000001cb8t + - 20220816T100125Z-vucxhh51rx5mv27fvss3h7q1kc00000000f000000000503s x-cache: - CONFIG_NOCACHE x-processing-time: - - 104ms + - 113ms status: code: 204 message: No Content 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 0adf2fd3708..67208e49259 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:40:24 GMT + - Tue, 16 Aug 2022 10:05:47 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:40:29 GMT + - Tue, 16 Aug 2022 10:05:53 GMT location: - - /availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 ms-cv: - - aFEE3E3UQkWBEBCcW8WSmw.0 + - BFLENTcfAEGV1Ku7W1uBhg.0 operation-id: - - search_eb1831b9-0cec-4060-a1b1-5eed999c9661 + - search_a3738768-bd5c-41de-9c18-fec26fc75b92 operation-location: - - /phoneNumbers/operations/search_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + - /phoneNumbers/operations/search_a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 search-id: - - eb1831b9-0cec-4060-a1b1-5eed999c9661 + - a3738768-bd5c-41de-9c18-fec26fc75b92 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084026Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011cb5 + - 20220816T100549Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002str8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3128ms + - 3435ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:40:58 GMT + - Tue, 16 Aug 2022 10:06:21 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:40:29.0491499+00:00", "id": "search_eb1831b9-0cec-4060-a1b1-5eed999c9661", + "/availablePhoneNumbers/searchResults/a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:05:52.5549922+00:00", "id": "search_a3738768-bd5c-41de-9c18-fec26fc75b92", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:41:00 GMT + - Tue, 16 Aug 2022 10:06:23 GMT location: - - /availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 ms-cv: - - T3udKJVXgkqNAAefiCnyrg.0 + - Sm1eAb4sskOwoEIHpVnlZA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084059Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011n5u + - 20220816T100623Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002t23z x-cache: - CONFIG_NOCACHE x-processing-time: - - 396ms + - 446ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:40:58 GMT + - Tue, 16 Aug 2022 10:06:22 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 response: body: - string: '{"searchId": "eb1831b9-0cec-4060-a1b1-5eed999c9661", "phoneNumbers": - ["+18333137447"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "a3738768-bd5c-41de-9c18-fec26fc75b92", "phoneNumbers": + ["+18447309009"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T08:56:30.9190821+00:00"}' + "2022-08-16T10:21:55.2829994+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:41:01 GMT + - Tue, 16 Aug 2022 10:06:25 GMT ms-cv: - - bENH/YffZk688UFsOhGFDw.0 + - GXuhNsnBNUChiTGpfWIebQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084100Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011n97 + - 20220816T100623Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002t292 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1139ms + - 1286ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "eb1831b9-0cec-4060-a1b1-5eed999c9661"}' + body: '{"searchId": "a3738768-bd5c-41de-9c18-fec26fc75b92"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:40:59 GMT + - Tue, 16 Aug 2022 10:06:23 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - jH1pU+TUddcgtTA0I7AYjbMKD5B1WpzjD9Lg3/RlEno= + - Oja5Kw+Qiu3UOFL24A+1fLSVzdqQ+oCJoNZPX/cna4I= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:41:03 GMT + - Tue, 16 Aug 2022 10:06:27 GMT ms-cv: - - 37VLmyfSpkylLVA24ZgH4Q.0 + - pq9d58+OQ0Ct9pNaK28XFw.0 operation-id: - - purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661 + - purchase_a3738768-bd5c-41de-9c18-fec26fc75b92 operation-location: - - /phoneNumbers/operations/purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 purchase-id: - - eb1831b9-0cec-4060-a1b1-5eed999c9661 + - a3738768-bd5c-41de-9c18-fec26fc75b92 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084101Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011nmu + - 20220816T100625Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002t2rc x-cache: - CONFIG_NOCACHE x-processing-time: - - 2270ms + - 2126ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:41:32 GMT + - Tue, 16 Aug 2022 10:06:55 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_a3738768-bd5c-41de-9c18-fec26fc75b92?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:40:29.0491499+00:00", "id": "purchase_eb1831b9-0cec-4060-a1b1-5eed999c9661", + null, "createdDateTime": "2022-08-16T10:05:52.5549922+00:00", "id": "purchase_a3738768-bd5c-41de-9c18-fec26fc75b92", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:41:34 GMT + - Tue, 16 Aug 2022 10:06:58 GMT ms-cv: - - QT4ZDl9Lg0Orx1OYvboapQ.0 + - 0ZuusCTkgE+8GFIzuF8cXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084133Z-zvdmwacghh4c97ggppewnyshxn00000000fg000000011wqn + - 20220816T100657Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002tbky x-cache: - CONFIG_NOCACHE x-processing-time: - - 489ms + - 554ms status: code: 200 message: OK @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:41:32 GMT + - Tue, 16 Aug 2022 10:06:56 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - wcnymaeSGMLtij3AsioxPbQjjMV5bfGPTRJKCZJZ7hw= + - 5g9xjbm/XI5H5On9vB0GiIpy+mQye2e6PmGJQ2PyTsg= x-ms-return-client-request-id: - 'true' method: POST @@ -305,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:41:35 GMT + - Tue, 16 Aug 2022 10:06:59 GMT ms-cv: - - sryqxdDA9ka6VYNnLTtQ8g.0 + - yAyevJDWQEGQPKB0xmGuTA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084134Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000013y27 + - 20220816T100658Z-z5w8hfkph50p97tr7b7ay90rp000000000dg000000000ybq x-cache: - CONFIG_NOCACHE x-processing-time: - - 291ms + - 335ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml index ae7cc2de17b..0767d346a66 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:42:02 GMT + - Tue, 16 Aug 2022 10:05:47 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:42:07 GMT + - Tue, 16 Aug 2022 10:05:53 GMT location: - - /availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 ms-cv: - - Kcl5xayd50K+rGlqcCOOGw.0 + - 7ZgWHNHzKUK5XZWFKmt7Gg.0 operation-id: - - search_fdc69fa2-ba25-4f34-a085-4284804e5010 + - search_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad operation-location: - - /phoneNumbers/operations/search_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + - /phoneNumbers/operations/search_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 search-id: - - fdc69fa2-ba25-4f34-a085-4284804e5010 + - 8bdd95e9-9cb1-487f-8fad-d1a27167b1ad strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084204Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f0000000012wxz + - 20220816T100549Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002e6q9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2947ms + - 3969ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:42:36 GMT + - Tue, 16 Aug 2022 10:06:22 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:42:07.1992836+00:00", "id": "search_fdc69fa2-ba25-4f34-a085-4284804e5010", + "/availablePhoneNumbers/searchResults/8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:05:53.3222001+00:00", "id": "search_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:42:38 GMT + - Tue, 16 Aug 2022 10:06:24 GMT location: - - /availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 ms-cv: - - z68iXx7VpUy1ui3MeAVjvw.0 + - 6Bqt3T1uSky+tV2YIbYN2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084237Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139a5 + - 20220816T100623Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002ed9q x-cache: - CONFIG_NOCACHE x-processing-time: - - 420ms + - 363ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:42:36 GMT + - Tue, 16 Aug 2022 10:06:22 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 response: body: - string: '{"searchId": "fdc69fa2-ba25-4f34-a085-4284804e5010", "phoneNumbers": - ["+18772188171"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "8bdd95e9-9cb1-487f-8fad-d1a27167b1ad", "phoneNumbers": + ["+18335540445"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T08:58:09.9332175+00:00"}' + "2022-08-16T10:21:55.7611777+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:42:39 GMT + - Tue, 16 Aug 2022 10:06:25 GMT ms-cv: - - FtEqLHjm3kqOlLFFZHrs0g.0 + - Sovy3xV8gEmKLZWn6GQecg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084238Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139fk + - 20220816T100624Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002edcx x-cache: - CONFIG_NOCACHE x-processing-time: - - 1102ms + - 1370ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "fdc69fa2-ba25-4f34-a085-4284804e5010"}' + body: '{"searchId": "8bdd95e9-9cb1-487f-8fad-d1a27167b1ad"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:42:38 GMT + - Tue, 16 Aug 2022 10:06:24 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - p5NsDQh1oX/CH7YiG3Caz7AFXsEbL3kO5Zzvw/8L/Hs= + - MnsOukh6c+mgAbfYjvtf4LOigGqELu6v2aCc3AoLpKU= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:42:41 GMT + - Tue, 16 Aug 2022 10:06:27 GMT ms-cv: - - w/8SByCgK0Ol45STQpuv3A.0 + - pRD//etaekeTPwOzakvD0g.0 operation-id: - - purchase_fdc69fa2-ba25-4f34-a085-4284804e5010 + - purchase_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad operation-location: - - /phoneNumbers/operations/purchase_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 purchase-id: - - fdc69fa2-ba25-4f34-a085-4284804e5010 + - 8bdd95e9-9cb1-487f-8fad-d1a27167b1ad strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084239Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f00000000139x7 + - 20220816T100625Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002edqw x-cache: - CONFIG_NOCACHE x-processing-time: - - 1837ms + - 1899ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:43:10 GMT + - Tue, 16 Aug 2022 10:06:56 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_fdc69fa2-ba25-4f34-a085-4284804e5010?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:42:07.1992836+00:00", "id": "purchase_fdc69fa2-ba25-4f34-a085-4284804e5010", + null, "createdDateTime": "2022-08-16T10:05:53.3222001+00:00", "id": "purchase_8bdd95e9-9cb1-487f-8fad-d1a27167b1ad", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:43:11 GMT + - Tue, 16 Aug 2022 10:06:58 GMT ms-cv: - - On7G6Fvhwkuacj3AfaH8jQ.0 + - CDrG4AuGbUekb7sW9C6bmQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084311Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f0000000013nvx + - 20220816T100657Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000002epcg x-cache: - CONFIG_NOCACHE x-processing-time: - - 331ms + - 574ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:43:10 GMT + - Tue, 16 Aug 2022 10:06:57 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -305,25 +305,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:43:15 GMT + - Tue, 16 Aug 2022 10:07:01 GMT location: - - /availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 ms-cv: - - 3dKknlxjQEKSeScULc/gfA.0 + - ZeGVxFlc10C1LpHKGX4wzw.0 operation-id: - - search_c0d7363b-b17b-496c-b6d6-26a9627955fe + - search_8a682b75-077d-4e91-abed-1daf1878c8c2 operation-location: - - /phoneNumbers/operations/search_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + - /phoneNumbers/operations/search_8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 search-id: - - c0d7363b-b17b-496c-b6d6-26a9627955fe + - 8a682b75-077d-4e91-abed-1daf1878c8c2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084312Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022429 + - 20220816T100658Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003abaa x-cache: - CONFIG_NOCACHE x-processing-time: - - 2683ms + - 2347ms status: code: 202 message: Accepted @@ -337,7 +337,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:43:43 GMT + - Tue, 16 Aug 2022 10:07:29 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -345,12 +345,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:43:14.5951831+00:00", "id": "search_c0d7363b-b17b-496c-b6d6-26a9627955fe", + "/availablePhoneNumbers/searchResults/8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:07:01.0017812+00:00", "id": "search_8a682b75-077d-4e91-abed-1daf1878c8c2", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -362,21 +362,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:43:45 GMT + - Tue, 16 Aug 2022 10:07:32 GMT location: - - /availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 ms-cv: - - vgSLnCzReEq7jydE9xmeIw.0 + - n18UgyYbhEuy/3PPtES13g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084345Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022ky1 + - 20220816T100731Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003amgp x-cache: - CONFIG_NOCACHE x-processing-time: - - 446ms + - 412ms status: code: 200 message: OK @@ -391,7 +391,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:43:44 GMT + - Tue, 16 Aug 2022 10:07:30 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -399,14 +399,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 response: body: - string: '{"searchId": "c0d7363b-b17b-496c-b6d6-26a9627955fe", "phoneNumbers": - ["+18446397672"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "8a682b75-077d-4e91-abed-1daf1878c8c2", "phoneNumbers": + ["+18662073070"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T08:59:17.2882690+00:00"}' + "2022-08-16T10:23:03.4112820+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -415,25 +415,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:43:47 GMT + - Tue, 16 Aug 2022 10:07:33 GMT ms-cv: - - oAHf6xZg2E6E9VqIEa15Aw.0 + - mGCnOs7D9kqV6W2USP/0jQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084345Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022m75 + - 20220816T100732Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003amqa x-cache: - CONFIG_NOCACHE x-processing-time: - - 1099ms + - 1260ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "c0d7363b-b17b-496c-b6d6-26a9627955fe"}' + body: '{"searchId": "8a682b75-077d-4e91-abed-1daf1878c8c2"}' headers: Accept: - application/json @@ -446,11 +446,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:43:45 GMT + - Tue, 16 Aug 2022 10:07:31 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 478Qh1U2MlFAOY9oInbYCBFfqwOzBsIvIMamU8s3WP8= + - sq4lThaGNBDPKP9+xtS7DLgXPEDmjEKOV27k5AF8YOU= x-ms-return-client-request-id: - 'true' method: POST @@ -468,23 +468,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:43:49 GMT + - Tue, 16 Aug 2022 10:07:35 GMT ms-cv: - - qCv4Q+9SA0aSbJA1CN0Z5A.0 + - ygJ0nI9VYEWZy5swSo4hCg.0 operation-id: - - purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe + - purchase_8a682b75-077d-4e91-abed-1daf1878c8c2 operation-location: - - /phoneNumbers/operations/purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 purchase-id: - - c0d7363b-b17b-496c-b6d6-26a9627955fe + - 8a682b75-077d-4e91-abed-1daf1878c8c2 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084347Z-zvdmwacghh4c97ggppewnyshxn00000000e0000000022mrs + - 20220816T100733Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003an27 x-cache: - CONFIG_NOCACHE x-processing-time: - - 2137ms + - 2114ms status: code: 202 message: Accepted @@ -498,7 +498,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:44:17 GMT + - Tue, 16 Aug 2022 10:08:04 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -506,11 +506,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_8a682b75-077d-4e91-abed-1daf1878c8c2?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:43:14.5951831+00:00", "id": "purchase_c0d7363b-b17b-496c-b6d6-26a9627955fe", + null, "createdDateTime": "2022-08-16T10:07:01.0017812+00:00", "id": "purchase_8a682b75-077d-4e91-abed-1daf1878c8c2", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -520,19 +520,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:44:19 GMT + - Tue, 16 Aug 2022 10:08:06 GMT ms-cv: - - T3nLJ+1zYUe737VE+J4k2g.0 + - MUIKHohP2kCB/ZH9XZqeLg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084419Z-zvdmwacghh4c97ggppewnyshxn00000000e00000000231s4 + - 20220816T100805Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003awt4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 469ms + - 434ms status: code: 200 message: OK @@ -552,7 +552,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:44:18 GMT + - Tue, 16 Aug 2022 10:08:04 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -574,25 +574,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:44:23 GMT + - Tue, 16 Aug 2022 10:08:09 GMT location: - - /availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 ms-cv: - - QdXNZkUftEOfSpSMbUe+6Q.0 + - SBT3T1ed4UmjiShBRoVQYg.0 operation-id: - - search_af1fbf1e-738b-47b4-a6c6-031f6256ef01 + - search_3984011c-cde0-4082-aa91-916633f7c5ff operation-location: - - /phoneNumbers/operations/search_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + - /phoneNumbers/operations/search_3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 search-id: - - af1fbf1e-738b-47b4-a6c6-031f6256ef01 + - 3984011c-cde0-4082-aa91-916633f7c5ff strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084420Z-hq6y7egy7x60fea7pte6x8g1v000000000ag000000044yxg + - 20220816T100806Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003vya4 x-cache: - CONFIG_NOCACHE x-processing-time: - - 3167ms + - 2338ms status: code: 202 message: Accepted @@ -606,7 +606,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:44:52 GMT + - Tue, 16 Aug 2022 10:08:37 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -614,12 +614,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:44:22.9538808+00:00", "id": "search_af1fbf1e-738b-47b4-a6c6-031f6256ef01", + "/availablePhoneNumbers/searchResults/3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:08:08.7113048+00:00", "id": "search_3984011c-cde0-4082-aa91-916633f7c5ff", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -631,21 +631,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:44:54 GMT + - Tue, 16 Aug 2022 10:08:40 GMT location: - - /availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 ms-cv: - - aFPBO4Pm4kGgULd9pOLsNg.0 + - 5OrMJs24IEahulzmZiLiUQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084453Z-hq6y7egy7x60fea7pte6x8g1v000000000ag0000000457tn + - 20220816T100839Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003wa7h x-cache: - CONFIG_NOCACHE x-processing-time: - - 526ms + - 962ms status: code: 200 message: OK @@ -660,7 +660,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:44:53 GMT + - Tue, 16 Aug 2022 10:08:38 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -668,14 +668,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 response: body: - string: '{"searchId": "af1fbf1e-738b-47b4-a6c6-031f6256ef01", "phoneNumbers": - ["+18662016271"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "3984011c-cde0-4082-aa91-916633f7c5ff", "phoneNumbers": + ["+18772189809"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:00:24.9977222+00:00"}' + "2022-08-16T10:24:11.0789309+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -684,25 +684,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:44:55 GMT + - Tue, 16 Aug 2022 10:08:41 GMT ms-cv: - - S2I1X6fU5ka1wqstJcap4g.0 + - MVBPKeg8PUKUSlXjh59+ew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084454Z-hq6y7egy7x60fea7pte6x8g1v000000000ag0000000457z0 + - 20220816T100840Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003wam7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1142ms + - 1101ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "af1fbf1e-738b-47b4-a6c6-031f6256ef01"}' + body: '{"searchId": "3984011c-cde0-4082-aa91-916633f7c5ff"}' headers: Accept: - application/json @@ -715,11 +715,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:44:54 GMT + - Tue, 16 Aug 2022 10:08:40 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 2lgZaSgiXmT1ZBnFrwF6u8KHr4WpBZajLeNWQ4tgsDo= + - 5FW0k5ebrPfr4ZeqcBvD15tckNYu3ibo2nJhTdrFArc= x-ms-return-client-request-id: - 'true' method: POST @@ -737,23 +737,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:44:57 GMT + - Tue, 16 Aug 2022 10:08:43 GMT ms-cv: - - sc80O0Y9v02Kyft3q0mJFQ.0 + - 9az57h+QX0232+wYHn+lCg.0 operation-id: - - purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01 + - purchase_3984011c-cde0-4082-aa91-916633f7c5ff operation-location: - - /phoneNumbers/operations/purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 purchase-id: - - af1fbf1e-738b-47b4-a6c6-031f6256ef01 + - 3984011c-cde0-4082-aa91-916633f7c5ff strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T084455Z-hq6y7egy7x60fea7pte6x8g1v000000000ag00000004589d + - 20220816T100841Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003wazq x-cache: - CONFIG_NOCACHE x-processing-time: - - 1981ms + - 2231ms status: code: 202 message: Accepted @@ -767,7 +767,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:45:26 GMT + - Tue, 16 Aug 2022 10:09:12 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -775,11 +775,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_3984011c-cde0-4082-aa91-916633f7c5ff?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:44:22.9538808+00:00", "id": "purchase_af1fbf1e-738b-47b4-a6c6-031f6256ef01", + null, "createdDateTime": "2022-08-16T10:08:08.7113048+00:00", "id": "purchase_3984011c-cde0-4082-aa91-916633f7c5ff", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -789,19 +789,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:45:28 GMT + - Tue, 16 Aug 2022 10:09:14 GMT ms-cv: - - Vug/HP4idEW1uePq/WzaTw.0 + - 72pPCtuQf0enlB6Sz/b+jw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084527Z-hq6y7egy7x60fea7pte6x8g1v000000000ag000000045gqq + - 20220816T100914Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003wpy9 x-cache: - CONFIG_NOCACHE x-processing-time: - - 425ms + - 385ms status: code: 200 message: OK @@ -823,11 +823,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:45:27 GMT + - Tue, 16 Aug 2022 10:09:13 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - hAkcgV82H8crfoZbO8hGyXD/DGNVGoKZd191ON4EoRA= + - 6vRg0bwSbO1/YKAV/HD5UL0DivdYG+vB8OKAoNNh7p4= x-ms-return-client-request-id: - 'true' method: POST @@ -846,19 +846,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:45:29 GMT + - Tue, 16 Aug 2022 10:09:15 GMT ms-cv: - - 2+ir9OjL20GIxodfN2zqMQ.0 + - FaEpKA/jDEO6v2m2+eYccQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T084529Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000000zw06 + - 20220816T100914Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000003beur x-cache: - CONFIG_NOCACHE x-processing-time: - - 281ms + - 282ms 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 61c074564cf..7b896d74158 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,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:54:09 GMT + - Tue, 16 Aug 2022 10:03:00 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:54:16 GMT + - Tue, 16 Aug 2022 10:03:06 GMT location: - - /availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 ms-cv: - - +MVdkqv7GEiNrSs6SbKNKw.0 + - +1c7q4/tqEqxDBSk+8nj/g.0 operation-id: - - search_b8782394-cbfe-45e3-af28-198d38c9ef14 + - search_8f12c81b-e019-4034-bcca-53cf2f5f01f6 operation-location: - - /phoneNumbers/operations/search_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + - /phoneNumbers/operations/search_8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 search-id: - - b8782394-cbfe-45e3-af28-198d38c9ef14 + - 8f12c81b-e019-4034-bcca-53cf2f5f01f6 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T085410Z-zvdmwacghh4c97ggppewnyshxn00000000eg0000000245f0 + - 20220816T100302Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000hgkz x-cache: - CONFIG_NOCACHE x-processing-time: - - 5128ms + - 3732ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:54:44 GMT + - Tue, 16 Aug 2022 10:03:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07", - "createdDateTime": "2022-08-16T08:54:15.3421147+00:00", "id": "sanitized", + "/availablePhoneNumbers/searchResults/8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:03:06.0364696+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:54:47 GMT + - Tue, 16 Aug 2022 10:03:36 GMT location: - - /availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 ms-cv: - - KpjS2hSSg0aYlxWlOQTSeg.0 + - Z9SSZK/h/ECKnhNJzf0gZg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T085446Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024nce + - 20220816T100336Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000hmsn x-cache: - CONFIG_NOCACHE x-processing-time: - - 709ms + - 356ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:54:45 GMT + - Tue, 16 Aug 2022 10:03:35 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 response: body: - string: '{"searchId": "b8782394-cbfe-45e3-af28-198d38c9ef14", "phoneNumbers": + string: '{"searchId": "8f12c81b-e019-4034-bcca-53cf2f5f01f6", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:10:19.8539446+00:00"}' + "2022-08-16T10:19:08.3996101+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:54:48 GMT + - Tue, 16 Aug 2022 10:03:38 GMT ms-cv: - - +xJsNbNdwU2Cu7CJIWet2A.0 + - HpHvKjQ/WUGH0j19aE0MBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T085447Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024nqw + - 20220816T100337Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000hmu6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1481ms + - 1075ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "b8782394-cbfe-45e3-af28-198d38c9ef14"}' + body: '{"searchId": "8f12c81b-e019-4034-bcca-53cf2f5f01f6"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 08:54:47 GMT + - Tue, 16 Aug 2022 10:03:36 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - 0uuEJLZKg01LC39wg2R0PqGjRyIE/InDDIz/5iJ3CZo= + - EyiY9jr3cEVUECWEm8g3qkuWoZbbHyOHMPgXnp+RpYA= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 08:54:51 GMT + - Tue, 16 Aug 2022 10:03:40 GMT ms-cv: - - fQ3f0ZBUaUyR6/gHhWqkOA.0 + - tTwCSUcxVk2zbcbQOTIFoA.0 operation-id: - - purchase_b8782394-cbfe-45e3-af28-198d38c9ef14 + - purchase_8f12c81b-e019-4034-bcca-53cf2f5f01f6 operation-location: - - /phoneNumbers/operations/purchase_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 purchase-id: - - b8782394-cbfe-45e3-af28-198d38c9ef14 + - 8f12c81b-e019-4034-bcca-53cf2f5f01f6 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T085448Z-zvdmwacghh4c97ggppewnyshxn00000000eg000000024pck + - 20220816T100338Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000hmye x-cache: - CONFIG_NOCACHE x-processing-time: - - 3041ms + - 2139ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:55:20 GMT + - Tue, 16 Aug 2022 10:04:08 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_b8782394-cbfe-45e3-af28-198d38c9ef14?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_8f12c81b-e019-4034-bcca-53cf2f5f01f6?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T08:54:15.3421147+00:00", "id": "sanitized", + null, "createdDateTime": "2022-08-16T10:03:06.0364696+00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:55:22 GMT + - Tue, 16 Aug 2022 10:04:10 GMT ms-cv: - - Ftdm024yikWHb7j0GIVjrQ.0 + - jj0thRThXkaGRpL3QErqkQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T085521Z-zvdmwacghh4c97ggppewnyshxn00000000eg0000000253cp + - 20220816T100410Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000hqz6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 682ms + - 373ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 08:55:21 GMT + - Tue, 16 Aug 2022 10:04:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -291,7 +291,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-16T08:55:07.9453335+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-08-16T10:03:56.2185351+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -301,19 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 08:55:29 GMT + - Tue, 16 Aug 2022 10:04:13 GMT ms-cv: - - Qc+p6XAOU0iVtrMAl9NTmQ.0 + - /00VHMqZaUGOuOO3Ag7S+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T085522Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005gg00000000a62n + - 20220816T100411Z-p18hf8s3dx4xf8cgexx53pe93400000000dg00000000enum x-cache: - CONFIG_NOCACHE x-processing-time: - - 5938ms + - 2017ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml b/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml index 411370f1a08..ad0d8445e85 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_sms_send.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:25:33 GMT + - Tue, 16 Aug 2022 10:05:47 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -31,28 +31,30 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 09:25:39 GMT + - Tue, 16 Aug 2022 10:05:54 GMT location: - - /availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 ms-cv: - - kvLs2xuTW0qc21FgfjpcIA.0 + - aZwuOsteT0yiC+dG0ZNicg.0 operation-id: - - search_68977f2e-bd55-4b93-b343-9d7dac05ae18 + - search_af48cfa2-7618-46bc-9cd5-d985edf0b899 operation-location: - - /phoneNumbers/operations/search_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + - /phoneNumbers/operations/search_af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 search-id: - - 68977f2e-bd55-4b93-b343-9d7dac05ae18 + - af48cfa2-7618-46bc-9cd5-d985edf0b899 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0j2L7YgAAAAD8ZneO1fRCSb6slp8aVIUUWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T100549Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000xya6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 4046ms + - 4368ms status: code: 202 message: Accepted @@ -66,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:26:08 GMT + - Tue, 16 Aug 2022 10:06:22 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -74,36 +76,38 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07", - "createdDateTime": "2022-08-16T09:25:39.7222149+00:00", "id": "search_68977f2e-bd55-4b93-b343-9d7dac05ae18", + "/availablePhoneNumbers/searchResults/af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:05:53.8697119+00:00", "id": "search_af48cfa2-7618-46bc-9cd5-d985edf0b899", "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, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:26:09 GMT + - Tue, 16 Aug 2022 10:06:24 GMT location: - - /availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 ms-cv: - - fHplW/eto0SgZ9bH0s8Fsg.0 + - UjF984VsCUqoWQH19kHljA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0smL7YgAAAAAuB1dG7OfxTaVt4tYDXO/fWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T100624Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000y5qm x-cache: - CONFIG_NOCACHE x-processing-time: - - 360ms + - 504ms status: code: 200 message: OK @@ -118,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:26:09 GMT + - Tue, 16 Aug 2022 10:06:23 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -126,39 +130,41 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 response: body: - string: '{"searchId": "68977f2e-bd55-4b93-b343-9d7dac05ae18", "phoneNumbers": - ["+18447252258"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "af48cfa2-7618-46bc-9cd5-d985edf0b899", "phoneNumbers": + ["+18447291986"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:41:45.6833416+00:00"}' + "2022-08-16T10:21:56.5998157+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:26:11 GMT + - Tue, 16 Aug 2022 10:06:26 GMT ms-cv: - - mD0T/ePmxUGx4/LeO0bluQ.0 + - lz/P1wBGJkaz0KIOk574Pw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 0smL7YgAAAAAFepMuo4C/Qa2iMnHHaof9WVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T100625Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000y5ue x-cache: - CONFIG_NOCACHE x-processing-time: - - 1104ms + - 1161ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "68977f2e-bd55-4b93-b343-9d7dac05ae18"}' + body: '{"searchId": "af48cfa2-7618-46bc-9cd5-d985edf0b899"}' headers: Accept: - application/json @@ -171,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:26:10 GMT + - Tue, 16 Aug 2022 10:06:24 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - P28LcpGrLGhTkHoYuA2vNXDw4hF6v8MT80BvhEu3DQ4= + - lB2Xep9Ba7oWFPSHEd3suqi0up0I8ubo5txTqvij0V0= x-ms-return-client-request-id: - 'true' method: POST @@ -188,26 +194,28 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 09:26:13 GMT + - Tue, 16 Aug 2022 10:06:28 GMT ms-cv: - - MYqXyB+sD0GffWwiyH69CA.0 + - Y1q6qZ3YV0ic2ChRrgNIbw.0 operation-id: - - purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18 + - purchase_af48cfa2-7618-46bc-9cd5-d985edf0b899 operation-location: - - /phoneNumbers/operations/purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 purchase-id: - - 68977f2e-bd55-4b93-b343-9d7dac05ae18 + - af48cfa2-7618-46bc-9cd5-d985edf0b899 strict-transport-security: - max-age=2592000 x-azure-ref: - - 0s2L7YgAAAAA+fmYTvPv7S6PqoJbMkKbHWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T100626Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000y61v x-cache: - CONFIG_NOCACHE x-processing-time: - - 2069ms + - 2345ms status: code: 202 message: Accepted @@ -221,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:26:42 GMT + - Tue, 16 Aug 2022 10:06:57 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -229,31 +237,33 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_af48cfa2-7618-46bc-9cd5-d985edf0b899?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T09:25:39.7222149+00:00", "id": "purchase_68977f2e-bd55-4b93-b343-9d7dac05ae18", + null, "createdDateTime": "2022-08-16T10:05:53.8697119+00:00", "id": "purchase_af48cfa2-7618-46bc-9cd5-d985edf0b899", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 + connection: + - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:26:44 GMT + - Tue, 16 Aug 2022 10:06:59 GMT ms-cv: - - FHTi5ncTEEuwH0UoJIyccg.0 + - bEZT5JxvakuEGqi5aaD4Xw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 01GL7YgAAAADnKk0pyEHzQYbARhQECbMlWVZSMzExMDAwMTE1MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + - 20220816T100658Z-pvk0k4gqx51st0bh1fssf7cw3000000005g000000000ybn6 x-cache: - CONFIG_NOCACHE x-processing-time: - - 852ms + - 435ms status: code: 200 message: OK @@ -274,11 +284,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:26:43 GMT + - Tue, 16 Aug 2022 10:06:57 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - A5g3PjUbLsoXWgX4hXXPqOUD11bc7NeBhEOBNTf08tc= + - H8CAc5clzgZGuTYXWOsRDbkqnqkvU9p9IMw++w2l90c= x-ms-return-client-request-id: - 'true' method: POST @@ -295,19 +305,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:26:45 GMT + - Tue, 16 Aug 2022 10:07:00 GMT ms-cv: - - FHHzoz8x/EmRpOnRYjetUw.0 + - hquxFdVu6kaLsLS6LTNWMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T092645Z-vucxhh51rx5mv27fvss3h7q1kc00000000dg00000001y24d + - 20220816T100659Z-0613xdc17h3t90gs2g8fdg5r64000000009g00000001zt3t x-cache: - CONFIG_NOCACHE x-processing-time: - - 310ms + - 309ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml b/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml index 32661b0622b..12639bfb34b 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_sms_send_n_recipients.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:31:25 GMT + - Tue, 16 Aug 2022 10:08:34 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -36,25 +36,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:31:33 GMT + - Tue, 16 Aug 2022 10:08:39 GMT location: - - /availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 ms-cv: - - PqNGPBqxdU+AHGVVffAusw.0 + - LUPf9vvjPUW3pA6TCiDz2w.0 operation-id: - - search_b78aebac-7618-4e10-bf2b-0fc268cf8915 + - search_919284e1-03c2-45c8-b0c8-a656b37adf22 operation-location: - - /phoneNumbers/operations/search_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + - /phoneNumbers/operations/search_919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 search-id: - - b78aebac-7618-4e10-bf2b-0fc268cf8915 + - 919284e1-03c2-45c8-b0c8-a656b37adf22 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093127Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003g1fp + - 20220816T100836Z-z5w8hfkph50p97tr7b7ay90rp000000000dg000000001n3s x-cache: - CONFIG_NOCACHE x-processing-time: - - 5319ms + - 2773ms status: code: 202 message: Accepted @@ -68,7 +68,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:32:01 GMT + - Tue, 16 Aug 2022 10:09:08 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -76,12 +76,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07", - "createdDateTime": "2022-08-16T09:31:31.6469783+00:00", "id": "search_b78aebac-7618-4e10-bf2b-0fc268cf8915", + "/availablePhoneNumbers/searchResults/919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:08:39.1184266+00:00", "id": "search_919284e1-03c2-45c8-b0c8-a656b37adf22", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -93,21 +93,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:32:04 GMT + - Tue, 16 Aug 2022 10:09:10 GMT location: - - /availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 ms-cv: - - 89/XWCBa5kW3NlKIvmOKsA.0 + - t+3Tkuj7z0iMT7kK4HIk0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093203Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gbvu + - 20220816T100909Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000000fvb x-cache: - CONFIG_NOCACHE x-processing-time: - - 680ms + - 463ms status: code: 200 message: OK @@ -122,7 +122,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:32:02 GMT + - Tue, 16 Aug 2022 10:09:09 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -130,14 +130,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 response: body: - string: '{"searchId": "b78aebac-7618-4e10-bf2b-0fc268cf8915", "phoneNumbers": - ["+18447288301"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "919284e1-03c2-45c8-b0c8-a656b37adf22", "phoneNumbers": + ["+18772189974"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:47:34.6582065+00:00"}' + "2022-08-16T10:24:40.7566140+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -146,25 +146,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:32:05 GMT + - Tue, 16 Aug 2022 10:09:12 GMT ms-cv: - - A/NOvuZQY0aF3CmPUyyOMw.0 + - 1BbC7U1eUE+kktYYJfNt7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093204Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gc3n + - 20220816T100910Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000000fvp x-cache: - CONFIG_NOCACHE x-processing-time: - - 1470ms + - 1178ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "b78aebac-7618-4e10-bf2b-0fc268cf8915"}' + body: '{"searchId": "919284e1-03c2-45c8-b0c8-a656b37adf22"}' headers: Accept: - application/json @@ -177,11 +177,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:32:04 GMT + - Tue, 16 Aug 2022 10:09:10 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - kDZNvLdhVU18qtBI6RUubZj/8dbCGPYv1zXOIGwXO5M= + - j7Gtn4Ex5LwaxxGxPRkAqW0BIUctr/noPBUwI10IRpk= x-ms-return-client-request-id: - 'true' method: POST @@ -199,23 +199,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:32:08 GMT + - Tue, 16 Aug 2022 10:09:14 GMT ms-cv: - - 43Naxb615UOruOf+KsObyQ.0 + - oVqaEQu/5Ee6hPFHlC2+Mw.0 operation-id: - - purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915 + - purchase_919284e1-03c2-45c8-b0c8-a656b37adf22 operation-location: - - /phoneNumbers/operations/purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 purchase-id: - - b78aebac-7618-4e10-bf2b-0fc268cf8915 + - 919284e1-03c2-45c8-b0c8-a656b37adf22 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093205Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gcn5 + - 20220816T100912Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000000fwd x-cache: - CONFIG_NOCACHE x-processing-time: - - 3131ms + - 2093ms status: code: 202 message: Accepted @@ -229,7 +229,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:32:37 GMT + - Tue, 16 Aug 2022 10:09:42 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -237,11 +237,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_919284e1-03c2-45c8-b0c8-a656b37adf22?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T09:31:31.6469783+00:00", "id": "purchase_b78aebac-7618-4e10-bf2b-0fc268cf8915", + null, "createdDateTime": "2022-08-16T10:08:39.1184266+00:00", "id": "purchase_919284e1-03c2-45c8-b0c8-a656b37adf22", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -251,19 +251,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:32:40 GMT + - Tue, 16 Aug 2022 10:09:44 GMT ms-cv: - - vtRTUNuKXECSabBNO/TESQ.0 + - nMK+51HE3UugFEbD6hpE/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093238Z-z5w8hfkph50p97tr7b7ay90rp000000000ag00000003gq8z + - 20220816T100944Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000000gn3 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1162ms + - 433ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:32:38 GMT + - Tue, 16 Aug 2022 10:09:43 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -300,30 +300,28 @@ interactions: - Location,Operation-Location,operation-id,search-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 09:32:43 GMT + - Tue, 16 Aug 2022 10:09:46 GMT location: - - /availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 ms-cv: - - tjI/v7TPekSwu0+F0fJ70g.0 + - 8sKSG/xnEEygjsBVjpoSrQ.0 operation-id: - - search_53eb5057-5ff2-421a-961a-6cd2b02057d7 + - search_888a16c5-1b00-4243-b957-543eeb01ee0b operation-location: - - /phoneNumbers/operations/search_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + - /phoneNumbers/operations/search_888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 search-id: - - 53eb5057-5ff2-421a-961a-6cd2b02057d7 + - 888a16c5-1b00-4243-b957-543eeb01ee0b strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093240Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000ktcu + - 06Wz7YgAAAADcOKhqyziDRqXF4Vo9G9OhWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2431ms + - 2401ms status: code: 202 message: Accepted @@ -337,7 +335,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:33:11 GMT + - Tue, 16 Aug 2022 10:10:16 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -345,38 +343,36 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07", - "createdDateTime": "2022-08-16T09:32:42.6378135+00:00", "id": "search_53eb5057-5ff2-421a-961a-6cd2b02057d7", + "/availablePhoneNumbers/searchResults/888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:09:47.4320949+00:00", "id": "search_888a16c5-1b00-4243-b957-543eeb01ee0b", "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, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:33:13 GMT + - Tue, 16 Aug 2022 10:10:18 GMT location: - - /availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 ms-cv: - - sg7OjqZtJ0uQTAifibuzPQ.0 + - mYhNU4wXrEO/6U7cIDTQRA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093313Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m48g + - 0CW37YgAAAACOiHgpmh5TQrfg+uZLInGHWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 434ms + - 416ms status: code: 200 message: OK @@ -391,7 +387,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:33:12 GMT + - Tue, 16 Aug 2022 10:10:16 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -399,41 +395,39 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 response: body: - string: '{"searchId": "53eb5057-5ff2-421a-961a-6cd2b02057d7", "phoneNumbers": - ["+18332137319"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "888a16c5-1b00-4243-b957-543eeb01ee0b", "phoneNumbers": + ["+18772189551"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:48:44.4919825+00:00"}' + "2022-08-16T10:25:49.8393498+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:33:15 GMT + - Tue, 16 Aug 2022 10:10:19 GMT ms-cv: - - V3wBz2JR2ka5P5aTpVyzzw.0 + - vkEyYSnilEW0nyzqgWrY7Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093313Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m4cr + - 0Cm37YgAAAAAgcn5iaKhKS40MWy6PFuYFWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 1174ms + - 1162ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "53eb5057-5ff2-421a-961a-6cd2b02057d7"}' + body: '{"searchId": "888a16c5-1b00-4243-b957-543eeb01ee0b"}' headers: Accept: - application/json @@ -446,11 +440,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:33:13 GMT + - Tue, 16 Aug 2022 10:10:18 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - mfwc6aKrRMHhuMmjU2OMX/KhG92N61pKOzO3X4PpuB4= + - ICM5KExCn+gl3hVv3WGIATN6FWeomouDcVX55uvseys= x-ms-return-client-request-id: - 'true' method: POST @@ -463,28 +457,26 @@ interactions: - Operation-Location,operation-id,purchase-id api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-length: - '0' date: - - Tue, 16 Aug 2022 09:33:17 GMT + - Tue, 16 Aug 2022 10:10:21 GMT ms-cv: - - J8zouhq0BUuIN0NJQV4B/A.0 + - E5blLeUobEK9GV8IWBb1Qg.0 operation-id: - - purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7 + - purchase_888a16c5-1b00-4243-b957-543eeb01ee0b operation-location: - - /phoneNumbers/operations/purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 purchase-id: - - 53eb5057-5ff2-421a-961a-6cd2b02057d7 + - 888a16c5-1b00-4243-b957-543eeb01ee0b strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093315Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000m4ry + - 0C237YgAAAABWg6TNNj8aTpkmX8NeshGtWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 2170ms + - 2176ms status: code: 202 message: Accepted @@ -498,7 +490,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:33:45 GMT + - Tue, 16 Aug 2022 10:10:50 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -506,33 +498,31 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_888a16c5-1b00-4243-b957-543eeb01ee0b?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T09:32:42.6378135+00:00", "id": "purchase_53eb5057-5ff2-421a-961a-6cd2b02057d7", + null, "createdDateTime": "2022-08-16T10:09:47.4320949+00:00", "id": "purchase_888a16c5-1b00-4243-b957-543eeb01ee0b", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:33:47 GMT + - Tue, 16 Aug 2022 10:10:51 GMT ms-cv: - - pNSMojArpE2OOG8ISTooEw.0 + - 4ju1CL8/qkasaZn/B//YVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093347Z-ue5bcnvs3t2n5ee38b8kwchyq400000000dg00000000mey4 + - 0K237YgAAAABcMISMO4fbR5rpmf/Cf0JdWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 449ms + - 337ms status: code: 200 message: OK @@ -552,7 +542,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:33:46 GMT + - Tue, 16 Aug 2022 10:10:50 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -574,25 +564,25 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:33:50 GMT + - Tue, 16 Aug 2022 10:11:12 GMT location: - - /availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 ms-cv: - - AV1xxF68YEm04IP23QcoLw.0 + - pLjCV0sku0elTvSCu5ahVg.0 operation-id: - - search_4c6f5905-49ba-40c9-9178-9caea6c1cef7 + - search_84d84d57-9b8e-4dd9-84b2-621333c64b98 operation-location: - - /phoneNumbers/operations/search_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + - /phoneNumbers/operations/search_84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 search-id: - - 4c6f5905-49ba-40c9-9178-9caea6c1cef7 + - 84d84d57-9b8e-4dd9-84b2-621333c64b98 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093348Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fg2n + - 20220816T101052Z-zvdmwacghh4c97ggppewnyshxn00000000gg00000000c58e x-cache: - CONFIG_NOCACHE x-processing-time: - - 2273ms + - 19948ms status: code: 202 message: Accepted @@ -606,7 +596,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:34:19 GMT + - Tue, 16 Aug 2022 10:11:41 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -614,12 +604,12 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 response: body: string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07", - "createdDateTime": "2022-08-16T09:33:50.2998441+00:00", "id": "search_4c6f5905-49ba-40c9-9178-9caea6c1cef7", + "/availablePhoneNumbers/searchResults/84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07", + "createdDateTime": "2022-08-16T10:11:12.497644+00:00", "id": "search_84d84d57-9b8e-4dd9-84b2-621333c64b98", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -631,21 +621,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:34:21 GMT + - Tue, 16 Aug 2022 10:11:43 GMT location: - - /availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + - /availablePhoneNumbers/searchResults/84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 ms-cv: - - pGaoD81o7Uymv5ctGH797A.0 + - EhAvSMok/0WHuxu7ImgNMA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093420Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fu86 + - 20220816T101142Z-zvdmwacghh4c97ggppewnyshxn00000000gg00000000c6v7 x-cache: - CONFIG_NOCACHE x-processing-time: - - 341ms + - 393ms status: code: 200 message: OK @@ -660,7 +650,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:34:19 GMT + - Tue, 16 Aug 2022 10:11:41 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -668,14 +658,14 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 response: body: - string: '{"searchId": "4c6f5905-49ba-40c9-9178-9caea6c1cef7", "phoneNumbers": - ["+18447271790"], "phoneNumberType": "tollFree", "assignmentType": "application", + string: '{"searchId": "84d84d57-9b8e-4dd9-84b2-621333c64b98", "phoneNumbers": + ["+18447314618"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2022-08-16T09:49:52.6370127+00:00"}' + "2022-08-16T10:27:14.6528183+00:00"}' headers: api-supported-versions: - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01 @@ -684,25 +674,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:34:22 GMT + - Tue, 16 Aug 2022 10:11:44 GMT ms-cv: - - Fn49x1AvoUa9iad3yHOh7g.0 + - 8Rzs1CabkkOLBeZq5THT1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093421Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fucx + - 20220816T101143Z-zvdmwacghh4c97ggppewnyshxn00000000gg00000000c6vg x-cache: - CONFIG_NOCACHE x-processing-time: - - 957ms + - 1176ms status: code: 200 message: OK url: sanitized - request: - body: '{"searchId": "4c6f5905-49ba-40c9-9178-9caea6c1cef7"}' + body: '{"searchId": "84d84d57-9b8e-4dd9-84b2-621333c64b98"}' headers: Accept: - application/json @@ -715,11 +705,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:34:20 GMT + - Tue, 16 Aug 2022 10:11:43 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - J/dcQzRxVYtt4CkP8FxTNsEy3h7p9Jm+i1puS+8nORM= + - tikyyT2lWHgRGRLmU5699CzBegu42BBuaARC/9tg1Co= x-ms-return-client-request-id: - 'true' method: POST @@ -737,23 +727,23 @@ interactions: content-length: - '0' date: - - Tue, 16 Aug 2022 09:34:24 GMT + - Tue, 16 Aug 2022 10:11:46 GMT ms-cv: - - BdcDYunfU0iHzcuCydu9Yw.0 + - l7KymyQPqEu4CdtVFMFxJA.0 operation-id: - - purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7 + - purchase_84d84d57-9b8e-4dd9-84b2-621333c64b98 operation-location: - - /phoneNumbers/operations/purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + - /phoneNumbers/operations/purchase_84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 purchase-id: - - 4c6f5905-49ba-40c9-9178-9caea6c1cef7 + - 84d84d57-9b8e-4dd9-84b2-621333c64b98 strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T093422Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000fuqv + - 20220816T101144Z-zvdmwacghh4c97ggppewnyshxn00000000gg00000000c6w8 x-cache: - CONFIG_NOCACHE x-processing-time: - - 1734ms + - 2135ms status: code: 202 message: Accepted @@ -767,7 +757,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 16 Aug 2022 09:34:52 GMT + - Tue, 16 Aug 2022 10:12:15 GMT User-Agent: - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: @@ -775,11 +765,11 @@ interactions: x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_84d84d57-9b8e-4dd9-84b2-621333c64b98?api-version=2021-03-07 response: body: string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2022-08-16T09:33:50.2998441+00:00", "id": "purchase_4c6f5905-49ba-40c9-9178-9caea6c1cef7", + null, "createdDateTime": "2022-08-16T10:11:12.497644+00:00", "id": "purchase_84d84d57-9b8e-4dd9-84b2-621333c64b98", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: api-supported-versions: @@ -789,19 +779,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:34:54 GMT + - Tue, 16 Aug 2022 10:12:17 GMT ms-cv: - - dm5ZtQ42e0KoBMToMPeDUA.0 + - l+FK7BMFq0abu44HA6qHOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093454Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg00000000g3ed + - 20220816T101217Z-zvdmwacghh4c97ggppewnyshxn00000000gg00000000c7hw x-cache: - CONFIG_NOCACHE x-processing-time: - - 628ms + - 366ms status: code: 200 message: OK @@ -823,11 +813,11 @@ interactions: Content-Type: - application/json Date: - - Tue, 16 Aug 2022 09:34:53 GMT + - Tue, 16 Aug 2022 10:12:16 GMT User-Agent: - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.19044-SP0) x-ms-content-sha256: - - eaSp0d6Ucu4pdhufCUlGJco1bSmI+8FxCJ4UtKrnezA= + - 9/wzPp6cxxrhUJVMYMGwAO1kdz5PfJcP6roS2iAQFIA= x-ms-return-client-request-id: - 'true' method: POST @@ -841,24 +831,22 @@ interactions: headers: api-supported-versions: - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - connection: - - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:34:55 GMT + - Tue, 16 Aug 2022 10:12:17 GMT ms-cv: - - z+sbhVjic0OaYYs1IxL9zQ.0 + - TExI0kkKJkOjMS8YQaESMA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-azure-ref: - - 20220816T093455Z-0613xdc17h3t90gs2g8fdg5r64000000009g000000029cws + - 0gW37YgAAAAAhEPZscVSVQ5JXmrqPNSQZWVZSMzExMDAwMTE1MDE5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== x-cache: - CONFIG_NOCACHE x-processing-time: - - 113ms + - 256ms status: code: 202 message: Accepted diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml index 08fcf0cba8a..a6bd9bfdf33 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= x-ms-date: - - Tue, 16 Aug 2022 09:15:56 GMT + - Tue, 16 Aug 2022 10:01:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T09:15:58.6830024+00:00"}}' + "expiresOn": "2022-08-17T10:01:25.3044501+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:15:58 GMT + - Tue, 16 Aug 2022 10:01:25 GMT ms-cv: - - bMeZj+4bdESIP68SUy63JA.0 + - YjsM5gX7pEu/kncGh7p4Zw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T091558Z-zvdmwacghh4c97ggppewnyshxn00000000e000000002tyk3 + - 20220816T100125Z-zvdmwacghh4c97ggppewnyshxn00000000e000000003rucp x-cache: - CONFIG_NOCACHE x-processing-time: - - 118ms + - 134ms status: code: 201 message: Created diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml index da6128ad7a8..adae30416c8 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_id.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= x-ms-date: - - Tue, 16 Aug 2022 09:18:57 GMT + - Tue, 16 Aug 2022 10:01:23 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -36,19 +36,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:18:59 GMT + - Tue, 16 Aug 2022 10:01:25 GMT ms-cv: - - X4W9o1juhk+36pd509F6jw.0 + - DtQjJTOjm0iKVzzVzvuf5w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T091859Z-zvdmwacghh4c97ggppewnyshxn00000000eg00000002kurk + - 20220816T100125Z-vucxhh51rx5mv27fvss3h7q1kc00000000f000000000382h x-cache: - CONFIG_NOCACHE x-processing-time: - - 121ms + - 119ms status: code: 201 message: Created @@ -70,14 +70,14 @@ interactions: x-ms-content-sha256: - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= x-ms-date: - - Tue, 16 Aug 2022 09:18:58 GMT + - Tue, 16 Aug 2022 10:01:24 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-17T09:19:00.0051407+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-17T10:01:26.4548108+00:00"}' headers: accept-ranges: - bytes @@ -91,19 +91,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:19:00 GMT + - Tue, 16 Aug 2022 10:01:26 GMT ms-cv: - - 6NT+FiTiE0yKws2Ks2T7Ng.0 + - pE/7U/HMYUWGgOzEfInuHg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T091859Z-6b2s4uq0rt4yf0aehsw4te2apc00000000dg000000007t9p + - 20220816T100126Z-p18hf8s3dx4xf8cgexx53pe93400000000dg000000009gxw x-cache: - CONFIG_NOCACHE x-processing-time: - - 189ms + - 186ms status: code: 200 message: OK diff --git a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml index 909aa77cea5..5acf3de9fd7 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_token_issue_with_multiple_scopes.yaml @@ -17,7 +17,7 @@ interactions: x-ms-content-sha256: - hlYiA5kT1yt3LwEdaupQDHzQEfodx+8svsStB5uolgw= x-ms-date: - - Tue, 16 Aug 2022 09:23:15 GMT + - Tue, 16 Aug 2022 10:01:24 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,7 +25,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-17T09:23:17.1039598+00:00"}}' + "expiresOn": "2022-08-17T10:01:26.9368041+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -37,19 +37,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 16 Aug 2022 09:23:17 GMT + - Tue, 16 Aug 2022 10:01:27 GMT ms-cv: - - wio6lGGMhUaO+Qx9+O28ig.0 + - mruKWtOrG0S3Q7K9i7u5Xg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-azure-ref: - - 20220816T092317Z-0613xdc17h3t90gs2g8fdg5r64000000009g0000000234q8 + - 20220816T100126Z-r0s9pbvvdt0w72q6sqrkc1ktpw00000005f000000002ngv0 x-cache: - CONFIG_NOCACHE x-processing-time: - - 120ms + - 123ms status: code: 201 message: Created 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 34e23e86a2e..2250575a329 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-08-16 09:35:26.678914|2022-08-16 09:35:27.232728| -|step_show|successed||||2022-08-16 09:35:27.232728|2022-08-16 09:35:27.303575| -|step_list|successed||||2022-08-16 09:35:27.303575|2022-08-16 09:35:27.375428| -|step_list2|successed||||2022-08-16 09:35:27.375428|2022-08-16 09:35:27.446646| -|step_update|successed||||2022-08-16 09:35:27.447679|2022-08-16 09:35:27.520072| -|step_link_notification_hub|successed||||2022-08-16 09:35:27.520072|2022-08-16 09:35:27.591535| -|step_list_key|successed||||2022-08-16 09:35:27.591535|2022-08-16 09:35:27.667204| -|step_regenerate_key|successed||||2022-08-16 09:35:27.668187|2022-08-16 09:35:27.742632| -|step_delete|successed||||2022-08-16 09:35:27.742632|2022-08-16 09:35:28.100713| +|step_create|successed||||2022-08-16 10:12:46.739443|2022-08-16 10:12:47.297604| +|step_show|successed||||2022-08-16 10:12:47.297604|2022-08-16 10:12:47.376135| +|step_list|successed||||2022-08-16 10:12:47.376135|2022-08-16 10:12:47.449941| +|step_list2|successed||||2022-08-16 10:12:47.449941|2022-08-16 10:12:47.523425| +|step_update|successed||||2022-08-16 10:12:47.524424|2022-08-16 10:12:47.614416| +|step_link_notification_hub|successed||||2022-08-16 10:12:47.615416|2022-08-16 10:12:47.684154| +|step_list_key|successed||||2022-08-16 10:12:47.684154|2022-08-16 10:12:47.754154| +|step_regenerate_key|successed||||2022-08-16 10:12:47.754154|2022-08-16 10:12:47.823157| +|step_delete|successed||||2022-08-16 10:12:47.823157|2022-08-16 10:12:48.083435| Coverage: 9/9 From 9f050b70e682e10c497b5508b148cf65268ab90a Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 16 Aug 2022 03:15:48 -0700 Subject: [PATCH 25/26] [Communication] update help file --- src/communication/azext_communication/manual/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication/azext_communication/manual/_help.py b/src/communication/azext_communication/manual/_help.py index 2554f036993..a75a17fa68a 100644 --- a/src/communication/azext_communication/manual/_help.py +++ b/src/communication/azext_communication/manual/_help.py @@ -149,7 +149,7 @@ az communication identity issue-access-token --scope chat - name: issue access-token with multiple scopes and user text: |- - az communication identity issue-access-token --scope chat voip --user "8:acs:xxxxxx" + az communication identity issue-access-token --scope chat voip --userid "8:acs:xxxxxx" """ helps['communication identity token'] = """ From 822806d9d866f8e8cd14e8fe3ad516be45d5dc40 Mon Sep 17 00:00:00 2001 From: Mayssam Mohammadi Nevisi Date: Tue, 16 Aug 2022 03:37:38 -0700 Subject: [PATCH 26/26] [Communication] fix typo --- src/communication/azext_communication/manual/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication/azext_communication/manual/_params.py b/src/communication/azext_communication/manual/_params.py index 8dbdb1f0b53..4d4929c0e19 100644 --- a/src/communication/azext_communication/manual/_params.py +++ b/src/communication/azext_communication/manual/_params.py @@ -62,7 +62,7 @@ def _load_phonenumber_arguments(self): with self.argument_context('communication phonenumbers show-phonenumber') as c: c.argument('phonenumber', options_list=['--phonenumber', '-p'], type=str, help='Phone number to get information about') - with self.argument_context('communication phonenumbers show') as c: + with self.argument_context('communication phonenumber show') as c: c.argument('phonenumber', options_list=['--phonenumber'], type=str, help='Phone number to get information about')