From 8537fd6f20a6e90c0e14e9c7f4feac8391cd5936 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 19 Nov 2020 12:24:57 -0800 Subject: [PATCH 01/10] Failed participant check + single member add * Add failed participant check in response header for create_thread method * New convention method add_participant(thread_participant: ChatThreadParticipant) - sync and async --- .../azure/communication/chat/_shared/response.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py new file mode 100644 index 000000000000..1b029b1cd5f9 --- /dev/null +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py @@ -0,0 +1,8 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +def return_response(response, deserialized, _): # pylint: disable=unused-argument + return response, deserialized \ No newline at end of file From 4150701f984a243563973ae12fc1133da0ef27c4 Mon Sep 17 00:00:00 2001 From: Leo Li Date: Thu, 19 Nov 2020 14:12:40 -0800 Subject: [PATCH 02/10] Add empty line at the end of files --- .../azure/communication/chat/_shared/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py index 1b029b1cd5f9..79c5cfcc9245 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py @@ -5,4 +5,4 @@ # ------------------------------------------------------------------------- def return_response(response, deserialized, _): # pylint: disable=unused-argument - return response, deserialized \ No newline at end of file + return response, deserialized From d976fad09f5d35c8e9ba696d0bf834016da9d00a Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 25 Nov 2020 14:14:55 -0800 Subject: [PATCH 03/10] Enable pagination for list participants --- .../tests/test_chat_thread_client.py | 29 +++++++++++++++++- .../tests/test_chat_thread_client_async.py | 30 +++++++++++++++++++ .../tests/test_chat_thread_client_e2e.py | 27 ++++++++++++++--- .../test_chat_thread_client_e2e_async.py | 12 +++++++- 4 files changed, 92 insertions(+), 6 deletions(-) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py index 108597e6a214..ad842956e05a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py @@ -187,7 +187,34 @@ def mock_send(*_, **__): for chat_thread_participant_page in chat_thread_participants.by_page(): l = list(chat_thread_participant_page) assert len(l) == 1 - l[0].user.id = participant_id + l[0].user.id = participant_id # TODO: Chat: What is the purpose of this line? + + def test_list_participants_with_results_per_page(self): + thread_id = "19:81181a8abbf54b5695f87a0042ddcba9@thread.v2" + participant_id_1 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-5399-552c-b274-5a3a0d0000dc" + participant_id_2 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-9d32-35c9-557d-5a3a0d0002f1" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"id": participant_id_1}, + {"id": participant_id_2} + ]}) + + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, + transport=Mock(send=mock_send)) + + chat_thread_participants = None + try: + chat_thread_participants = chat_thread_client.list_participants(results_per_page=2) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + for chat_thread_participant_page in chat_thread_participants.by_page(): + l = list(chat_thread_participant_page) + assert len(l) == 2 def test_add_participant(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py index be1e02cf6316..9df88de704fd 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py @@ -201,6 +201,36 @@ async def mock_send(*_, **__): assert len(items) == 1 +@pytest.mark.asyncio +async def test_list_participants_with_results_per_page(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + participant_id_1 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-5399-552c-b274-5a3a0d0000dc" + participant_id_2 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-9d32-35c9-557d-5a3a0d0002f1" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"id": participant_id_1}, + {"id": participant_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + chat_thread_participants = None + try: + chat_thread_participants = chat_thread_client.list_participants(results_per_page=2) + except: + raised = True + + assert raised == False + + items = [] + async for item in chat_thread_participants: + items.append(item) + + assert len(items) == 2 + + @pytest.mark.asyncio async def test_add_participant(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py index 9d6615fa145f..12fd071475ff 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py @@ -62,7 +62,11 @@ def tearDown(self): self.identity_client.delete_user(self.new_user) self.chat_client.delete_chat_thread(self.thread_id) - def _create_thread(self): + def _create_thread( + self, + multiple_participants=False, # type: Optional[bool] + **kwargs + ): # create chat thread, and ChatThreadClient topic = "test topic" share_history_time = datetime.utcnow() @@ -149,12 +153,27 @@ def test_list_participants(self): if self.is_live: time.sleep(2) - chat_thread_participants = self.chat_thread_client.list_participants() + # add another participant + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + self.chat_thread_client.add_participant(new_participant) + + # fetch list of participants + chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) + + participant_count = 0 for chat_thread_participant_page in chat_thread_participants.by_page(): li = list(chat_thread_participant_page) - assert len(li) == 1 - li[0].user.id = self.user.identifier + assert len(li) <= 1 + participant_count += len(li) + li[0].user.id = self.user.identifier # TODO: Chat: What is the purpose of this statement? + assert participant_count == 1 @pytest.mark.live_test_only def test_add_participant(self): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index 0a4d4bc22cf9..6374b376686a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -196,7 +196,17 @@ async def test_list_participants(self): await self._create_thread() async with self.chat_thread_client: - chat_thread_participants = self.chat_thread_client.list_participants() + # add another participant + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + await self.chat_thread_client.add_participant(new_participant) + + chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) items = [] async for item in chat_thread_participants: From 85ccdf8ed916c88eca7bd9b471b884464d1742e8 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 26 Nov 2020 11:42:17 -0800 Subject: [PATCH 04/10] Enable pagination for read receipts --- .../communication/chat/_chat_thread_client.py | 14 +++++++++ .../chat/aio/_chat_thread_client_async.py | 15 ++++++++++ .../tests/test_chat_thread_client.py | 27 ++++++++++++++++- .../tests/test_chat_thread_client_async.py | 29 +++++++++++++++++++ .../tests/test_chat_thread_client_e2e.py | 17 ++++++----- .../test_chat_thread_client_e2e_async.py | 14 +++++---- 6 files changed, 101 insertions(+), 15 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py index 56fc67abe09f..13db92d4d90f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py @@ -187,6 +187,8 @@ def list_read_receipts( # type: (...) -> ItemPaged[ChatMessageReadReceipt] """Gets read receipts for a thread. + :keyword int results_per_page: The maximum number of chat message read receipts to be returned per page. + :keyword int skip: Skips chat message read receipts up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: ItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.paging.ItemPaged @@ -201,8 +203,13 @@ def list_read_receipts( :dedent: 8 :caption: Listing read receipts. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -423,6 +430,8 @@ def list_participants( # type: (...) -> ItemPaged[ChatThreadParticipant] """Gets the participants of a thread. + :keyword int results_per_page: The maximum number of participants to be returned per page. + :keyword int skip: Skips participants up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: ItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.paging.ItemPaged @@ -438,8 +447,13 @@ def list_participants( :caption: Listing participants of chat thread. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_participants( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py index 22491eda3240..9f02a0edc227 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py @@ -183,6 +183,8 @@ def list_read_receipts( ) -> AsyncItemPaged[ChatMessageReadReceipt]: """Gets read receipts for a thread. + :keyword int results_per_page: The maximum number of chat message read receipts to be returned per page. + :keyword int skip: Skips chat message read receipts up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.async_paging.AsyncItemPaged @@ -197,8 +199,13 @@ def list_read_receipts( :dedent: 12 :caption: Listing read receipts. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -412,6 +419,8 @@ def list_participants( ) -> AsyncItemPaged[ChatThreadParticipant]: """Gets the participants of a thread. + :keyword int results_per_page: The maximum number of participants to be returned per page. + :keyword int skip: Skips participants up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.async_paging.AsyncItemPaged @@ -426,8 +435,14 @@ def list_participants( :dedent: 12 :caption: Listing participants of chat thread. """ + + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_participants( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py index ad842956e05a..ef4484aeaea7 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py @@ -187,7 +187,7 @@ def mock_send(*_, **__): for chat_thread_participant_page in chat_thread_participants.by_page(): l = list(chat_thread_participant_page) assert len(l) == 1 - l[0].user.id = participant_id # TODO: Chat: What is the purpose of this line? + l[0].user.id = participant_id def test_list_participants_with_results_per_page(self): thread_id = "19:81181a8abbf54b5695f87a0042ddcba9@thread.v2" @@ -326,6 +326,31 @@ def mock_send(*_, **__): l = list(read_receipt_page) assert len(l) == 1 + def test_list_read_receipts_with_results_per_page(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1="1596823919339" + message_id_2="1596823919340" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1}, + {"chatMessageId": message_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=2) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + for read_receipt_page in read_receipts.by_page(): + l = list(read_receipt_page) + assert len(l) == 2 + if __name__ == '__main__': unittest.main() diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py index 9df88de704fd..0a0c819e9839 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py @@ -349,3 +349,32 @@ async def mock_send(*_, **__): items.append(item) assert len(items) == 1 + +@pytest.mark.asyncio +async def test_list_read_receipts_with_results_per_page(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1 = "1596823919339" + message_id_2 = "1596823919340" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1}, + {"chatMessageId": message_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=2) + except: + raised = True + + assert raised == False + + items = [] + async for item in read_receipts: + items.append(item) + + assert len(items) == 2 \ No newline at end of file diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py index 12fd071475ff..64ae4ae6ffd9 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py @@ -172,7 +172,7 @@ def test_list_participants(self): li = list(chat_thread_participant_page) assert len(li) <= 1 participant_count += len(li) - li[0].user.id = self.user.identifier # TODO: Chat: What is the purpose of this statement? + li[0].user.id = self.user.identifier assert participant_count == 1 @pytest.mark.live_test_only @@ -236,17 +236,18 @@ def test_send_read_receipt(self): @pytest.mark.live_test_only def test_list_read_receipts(self): self._create_thread() - self._send_message() - # send read receipts first - self.chat_thread_client.send_read_receipt(self.message_id) - if self.is_live: - time.sleep(2) + # send messages and read receipts + for i in range(2): + self._send_message() + self.chat_thread_client.send_read_receipt(self.message_id) + if self.is_live: + time.sleep(2) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts() + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=1) items = [] for item in read_receipts: items.append(item) - assert len(items) > 0 + assert len(items) == 0 diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index 6374b376686a..46dfe9436a77 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -314,15 +314,17 @@ async def test_list_read_receipts(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() - # send read receipts first - await self.chat_thread_client.send_read_receipt(self.message_id) - if self.is_live: - await asyncio.sleep(2) + for i in range(2): + await self._send_message() + + # send read receipts first + await self.chat_thread_client.send_read_receipt(self.message_id) + if self.is_live: + await asyncio.sleep(2) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts() + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=1) items = [] async for item in read_receipts: From 6a8c945c26a48826fe451276bbf634d77e70b280 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 7 Dec 2020 02:40:01 -0800 Subject: [PATCH 05/10] conflicts resolved after merge with upstream --- .../azure/communication/chat/_chat_thread_client.py | 4 ++-- .../azure/communication/chat/aio/_chat_thread_client_async.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py index 13db92d4d90f..f1f295495de6 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py @@ -208,7 +208,7 @@ def list_read_receipts( return self._client.chat_thread.list_chat_read_receipts( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -452,7 +452,7 @@ def list_participants( return self._client.chat_thread.list_chat_participants( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py index 9f02a0edc227..d2a46493fab1 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py @@ -204,7 +204,7 @@ def list_read_receipts( return self._client.chat_thread.list_chat_read_receipts( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -441,7 +441,7 @@ def list_participants( return self._client.chat_thread.list_chat_participants( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) From 26ee0c76d14631e5c77004f59b7c6e057dcf6cbf Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 9 Dec 2020 09:47:57 -0800 Subject: [PATCH 06/10] update README.md --- sdk/communication/azure-communication-chat/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index bb51eaa966a4..eaac17633bf5 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -290,7 +290,7 @@ Use `list_participants` to retrieve the participants of the thread. An iterator of `[ChatThreadParticipant]` is the response returned from listing participants ```python -chat_thread_participants = chat_thread_client.list_participants() +chat_thread_participants = chat_thread_client.list_participants(results_per_page=5, skip=5) for chat_thread_participant in chat_thread_participants: print(chat_thread_participant) ``` @@ -352,7 +352,7 @@ chat_thread_client.send_read_receipt(message_id) An iterator of `[ChatMessageReadReceipt]` is the response returned from listing read receipts ```python -read_receipts = chat_thread_client.list_read_receipts() +read_receipts = chat_thread_client.list_read_receipts(results_per_page=5, skip=5) for read_receipt in read_receipts: print(read_receipt) print(read_receipt.sender) From 8aa5cd6b4669ba186e510d3c1815e971274d5719 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 9 Dec 2020 13:16:29 -0800 Subject: [PATCH 07/10] e2e test fix --- .../tests/test_chat_thread_client_e2e_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index 46dfe9436a77..fe244f764f8a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -324,7 +324,7 @@ async def test_list_read_receipts(self): await asyncio.sleep(2) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=1) + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=0) items = [] async for item in read_receipts: From a63bb7462851f2d06355f51af54d85227fd43b98 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:59:56 -0800 Subject: [PATCH 08/10] bkp commit --- .../communication/chat/_chat_thread_client.py | 6 +- .../aio/operations/_chat_thread_operations.py | 114 +++++++++--------- .../operations/_chat_thread_operations.py | 114 +++++++++--------- .../communication/chat/_shared/response.py | 8 -- .../chat/aio/_chat_thread_client_async.py | 7 +- .../tests/test_chat_thread_client.py | 2 +- .../tests/test_chat_thread_client_async.py | 33 ++++- .../tests/test_chat_thread_client_e2e.py | 56 +++++---- .../test_chat_thread_client_e2e_async.py | 43 +++++-- 9 files changed, 219 insertions(+), 164 deletions(-) delete mode 100644 sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py index f1f295495de6..35731b414c13 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py @@ -208,7 +208,7 @@ def list_read_receipts( return self._client.chat_thread.list_chat_read_receipts( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -344,7 +344,7 @@ def list_messages( a = self._client.chat_thread.list_chat_messages( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -452,7 +452,7 @@ def list_participants( return self._client.chat_thread.list_chat_participants( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py index 479fd2e3ba59..66b2939dd730 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_chat_read_receipts( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]: @@ -54,8 +54,8 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str - :param maxpagesize: The maximum number of chat message read receipts to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of chat message read receipts to be returned per page. + :type max_page_size: int :param skip: Skips chat message read receipts up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,8 +91,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -190,7 +190,7 @@ async def send_chat_read_receipt( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -271,7 +271,7 @@ async def send_chat_message( def list_chat_messages( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs ) -> AsyncIterable["_models.ChatMessagesCollection"]: @@ -281,8 +281,8 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param maxpagesize: The maximum number of messages to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of messages to be returned per page. + :type max_page_size: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime @@ -319,8 +319,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -619,7 +619,7 @@ async def send_typing_notification( def list_chat_participants( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatParticipantsCollection"]: @@ -629,8 +629,8 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str - :param maxpagesize: The maximum number of participants to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of participants to be returned per page. + :type max_page_size: int :param skip: Skips participants up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -666,8 +666,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -708,26 +708,26 @@ async def get_next(next_link=None): ) list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - async def add_chat_participants( + async def remove_chat_participant( self, chat_thread_id: str, - add_chat_participants_request: "_models.AddChatParticipantsRequest", + chat_participant_id: str, **kwargs - ) -> "_models.AddChatParticipantsResult": - """Adds thread participants to a thread. If participants already exist, no change occurs. + ) -> None: + """Remove a participant from a thread. - Adds thread participants to a thread. If participants already exist, no change occurs. + Remove a participant from a thread. - :param chat_thread_id: Id of the thread to add participants to. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param add_chat_participants_request: Thread participants to be added to the thread. - :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddChatParticipantsResult, or the result of cls(response) - :rtype: ~azure.communication.chat.models.AddChatParticipantsResult + :return: None, or the result of cls(response) + :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] + cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -738,14 +738,14 @@ async def add_chat_participants( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_participants.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -755,48 +755,41 @@ async def add_chat_participants( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, None, {}) - return deserialized - add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - async def remove_chat_participant( + async def add_chat_participants( self, chat_thread_id: str, - chat_participant_id: str, + add_chat_participants_request: "_models.AddChatParticipantsRequest", **kwargs - ) -> None: - """Remove a participant from a thread. + ) -> "_models.AddChatParticipantsResult": + """Adds thread participants to a thread. If participants already exist, no change occurs. - Remove a participant from a thread. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Thread id to remove the participant from. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param chat_participant_id: Id of the thread participant to remove from the thread. - :type chat_participant_id: str + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -807,14 +800,14 @@ async def remove_chat_participant( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_chat_participant.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -824,20 +817,27 @@ async def remove_chat_participant( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.delete(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [204]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + return deserialized + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore async def update_chat_thread( self, diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py index ce8ccd28b95b..ed6ae68f7cb9 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer): def list_chat_read_receipts( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] skip=None, # type: Optional[int] **kwargs # type: Any ): @@ -59,8 +59,8 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str - :param maxpagesize: The maximum number of chat message read receipts to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of chat message read receipts to be returned per page. + :type max_page_size: int :param skip: Skips chat message read receipts up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -96,8 +96,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -196,7 +196,7 @@ def send_chat_read_receipt( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -278,7 +278,7 @@ def send_chat_message( def list_chat_messages( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): @@ -289,8 +289,8 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param maxpagesize: The maximum number of messages to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of messages to be returned per page. + :type max_page_size: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime @@ -327,8 +327,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -631,7 +631,7 @@ def send_typing_notification( def list_chat_participants( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] skip=None, # type: Optional[int] **kwargs # type: Any ): @@ -642,8 +642,8 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str - :param maxpagesize: The maximum number of participants to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of participants to be returned per page. + :type max_page_size: int :param skip: Skips participants up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -679,8 +679,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -721,27 +721,27 @@ def get_next(next_link=None): ) list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - def add_chat_participants( + def remove_chat_participant( self, chat_thread_id, # type: str - add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" + chat_participant_id, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.AddChatParticipantsResult" - """Adds thread participants to a thread. If participants already exist, no change occurs. + # type: (...) -> None + """Remove a participant from a thread. - Adds thread participants to a thread. If participants already exist, no change occurs. + Remove a participant from a thread. - :param chat_thread_id: Id of the thread to add participants to. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param add_chat_participants_request: Thread participants to be added to the thread. - :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddChatParticipantsResult, or the result of cls(response) - :rtype: ~azure.communication.chat.models.AddChatParticipantsResult + :return: None, or the result of cls(response) + :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] + cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -752,14 +752,14 @@ def add_chat_participants( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_participants.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -769,49 +769,42 @@ def add_chat_participants( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, None, {}) - return deserialized - add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - def remove_chat_participant( + def add_chat_participants( self, chat_thread_id, # type: str - chat_participant_id, # type: str + add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" **kwargs # type: Any ): - # type: (...) -> None - """Remove a participant from a thread. + # type: (...) -> "_models.AddChatParticipantsResult" + """Adds thread participants to a thread. If participants already exist, no change occurs. - Remove a participant from a thread. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Thread id to remove the participant from. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param chat_participant_id: Id of the thread participant to remove from the thread. - :type chat_participant_id: str + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -822,14 +815,14 @@ def remove_chat_participant( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_chat_participant.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -839,20 +832,27 @@ def remove_chat_participant( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.delete(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [204]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + return deserialized + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore def update_chat_thread( self, diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py deleted file mode 100644 index 79c5cfcc9245..000000000000 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/response.py +++ /dev/null @@ -1,8 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -def return_response(response, deserialized, _): # pylint: disable=unused-argument - return response, deserialized diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py index d2a46493fab1..86e2f47a2f14 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py @@ -185,7 +185,6 @@ def list_read_receipts( :keyword int results_per_page: The maximum number of chat message read receipts to be returned per page. :keyword int skip: Skips chat message read receipts up to a specified position in response. - :keyword callable cls: A custom type or function that will be passed the direct response :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.async_paging.AsyncItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -204,7 +203,7 @@ def list_read_receipts( return self._client.chat_thread.list_chat_read_receipts( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -336,7 +335,7 @@ def list_messages( return self._client.chat_thread.list_chat_messages( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -441,7 +440,7 @@ def list_participants( return self._client.chat_thread.list_chat_participants( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py index ef4484aeaea7..520c9bae791d 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py @@ -296,7 +296,7 @@ def test_send_read_receipt(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=201) + return mock_response(status_code=200) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) try: diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py index 0a0c819e9839..2404505eefb8 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py @@ -316,7 +316,7 @@ async def test_send_read_receipt(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=201) + return mock_response(status_code=200) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) try: @@ -377,4 +377,33 @@ async def mock_send(*_, **__): async for item in read_receipts: items.append(item) - assert len(items) == 2 \ No newline at end of file + assert len(items) == 2 + +@pytest.mark.asyncio +async def test_list_read_receipts_with_results_per_page_and_skip(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1 = "1596823919339" + message_id_2 = "1596823919340" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1}, + {"chatMessageId": message_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=1, skip=1) + except: + raised = True + + assert raised == False + + items = [] + async for item in read_receipts: + items.append(item) + + assert len(items) == 1 diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py index 64ae4ae6ffd9..00a4e47ccd6a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py @@ -64,7 +64,6 @@ def tearDown(self): def _create_thread( self, - multiple_participants=False, # type: Optional[bool] **kwargs ): # create chat thread, and ChatThreadClient @@ -79,7 +78,6 @@ def _create_thread( self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id - @pytest.mark.live_test_only def _send_message(self): # send a message priority = ChatMessagePriority.NORMAL @@ -89,7 +87,8 @@ def _send_message(self): content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result_id + message_id = create_message_result_id + return message_id @pytest.mark.live_test_only def test_update_topic(self): @@ -115,16 +114,14 @@ def test_send_message(self): @pytest.mark.live_test_only def test_get_message(self): self._create_thread() - self._send_message() - message = self.chat_thread_client.get_message(self.message_id) - assert message.id == self.message_id + message_id = self._send_message() + message = self.chat_thread_client.get_message(message_id) + assert message.id == message_id @pytest.mark.live_test_only def test_list_messages(self): self._create_thread() self._send_message() - if self.is_live: - time.sleep(2) chat_messages = self.chat_thread_client.list_messages(results_per_page=1) @@ -135,23 +132,21 @@ def test_list_messages(self): @pytest.mark.live_test_only def test_update_message(self): self._create_thread() - self._send_message() + message_id = self._send_message() content = "updated message content" - self.chat_thread_client.update_message(self.message_id, content=content) + self.chat_thread_client.update_message(message_id, content=content) @pytest.mark.live_test_only def test_delete_message(self): self._create_thread() - self._send_message() + message_id = self._send_message() - self.chat_thread_client.delete_message(self.message_id) + self.chat_thread_client.delete_message(message_id) @pytest.mark.live_test_only def test_list_participants(self): self._create_thread() - if self.is_live: - time.sleep(2) # add another participant share_history_time = datetime.utcnow() @@ -229,9 +224,26 @@ def test_send_typing_notification(self): @pytest.mark.live_test_only def test_send_read_receipt(self): self._create_thread() - self._send_message() + message_id = self._send_message() + + self.chat_thread_client.send_read_receipt(message_id) + + + def _wait_on_read_receipts(self, read_receipts_sent): + print("Read Receipts Sent: ", read_receipts_sent) + for _ in range(10): + print("Iteration: ", _) + read_receipts_paged = self.chat_thread_client.list_read_receipts(results_per_page=read_receipts_sent) + read_receipts = [item for item in read_receipts_paged] + if len(read_receipts) == read_receipts_sent: + print("All read receipts logged. Exiting...") + return + else: + print("Read Receipts Logged: ", len(read_receipts)) + print("Sleeping for additional 2 secs") + time.sleep(2) + raise Exception("Read receipts not updated in 20 seconds. Failing.") - self.chat_thread_client.send_read_receipt(self.message_id) @pytest.mark.live_test_only def test_list_read_receipts(self): @@ -239,15 +251,17 @@ def test_list_read_receipts(self): # send messages and read receipts for i in range(2): - self._send_message() - self.chat_thread_client.send_read_receipt(self.message_id) + message_id = self._send_message() + print("Message Id: ", message_id) + self.chat_thread_client.send_read_receipt(message_id) + if self.is_live: - time.sleep(2) + self._wait_on_read_receipts(read_receipts_sent=i) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=1) + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=0) items = [] for item in read_receipts: items.append(item) - assert len(items) == 0 + assert len(items) == 1 diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index fe244f764f8a..70d3af9f2f8a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -82,7 +82,8 @@ async def _send_message(self): content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result_id + message_id = create_message_result_id + return message_id @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test @@ -143,8 +144,6 @@ async def test_list_messages(self): async with self.chat_thread_client: await self._send_message() - if self.is_live: - await asyncio.sleep(2) chat_messages = self.chat_thread_client.list_messages(results_per_page=1) @@ -307,6 +306,26 @@ async def test_send_read_receipt(self): if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) + async def _wait_on_thread(self, read_receipts_sent): + print("Read Receipts Sent: ", read_receipts_sent) + for _ in range(10): + print("Iteration: ", _) + read_receipts_paged = self.chat_thread_client.list_read_receipts() + read_receipts = [] + async for page in read_receipts_paged.by_page(): + async for item in page: + print(item.chat_message_id) + read_receipts.append(item) + + if len(read_receipts) == read_receipts_sent: + print("All read receipts logged. Exiting...") + return + else: + print("Read Receipts Logged: ", len(read_receipts)) + print("Sleeping for additional 2 secs") + await asyncio.sleep(5) + raise Exception("Read receipts not updated in 20 seconds. Failing.") + @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test async def test_list_read_receipts(self): @@ -316,21 +335,23 @@ async def test_list_read_receipts(self): async with self.chat_thread_client: for i in range(2): - await self._send_message() + message_id = await self._send_message() + print(f"Message Id: {message_id}") # send read receipts first - await self.chat_thread_client.send_read_receipt(self.message_id) - if self.is_live: - await asyncio.sleep(2) + await self.chat_thread_client.send_read_receipt(message_id) + + if self.is_live: + await self._wait_on_thread(read_receipts_sent=2) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=0) + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=2, skip=0) items = [] - async for item in read_receipts: - items.append(item) + async for page in read_receipts.by_page(): + items += [item async for item in page] - assert len(items) > 0 + assert len(items) == 0 if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) From bade18172c972219966e8c211582990a2c0f4117 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Tue, 12 Jan 2021 18:19:42 -0800 Subject: [PATCH 09/10] updated e2e tests --- .../tests/test_chat_thread_client_async.py | 4 +- .../tests/test_chat_thread_client_e2e.py | 72 +++++++++++--- .../test_chat_thread_client_e2e_async.py | 96 ++++++++++++++----- 3 files changed, 129 insertions(+), 43 deletions(-) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py index 2404505eefb8..3854badc0076 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py @@ -383,14 +383,12 @@ async def mock_send(*_, **__): async def test_list_read_receipts_with_results_per_page_and_skip(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" message_id_1 = "1596823919339" - message_id_2 = "1596823919340" raised = False async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"chatMessageId": message_id_1}, - {"chatMessageId": message_id_2} + {"chatMessageId": message_id_1} ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py index 00a4e47ccd6a..e171a79de006 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py @@ -49,9 +49,12 @@ def setUp(self): # create another user self.new_user = self.identity_client.create_user() + tokenresponse = self.identity_client.issue_token(self.new_user, scopes=["chat"]) + self.token_new_user = tokenresponse.token # create ChatClient self.chat_client = ChatClient(self.endpoint, CommunicationUserCredential(self.token)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationUserCredential(self.token_new_user)) def tearDown(self): super(ChatThreadClientTest, self).tearDown() @@ -78,6 +81,29 @@ def _create_thread( self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id + def _create_thread_w_two_users( + self, + **kwargs + ): + # create chat thread, and ChatThreadClient + topic = "test topic" + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + participants = [ + ChatThreadParticipant( + user=self.user, + display_name='name', + share_history_time=share_history_time + ), + ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time + ) + ] + self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) + self.thread_id = self.chat_thread_client.thread_id + def _send_message(self): # send a message priority = ChatMessagePriority.NORMAL @@ -229,17 +255,19 @@ def test_send_read_receipt(self): self.chat_thread_client.send_read_receipt(message_id) - def _wait_on_read_receipts(self, read_receipts_sent): - print("Read Receipts Sent: ", read_receipts_sent) + def _wait_on_thread(self, chat_client, thread_id, message_id): + # print("Read Receipts Sent: ", read_receipts_sent) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) for _ in range(10): - print("Iteration: ", _) - read_receipts_paged = self.chat_thread_client.list_read_receipts(results_per_page=read_receipts_sent) - read_receipts = [item for item in read_receipts_paged] - if len(read_receipts) == read_receipts_sent: - print("All read receipts logged. Exiting...") + read_receipts_paged = chat_thread_client.list_read_receipts() + chat_message_ids = [] + for page in read_receipts_paged.by_page(): + for item in page: + chat_message_ids.append(item.chat_message_id) + + if message_id in chat_message_ids: return else: - print("Read Receipts Logged: ", len(read_receipts)) print("Sleeping for additional 2 secs") time.sleep(2) raise Exception("Read receipts not updated in 20 seconds. Failing.") @@ -247,8 +275,9 @@ def _wait_on_read_receipts(self, read_receipts_sent): @pytest.mark.live_test_only def test_list_read_receipts(self): - self._create_thread() + self._create_thread_w_two_users() + # first user send 2 messages # send messages and read receipts for i in range(2): message_id = self._send_message() @@ -256,12 +285,27 @@ def test_list_read_receipts(self): self.chat_thread_client.send_read_receipt(message_id) if self.is_live: - self._wait_on_read_receipts(read_receipts_sent=i) + self._wait_on_thread(chat_client=self.chat_client, thread_id=self.thread_id, message_id=message_id) + + # get chat thread client for second user + chat_thread_client_new_user = self.chat_client_new_user.get_chat_thread_client(self.thread_id) + # second user sends 1 message + message_id_new_user = chat_thread_client_new_user.send_message( + "content", + priority=ChatMessagePriority.NORMAL, + sender_display_name="sender_display_name") + # send read receipt + chat_thread_client_new_user.send_read_receipt(message_id_new_user) + + if self.is_live: + self._wait_on_thread(chat_client=self.chat_client_new_user, thread_id=self.thread_id, message_id=message_id_new_user) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=1, skip=0) + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=2, skip=0) items = [] - for item in read_receipts: - items.append(item) - assert len(items) == 1 + for page in read_receipts.by_page(): + for item in page: + items.append(item) + + assert len(items) == 2 diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index 70d3af9f2f8a..4797c48979a4 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -41,16 +41,23 @@ def setUp(self): self.identity_client = CommunicationIdentityClient.from_connection_string(self.connection_str) - # create user + self.users = [] + self.user_tokens = [] + self.chat_clients = [] + + # create user 1 self.user = self.identity_client.create_user() token_response = self.identity_client.issue_token(self.user, scopes=["chat"]) self.token = token_response.token - # create another user + # create user 2 self.new_user = self.identity_client.create_user() + token_response = self.identity_client.issue_token(self.new_user, scopes=["chat"]) + self.token_new_user = token_response.token # create ChatClient self.chat_client = ChatClient(self.endpoint, CommunicationUserCredential(self.token)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationUserCredential(self.token_new_user)) def tearDown(self): super(ChatThreadClientTestAsync, self).tearDown() @@ -73,6 +80,27 @@ async def _create_thread(self): self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id + async def _create_thread_w_two_users(self): + # create chat thread + topic = "test topic" + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + participants = [ + ChatThreadParticipant( + user=self.user, + display_name='name', + share_history_time=share_history_time + ), + ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time + ) + ] + self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) + self.thread_id = self.chat_thread_client.thread_id + + async def _send_message(self): # send a message priority = ChatMessagePriority.NORMAL @@ -128,9 +156,9 @@ async def test_get_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() - message = await self.chat_thread_client.get_message(self.message_id) - assert message.id == self.message_id + message_id = await self._send_message() + message = await self.chat_thread_client.get_message(message_id) + assert message.id == message_id # delete chat threads if not self.is_playback(): @@ -164,10 +192,10 @@ async def test_update_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() + message_id = await self._send_message() content = "updated message content" - await self.chat_thread_client.update_message(self.message_id, content=content) + await self.chat_thread_client.update_message(message_id, content=content) # delete chat threads if not self.is_playback(): @@ -180,9 +208,9 @@ async def test_delete_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() + message_id = await self._send_message() - await self.chat_thread_client.delete_message(self.message_id) + await self.chat_thread_client.delete_message(message_id) # delete chat threads if not self.is_playback(): @@ -299,41 +327,39 @@ async def test_send_read_receipt(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() + message_id = await self._send_message() - await self.chat_thread_client.send_read_receipt(self.message_id) + await self.chat_thread_client.send_read_receipt(message_id) if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) - async def _wait_on_thread(self, read_receipts_sent): - print("Read Receipts Sent: ", read_receipts_sent) + async def _wait_on_thread(self, chat_client, thread_id, message_id): + # print("Read Receipts Sent: ", read_receipts_sent) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) for _ in range(10): - print("Iteration: ", _) - read_receipts_paged = self.chat_thread_client.list_read_receipts() - read_receipts = [] + read_receipts_paged = chat_thread_client.list_read_receipts() + chat_message_ids = [] async for page in read_receipts_paged.by_page(): async for item in page: - print(item.chat_message_id) - read_receipts.append(item) + chat_message_ids.append(item.chat_message_id) - if len(read_receipts) == read_receipts_sent: - print("All read receipts logged. Exiting...") + if message_id in chat_message_ids: return else: - print("Read Receipts Logged: ", len(read_receipts)) print("Sleeping for additional 2 secs") - await asyncio.sleep(5) + await asyncio.sleep(2) raise Exception("Read receipts not updated in 20 seconds. Failing.") @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test async def test_list_read_receipts(self): async with self.chat_client: - await self._create_thread() + await self._create_thread_w_two_users() async with self.chat_thread_client: + # first user sends 2 messages for i in range(2): message_id = await self._send_message() print(f"Message Id: {message_id}") @@ -341,17 +367,35 @@ async def test_list_read_receipts(self): # send read receipts first await self.chat_thread_client.send_read_receipt(message_id) + if self.is_live: + await self._wait_on_thread(chat_client=self.chat_client, thread_id=self.thread_id, message_id=message_id) + + + + # get chat thread client for second user + chat_thread_client_new_user = self.chat_client_new_user.get_chat_thread_client(self.thread_id) + + # second user sends 1 message + message_id_new_user = await chat_thread_client_new_user.send_message( + "content", + priority=ChatMessagePriority.NORMAL, + sender_display_name="sender_display_name") + # send read receipt + await chat_thread_client_new_user.send_read_receipt(message_id_new_user) + + print(f"Second User message id: {message_id_new_user}") if self.is_live: - await self._wait_on_thread(read_receipts_sent=2) + await self._wait_on_thread(chat_client=self.chat_client_new_user, thread_id=self.thread_id, message_id=message_id_new_user) # list read receipts read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=2, skip=0) items = [] async for page in read_receipts.by_page(): - items += [item async for item in page] + async for item in page: + items.append(item) - assert len(items) == 0 + assert len(items) == 2 if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) From 3c7b3fdc6d61b5c4fb4ec5b1d02c10204bcd7cb2 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 25 Jan 2021 10:52:50 -0800 Subject: [PATCH 10/10] adding test recording --- ...at_client_e2e.test_create_chat_thread.yaml | 74 +-- ...at_client_e2e.test_delete_chat_thread.yaml | 84 ++-- ..._chat_client_e2e.test_get_chat_thread.yaml | 86 ++-- ...hat_client_e2e.test_get_thread_client.yaml | 74 +-- ...hat_client_e2e.test_list_chat_threads.yaml | 84 ++-- ...e_async.test_create_chat_thread_async.yaml | 78 ++-- ...ent_e2e_async.test_delete_chat_thread.yaml | 90 ++-- ...client_e2e_async.test_get_chat_thread.yaml | 92 ++-- ...ient_e2e_async.test_get_thread_client.yaml | 78 ++-- ...ient_e2e_async.test_list_chat_threads.yaml | 90 ++-- ...hread_client_e2e.test_add_participant.yaml | 159 ++++--- ...read_client_e2e.test_add_participants.yaml | 157 ++++--- ...thread_client_e2e.test_delete_message.yaml | 167 ++++--- ...at_thread_client_e2e.test_get_message.yaml | 173 ++++--- ..._thread_client_e2e.test_list_messages.yaml | 197 +++++--- ...ead_client_e2e.test_list_participants.yaml | 194 +++++--- ...ad_client_e2e.test_list_read_receipts.yaml | 425 +++++++++++++++--- ...ad_client_e2e.test_remove_participant.yaml | 167 ++++--- ...t_thread_client_e2e.test_send_message.yaml | 157 ++++--- ...ead_client_e2e.test_send_read_receipt.yaml | 171 ++++--- ...ent_e2e.test_send_typing_notification.yaml | 157 ++++--- ...thread_client_e2e.test_update_message.yaml | 167 ++++--- ...t_thread_client_e2e.test_update_topic.yaml | 157 ++++--- ...client_e2e_async.test_add_participant.yaml | 163 ++++--- ...lient_e2e_async.test_add_participants.yaml | 163 ++++--- ..._client_e2e_async.test_delete_message.yaml | 175 +++++--- ...ead_client_e2e_async.test_get_message.yaml | 181 +++++--- ...d_client_e2e_async.test_list_messages.yaml | 213 +++++---- ...ient_e2e_async.test_list_participants.yaml | 190 +++++--- ...ent_e2e_async.test_list_read_receipts.yaml | 367 ++++++++++++--- ...ent_e2e_async.test_remove_participant.yaml | 175 +++++--- ...ad_client_e2e_async.test_send_message.yaml | 161 ++++--- ...ient_e2e_async.test_send_read_receipt.yaml | 179 +++++--- ...e_async.test_send_typing_notification.yaml | 165 ++++--- ..._client_e2e_async.test_update_message.yaml | 175 +++++--- ...ad_client_e2e_async.test_update_topic.yaml | 163 ++++--- 36 files changed, 3811 insertions(+), 1937 deletions(-) diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml index c4fc01de4e8e..f36b4fb477dc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:08 GMT + - Mon, 25 Jan 2021 17:47:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:08 GMT + - Mon, 25 Jan 2021 17:47:09 GMT ms-cv: - - ZLeyMdfjlUiaA7hFCaNAhQ.0 + - kgdYNPOdy02C1uA2NBza3w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 43ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:09 GMT + - Mon, 25 Jan 2021 17:47:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:08.5963912+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:08.26655+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:09 GMT + - Mon, 25 Jan 2021 17:47:09 GMT ms-cv: - - ohVmGH8Y+kyPbqLNnXnMZA.0 + - kdtzCxgkHE+7GeoJohHJRQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 319ms + - 351ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0ce5d13557174151846884a72a66f024@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-033a-ea7c-5a3a0d0003b7"}}' + body: '{"chatThread": {"id": "19:4321981f25704eb49488d552300fe22e@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:47:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da89-b8ab-b0b7-3a3a0d0027fd"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:17 GMT + - Mon, 25 Jan 2021 17:47:11 GMT ms-cv: - - Nlmt8PvUqk2FdWmxSsNyOQ.0 + - ZuICXreYz0GxucVSP2qfIA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 8296ms + - 878ms status: code: 201 message: Created @@ -125,25 +129,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:18 GMT + - Mon, 25 Jan 2021 17:47:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:10:33 GMT + - Mon, 25 Jan 2021 17:47:27 GMT ms-cv: - - QfXR2/jGJ0ySXUq0ZuP0Ug.0 + - TJoAqESAikaMaa+XuD5BSw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16204ms + - 16641ms status: code: 204 message: No Content @@ -159,9 +165,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -169,13 +175,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:33 GMT + - Mon, 25 Jan 2021 17:47:27 GMT ms-cv: - - Rl3SteqAb0uPhIqQDd7MZQ.0 + - ElM8ymKj+02Gi/u6MD3ygQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 300ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index 6a7a77d3eb5c..3234874f8f70 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:28 GMT ms-cv: - - mF7CdbwyVE6FC8BBQo8NIQ.0 + - g8o+UYZYX0mpxZhC9yKMXg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 72ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:35 GMT + - Mon, 25 Jan 2021 17:47:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:34.7059512+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:27.9077124+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:28 GMT ms-cv: - - 4rsH2sIQ1UWcvUl3NR2nvA.0 + - 5KGDjpJUl0C3zdEyZKqC3w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 317ms + - 107ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:c01d0c1aee764caba5df437ce44484be@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:36Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-6931-557d-5a3a0d00045d"}}' + body: '{"chatThread": {"id": "19:12d78aa192304464b00317fd26c9ff04@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:47:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-026e-9c58-373a0d00273b"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:36 GMT + - Mon, 25 Jan 2021 17:47:29 GMT ms-cv: - - DR9MRSFZZk2c2dzg2VnNCA.0 + - u/2IZjucOUCiaAj9OhbrTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 908ms + - 854ms status: code: 201 message: Created @@ -125,9 +129,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -135,13 +139,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:37 GMT + - Mon, 25 Jan 2021 17:47:30 GMT ms-cv: - - zCVlSJ/1MkKeoYuphyntXg.0 + - hkl4/aC1dkWel0KDIA7kHw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 324ms + - 307ms status: code: 204 message: No Content @@ -157,25 +161,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:37 GMT + - Mon, 25 Jan 2021 17:47:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:10:53 GMT + - Mon, 25 Jan 2021 17:47:47 GMT ms-cv: - - Jqb0IpezM0WltLJf/1aJ+A.0 + - fsyq6ouEIUWA6w5Q4Kv1eQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16388ms + - 17205ms status: code: 204 message: No Content @@ -191,9 +197,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -201,13 +207,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:53 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - RBxKrvVGbkiC0zkbgG+2uw.0 + - Xs5/2WvTgkiLLvcpX3aojA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 269ms + - 739ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml index c0040d70542d..a858cf06c5e9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:48:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - BcEYMxZoM02u+cI9k4rsdw.0 + - PN/KbdZzP0evxZs7M4IzTw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 211ms + - 19ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:48:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:54.4658058+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:47.8499306+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:55 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - 42U+LulfrUuD/FTi1AQZ9g.0 + - kWzin0cMY0esWHjqAXy2mA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 603ms + - 87ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:25b5342f4ba3456d8cbd7a7f4a996ee4@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-b54e-b274-5a3a0d000303"}}' + body: '{"chatThread": {"id": "19:932c8a6967c94372b776152a657055c7@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:47:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-506c-1db7-3a3a0d002ad3"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:56 GMT + - Mon, 25 Jan 2021 17:47:49 GMT ms-cv: - - BxE1rtrWgUSpgt16P580cQ.0 + - 08PQtsol8Uqylt9HD16EFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 904ms + - 1405ms status: code: 201 message: Created @@ -123,11 +127,11 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:47:49Z", "createdBy": "sanitized"}' headers: api-supported-versions: @@ -135,15 +139,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:56 GMT + - Mon, 25 Jan 2021 17:47:49 GMT ms-cv: - - wpn+hMZxF0+uIAAoD5A+wg.0 + - 1bf6+syxyUOkVgNsrBOrXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 278ms status: code: 200 message: OK @@ -159,25 +163,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:57 GMT + - Mon, 25 Jan 2021 17:48:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:12 GMT + - Mon, 25 Jan 2021 17:48:06 GMT ms-cv: - - 3efjdp87U02aDWvTSyzPzw.0 + - Q9Vx5Gs0CUq2pAVz6hv94Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16185ms + - 16225ms status: code: 204 message: No Content @@ -193,9 +199,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -203,13 +209,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:12 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - ItVSpeOI9UuXAAHwHNmY2A.0 + - miah0VvSHE6+nxpb7Q3JRw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 473ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml index f4c9ac3a8493..09989a756bb4 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:13 GMT + - Mon, 25 Jan 2021 17:48:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:13 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - Ri68986tg0uW2yqd60Zatw.0 + - Qt+hMsZ0SUeWbBjqOVT5oQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 160ms + - 17ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:14 GMT + - Mon, 25 Jan 2021 17:48:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:13.459095+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:07.144614+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:14 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - YsqUGwBNzESmeJiRMVAZew.0 + - 7jnSvnCEU06zOJ9y3r3GRA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 308ms + - 89ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:baca4f223e664fe890c62445e9caeba1@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-0042-557d-5a3a0d00045e"}}' + body: '{"chatThread": {"id": "19:bafda2190f924a6da8b3f4274676677d@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:48:08Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-9bc6-1655-373a0d002762"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:15 GMT + - Mon, 25 Jan 2021 17:48:08 GMT ms-cv: - - HpM4vU0JqUCw9FwUOhRWRQ.0 + - 0MiTXLitokaWeSX2SiO1Ng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1350ms + - 896ms status: code: 201 message: Created @@ -125,25 +129,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:16 GMT + - Mon, 25 Jan 2021 17:48:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:31 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - +V+ZWmuPzkmb35aY9aU/pA.0 + - 8g/S0JsofE2iuKBQbLr25w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16221ms + - 16550ms status: code: 204 message: No Content @@ -159,9 +165,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -169,13 +175,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - xEUBZiB2rEq4Xir2J1CpGw.0 + - KSO679H6l0W7deoQpb1Jxg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 335ms + - 302ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml index 766d2e5ece57..f3039b109ea4 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - 8HhZXLWew0aAc6MXt0Hj6Q.0 + - rYSY/wje90K4OOIC8moh6w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 159ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:33 GMT + - Mon, 25 Jan 2021 17:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:32.6326234+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:25.5162705+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:33 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - 3Gjeqgdf60i8etSM4zm/GQ.0 + - oNEWXTcUSEeTJA7rS2OAhg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 318ms + - 93ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:a799d7fcae454760b6c0c28c9d085c71@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-4b7e-557d-5a3a0d00045f"}}' + body: '{"chatThread": {"id": "19:95e9bec0b74d4a8eb7414257626a4f18@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:48:27Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-e374-b0b7-3a3a0d002800"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:34 GMT + - Mon, 25 Jan 2021 17:48:27 GMT ms-cv: - - iwK3xwsPHEuG7Wxr3mITdQ.0 + - 2yMh19/WIUun8ywzgA2mOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 908ms + - 1173ms status: code: 201 message: Created @@ -123,9 +127,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -134,15 +138,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:36 GMT + - Mon, 25 Jan 2021 17:48:29 GMT ms-cv: - - VmfcvV6KOEm9LEIqlTQBHQ.0 + - VirqTs34gU2vEHPGN7EgEA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 448ms + - 321ms status: code: 200 message: OK @@ -158,25 +162,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:37 GMT + - Mon, 25 Jan 2021 17:48:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:53 GMT + - Mon, 25 Jan 2021 17:48:46 GMT ms-cv: - - 5hWo7vJS0EiqkbLLbVInHw.0 + - YQwYD/M6kEObut/qJon8zA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16834ms + - 16304ms status: code: 204 message: No Content @@ -192,9 +198,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -202,13 +208,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:53 GMT + - Mon, 25 Jan 2021 17:48:46 GMT ms-cv: - - 9THbCS2SPEys/98LWQe16w.0 + - 3odFWv6dVU2/bi5fZgwODg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 297ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml index 8e55167b8747..060f09238aa2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:49:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:48:47 GMT ms-cv: - - CxHoI5d/nUSieUsdJoKX0w.0 + - BVIRAQIW7kuQRq/88BCj8A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:55 GMT + - Mon, 25 Jan 2021 17:49:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:54.8081004+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:46.4503998+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:48:47 GMT ms-cv: - - gXPPdkyS7UOhz1IUrXZOLQ.0 + - cKGQvzv/skyuZgEPbsBfQw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 662ms + - 115ms status: code: 200 message: OK @@ -85,46 +89,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:92e0acd9303f420e91fb3aab147a4766@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-a0ba-8a72-5a3a0d00034c"}}' + body: '{"chatThread": {"id": "19:aa53cd0cbfba4aa48df0850405d6b0a0@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:48:47Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-353e-9c58-373a0d00273c"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:11:56 GMT - ms-cv: fxMSCOM7FkCc2KGrjItV+A.0 + date: Mon, 25 Jan 2021 17:48:48 GMT + ms-cv: T1kL5ifVSECg3upWveP7ug.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 907ms + x-processing-time: 878ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:11:57 GMT - ms-cv: WJoyqTwFU0CKzf1GPju1/w.0 + date: Mon, 25 Jan 2021 17:48:48 GMT + ms-cv: WDgG+UEYqEuYZU3M7i3gIg.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 305ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -137,25 +141,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:57 GMT + - Mon, 25 Jan 2021 17:49:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:13 GMT + - Mon, 25 Jan 2021 17:49:04 GMT ms-cv: - - wSF4aNKkEk6aUJz6MwD5Tg.0 + - T2WJ5d79iUWRnOBSsYbcpQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16387ms + - 16204ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index 110b7f750b88..17ef431486ed 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:13 GMT + - Mon, 25 Jan 2021 17:49:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:05 GMT ms-cv: - - BC9z1BJcZUW3yD7d5+FGAA.0 + - RVrIyUzajEiGXbPEhg+6XA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 45ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:13.5682068+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:04.6480313+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:05 GMT ms-cv: - - f4CckEXxGEGG9RSQGRWRbQ.0 + - V/V5xZgop0eh7cCdTe3wIw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 320ms + - 93ms status: code: 200 message: OK @@ -85,68 +89,68 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:3e4f7f02fc7c4d848ffc8174217b04b9@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-eb65-8a72-5a3a0d00034d"}}' + body: '{"chatThread": {"id": "19:d336b7a72bff4f94b19ab2d74d7f9c35@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:49:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-7c4f-1655-373a0d002765"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: 4Rd+PNE5H0qjPzYUiNTe3A.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: mwbttry9FkuDj6ANZO6XOQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 893ms + x-processing-time: 850ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: /oy07bczM0OUuelRThSWoA.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: VBefqR2rbkqVQoaK6LJxfA.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: eY/meUaW3ku71kdlog87yA.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: fgY4wvqpFkaEgCd4fr/A8A.0 strict-transport-security: max-age=2592000 - x-processing-time: 269ms + x-processing-time: 257ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -159,25 +163,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:16 GMT + - Mon, 25 Jan 2021 17:49:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:32 GMT + - Mon, 25 Jan 2021 17:49:23 GMT ms-cv: - - LbY5liNdGE+0uC/TLJWWtw.0 + - oI34Crr2rUyyMo+h8KVXvg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16338ms + - 16089ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml index ef48cd8e2864..49a0cc5a2dc9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:32 GMT + - Mon, 25 Jan 2021 17:49:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:24 GMT ms-cv: - - 7HJUgoqEY0+tMZj1LHMLXA.0 + - wEyH0YIoVEaJYqd4cCtWRQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:32.6909335+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:23.8373762+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:24 GMT ms-cv: - - p+rktYsA+kuFz/9yWOVPEA.0 + - EK6RBGx/kUifI0FRxN7XpA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 302ms + - 85ms status: code: 200 message: OK @@ -85,70 +89,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:4c1fe998f91149eb8633785e068a5631@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-361b-ea7c-5a3a0d0003ba"}}' + body: '{"chatThread": {"id": "19:0258ac0a1d77422ea1c130b891552808@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:49:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-c761-1655-373a0d002768"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:34 GMT - ms-cv: 4qusa0VscESH1xeBLiFVog.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: ZpJm2YSpMEWhKuZJRPlomA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 893ms + x-processing-time: 857ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:49:25Z", "createdBy": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:34 GMT - ms-cv: z6wYzZ8u0ESCKP2S+F7/Ig.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: HlbdcVYqKkmNGomDFpDFwQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 262ms + x-processing-time: 258ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:12:35 GMT - ms-cv: +PzgPuRsh02CGevSpzIY6Q.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: sqH5Iu3F3USpM0IKHyfa3w.0 strict-transport-security: max-age=2592000 - x-processing-time: 338ms + x-processing-time: 301ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -161,25 +165,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:35 GMT + - Mon, 25 Jan 2021 17:49:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:51 GMT + - Mon, 25 Jan 2021 17:49:42 GMT ms-cv: - - 6+d84SqH7k6lschaPQeALQ.0 + - c1H6lZWItUu4maIiIiHqVA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16524ms + - 16231ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml index 30d7554fc94e..aaa113d87b8d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:51 GMT + - Mon, 25 Jan 2021 17:49:43 GMT ms-cv: - - v0EW/9SY7kuve9HcIDEwaw.0 + - i421D7R/XEK6vANt6iooxw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 254ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:52.0754754+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:42.1805472+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:43 GMT ms-cv: - - zGJBbUNCrEuvK63pHVjseA.0 + - clTWLXF66UWxMYad2LTFiQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 123ms status: code: 200 message: OK @@ -85,46 +89,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:da28cac25aab45e8bf89ef720b43a6bf@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-81cf-ea7c-5a3a0d0003bb"}}' + body: '{"chatThread": {"id": "19:84b0db05082941678ec4f015b8f9f172@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:49:43Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8c-0edd-1db7-3a3a0d002adc"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:54 GMT - ms-cv: QKVSvwPzv0qXwIWDsNc6/A.0 + date: Mon, 25 Jan 2021 17:49:43 GMT + ms-cv: p+z1na/BJ0Cmifj5okN3BA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 868ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:12:54 GMT - ms-cv: DffsqGfBnUWYl370pIEKHw.0 + date: Mon, 25 Jan 2021 17:49:43 GMT + ms-cv: h6St3wtw4kG4FvpZaS0gbw.0 strict-transport-security: max-age=2592000 - x-processing-time: 323ms + x-processing-time: 295ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -137,25 +141,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:54 GMT + - Mon, 25 Jan 2021 17:49:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - yjKTr3a6s0amd6k1VbgwHA.0 + - Vc5ZCGLGMUW/uXqcABzFow.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16288ms + - 16560ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml index 16720bd0fb34..60952805c5c8 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - 187AYzPatk2wYu28j4wx5g.0 + - Qk0HvRQqPk2J7r9gfDrPew.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 203ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:13:11 GMT + - Mon, 25 Jan 2021 17:50:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:10.6881288+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:50:00.6505801+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - ZG/QmqBSWUyXYi7mlMcHbQ.0 + - BamiJIwrykybfvYuXJSZAA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 299ms + - 92ms status: code: 200 message: OK @@ -85,69 +89,69 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0b66405c8f2c4b39aa3a8d2196994bf1@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:13:12Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-ca8b-557d-5a3a0d000460"}}' + body: '{"chatThread": {"id": "19:1991106ae2bc44599111db958a135016@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:50:01Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8c-5726-dbb7-3a3a0d002991"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:13:12 GMT - ms-cv: ozyc6vEKgkewN02Vl31xMg.0 + date: Mon, 25 Jan 2021 17:50:01 GMT + ms-cv: ooc73IhRREWsypKw81pY9w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 845ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:13:14 GMT - ms-cv: VHGrLByFTUijbFrNwesOgA.0 + date: Mon, 25 Jan 2021 17:50:04 GMT + ms-cv: 0tjprqjYqE+UvBF57b60hw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 384ms + x-processing-time: 316ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:13:15 GMT - ms-cv: Fj+XXuooM0qS2LkmB50IDQ.0 + date: Mon, 25 Jan 2021 17:50:04 GMT + ms-cv: f7ZM9fdmk06yesQhq8V1lg.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 295ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -160,25 +164,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:15 GMT + - Mon, 25 Jan 2021 17:50:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:31 GMT + - Mon, 25 Jan 2021 17:50:21 GMT ms-cv: - - sym6uodMakSuKLaG4eBS4g.0 + - 5I/T5tjsxU+S1gX75sAyJg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17019ms + - 16136ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml index 133a9a783629..3ea21d2b450f 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:32 GMT + - Mon, 25 Jan 2021 18:43:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:32 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - 66nTBSY+Okii5WsarUmmDg.0 + - oKRx4zh+QkaN0EcDBrWLTg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 76ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:32.650274+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:43:27.5398235+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - KzKzL1twJ0WwWKDyYl5J/g.0 + - gGgUG9cHAUid9CwRhrCt+g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 301ms + - 92ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - WZczyhAvAkajNH4/21t5tw.0 + - wq0vSfYE+k2kKi8sh1203Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 146ms + - 16ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:43:42 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:43:27.7341497+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:43:27 GMT + ms-cv: + - faDmhVQz+0KTIkx/VNBefA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 88ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:359bb36a2bca4db4bdd5d3a3c8b57583@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:13:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-2056-557d-5a3a0d000461"}}' + body: '{"chatThread": {"id": "19:59482b7f477148a7a9fe4fdcf23093e2@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:43:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabd-460d-1db7-3a3a0d002b6f"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:34 GMT + - Mon, 25 Jan 2021 18:43:29 GMT ms-cv: - - OydZhnmPGUGCoTahFLS3eA.0 + - WJsRBrQqZE2iI9ZiUMTSgQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 936ms + - 879ms status: code: 201 message: Created @@ -160,13 +207,13 @@ interactions: Connection: - keep-alive Content-Length: - - '182' + - '183' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:35 GMT + - Mon, 25 Jan 2021 18:43:30 GMT ms-cv: - - RvgxhlL+j0CEbX1hnOFAcg.0 + - I4AD08sPQkGV3X4vcBKv6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 885ms + - 408ms status: code: 201 message: Created @@ -199,25 +246,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:36 GMT + - Mon, 25 Jan 2021 18:43:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:52 GMT + - Mon, 25 Jan 2021 18:43:46 GMT ms-cv: - - 2G5FZKmerkOTQOcSVMpLgA.0 + - iOwJb897x0G8KkpKf5Efmg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16515ms + - 16109ms status: code: 204 message: No Content @@ -233,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:52 GMT + - Mon, 25 Jan 2021 18:44:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:08 GMT + - Mon, 25 Jan 2021 18:44:02 GMT ms-cv: - - RBA0k5mEu0+cUTaRTV2QTg.0 + - S6D8jA+Tv0KvQjFNJprXpw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16038ms + - 16057ms status: code: 204 message: No Content @@ -267,9 +318,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -277,13 +328,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:08 GMT + - Mon, 25 Jan 2021 18:44:02 GMT ms-cv: - - fpb0UMnnYUeZuvjw43iCzA.0 + - VxGMJuxHQ0OWPoPm7SVKtA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 313ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml index e7e43143dab2..29c034352320 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - GzCnrCvImEaHW5E+51dNyg.0 + - EC3zzJpZZUaK/irAzezSZw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:08.0923235+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:02.6489909+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - CcJoTLfoOECVSoogJIrecA.0 + - J9NQ172wPkeNzs1XTskP2A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 296ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:10 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:10 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - 8NnEy4VOhECDEeAVvJDSEw.0 + - /eNzY1NtRU++ZQ+1OiSjyg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 19ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:44:17 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:02.8464121+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:44:03 GMT + ms-cv: + - FX25cHsYP06xo1HHTIqfhA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 94ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0986da17e18842748f206bad3224ec3b@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:14:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-aeaf-557d-5a3a0d000463"}}' + body: '{"chatThread": {"id": "19:5d3dac447bbf4a819a4a01abd92d4067@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:44:04Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabd-cf37-1db7-3a3a0d002b72"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:11 GMT + - Mon, 25 Jan 2021 18:44:04 GMT ms-cv: - - 1Kn8y//W20iUTNW/gAULxQ.0 + - crpNg8/LG0yRASi6w51Vxg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 933ms + - 864ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:12 GMT + - Mon, 25 Jan 2021 18:44:04 GMT ms-cv: - - kuLzHjpkVkOHwHcv4iYdkQ.0 + - t1/a7+QqR0mljL2EzVyLlg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 894ms + - 404ms status: code: 201 message: Created @@ -199,25 +246,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:12 GMT + - Mon, 25 Jan 2021 18:44:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:28 GMT + - Mon, 25 Jan 2021 18:44:20 GMT ms-cv: - - TCh/T9s1PkGPW61WEJIADw.0 + - ogZg48W5Pkin//L7WZ8dwg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15993ms + - 15902ms status: code: 204 message: No Content @@ -233,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:28 GMT + - Mon, 25 Jan 2021 18:44:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:36 GMT ms-cv: - - 23ejVnv6O0yOu90P1eN+RQ.0 + - lGW2AwMWZE+nSyGQmw1W+w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16028ms + - 15985ms status: code: 204 message: No Content @@ -267,9 +318,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -277,13 +328,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:37 GMT ms-cv: - - IInBSeWpqESdqTAPVYhKRQ.0 + - X2vRWTp/8kK/LX+rpTDWhw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 338ms + - 322ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml index f37fb7df8870..bdf5c67f901c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - I1XTgQn8fEaERd7bA2XcSA.0 + - pP4N+j5G/EyszxIeVPhjtA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 65ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:45.0818798+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:37.7047435+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - osUMHo8HNUmqum6uNNUpEA.0 + - dKDAxuWQ8U+sSEVqAdb5lQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 300ms + - 87ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:46 GMT + - Mon, 25 Jan 2021 18:44:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - 4HJK7dzhgkeOvWHAB7lOYg.0 + - b8ZKJznCekOUyVDg21ueLA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 46ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:44:52 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:37.9540654+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:44:38 GMT + ms-cv: + - NvHp6Ofuj0mNEc5LiZ3W5A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 91ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ff503ee6c8594e28b67823c26844e110@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:14:46Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-3b50-ea7c-5a3a0d0003c0"}}' + body: '{"chatThread": {"id": "19:ffe1b3558127474e923fbd45cbb75e65@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:44:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabe-5817-1655-373a0d0027e5"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:46 GMT + - Mon, 25 Jan 2021 18:44:39 GMT ms-cv: - - 9zh/cwC2Q0qP7JoPsLcufQ.0 + - JPk94FunaEOLDxXJo/Er4Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 916ms + - 847ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:47 GMT + - Mon, 25 Jan 2021 18:44:40 GMT ms-cv: - - CHnUwQeLMUeD1tcUVcOGYA.0 + - pKEUet1MvUSJPpX3CzzV2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 972ms + - 834ms status: code: 201 message: Created @@ -200,9 +247,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -210,13 +257,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:48 GMT + - Mon, 25 Jan 2021 18:44:41 GMT ms-cv: - - uQNd0JCCkUCZ/yUN2OezLA.0 + - FnrADCL5ukWrri0XsSrNHg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 438ms + - 400ms status: code: 204 message: No Content @@ -232,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:49 GMT + - Mon, 25 Jan 2021 18:44:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:05 GMT + - Mon, 25 Jan 2021 18:44:56 GMT ms-cv: - - CwEP7775VEaSZ7bdoAmdAg.0 + - yAZHb7sH8kqk+953gRifKA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16464ms + - 16221ms status: code: 204 message: No Content @@ -266,25 +315,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:05 GMT + - Mon, 25 Jan 2021 18:45:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:21 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - X89yE3T/B0S+EybBRMKGBA.0 + - c2wSYaKuuUOZa+i+oVwVqw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15938ms + - 15598ms status: code: 204 message: No Content @@ -300,9 +351,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -310,13 +361,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - UHEqR0IiRUu3FOw/OBltlw.0 + - gNlvnW/roEGP9KhoVLAmXw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 319ms + - 341ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml index cc6458f02a09..34d5ef071562 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - TeHiskrrk0Sz+x3dUaejwg.0 + - 0ZFBvIj7f028BsNyzbE55w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:21.1504317+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:13.2602928+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - JlcRF/VHg02YiMeqTb7ZDQ.0 + - Dpfw4A/Py06l1S6VHGWKoA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 304ms + - 88ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:23 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:23 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - 1VUNCQ0aZUOyHEUoG+nwDA.0 + - inlBIKKwbkW/xg9m8FPIHw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 17ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:45:28 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:13.4429851+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:45:13 GMT + ms-cv: + - yNNUaxMf1EG9hP1IvSLU+g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 84ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:6b91ae6ba6cb4ae68173dd61b86cb059@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:15:24Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-cc06-ea7c-5a3a0d0003c2"}}' + body: '{"chatThread": {"id": "19:720589ea282043ef984f0ae54a25a7b7@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:45:14Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabe-e308-b0b7-3a3a0d002850"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:24 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - ujfAJwQus0KsuP9nVpb9Kg.0 + - b7XjO9YJ3Umt8+7HWKXBPg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1371ms + - 917ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:25 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - bqF+aMTF50KO7mot7QSieQ.0 + - Mh4OKIRPSkm+lIA6ogrsnA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 633ms + - 404ms status: code: 201 message: Created @@ -198,28 +245,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109325492", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:15:25Z", - "senderId": "sanitized"}' + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611600315871", + "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": + "2021-01-25T18:45:15Z", "senderId": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:25 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - /58MZ5FKWE2jU6pN1v8+0w.0 + - RASQqexRcUy1Nyfc/xTe1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 258ms status: code: 200 message: OK @@ -235,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:26 GMT + - Mon, 25 Jan 2021 18:45:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:42 GMT + - Mon, 25 Jan 2021 18:45:32 GMT ms-cv: - - DNome154JkqG75Xc14hXpw.0 + - PLScvFqsBEiDs7+JKKsILA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16646ms + - 16309ms status: code: 204 message: No Content @@ -269,25 +318,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:42 GMT + - Mon, 25 Jan 2021 18:45:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:59 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - 2+iM10qwgEqYqzy89vZZiQ.0 + - L4ZeN4YwM0+3RHrTzHdQKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16653ms + - 17062ms status: code: 204 message: No Content @@ -303,9 +354,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -313,13 +364,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:15:59 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - hL3pKmy150S7qGSzF2YGZw.0 + - LAb34vFSBUyVfz7q6sl1MA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 300ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml index 3e21f6fc822c..a7e61178404f 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - B5DZN3xiXkqoOoSfkesxPQ.0 + - unagzh5SdUWK3NwBE1yL/A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 155ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:59.9494375+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:49.6938238+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - Wl+H+wwwtkCy4Mh29Lcn9Q.0 + - 9ODd3u+FOUm/vsOggAHx7g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 311ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:50 GMT ms-cv: - - ixXvh6V1kU+5r8N9dnFLFA.0 + - oiinWEDTNUGDX074oij4VA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 39ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:46:04 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:49.9706876+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:45:50 GMT + ms-cv: + - 01nDKwhwV0O5pdnS6AHlIw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 139ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:e841d6d0e14b4af09279e8e971c22d61@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:16:02Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf10-5fbb-ea7c-5a3a0d0003c4"}}' + body: '{"chatThread": {"id": "19:7c6b05f056fd4d34b35cfc35323d8be7@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:45:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabf-715b-dbb7-3a3a0d0029f0"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:02 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - WRXHBIB+dUedWWB7oGKMoA.0 + - Dhg0lbDoZEOVRTonjcUCsw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1375ms + - 867ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:03 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - t0V2QXV8J0CcHnSlv6JYVg.0 + - H1leZtlFuU6wSNRJxLtTIg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 698ms + - 381ms status: code: 201 message: Created @@ -198,9 +245,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -209,15 +256,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:05 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - 2yzw1m4AZ0SEHdkx3tzgPQ.0 + - dyYYQH20WUmTucn9zxXrog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 283ms + - 273ms status: code: 200 message: OK @@ -231,9 +278,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -242,15 +289,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:06 GMT + - Mon, 25 Jan 2021 18:45:53 GMT ms-cv: - - Cnxq7R6BRUmRVki3OcGhmw.0 + - erlDOQjoo0Cv/HB9j6spsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 358ms + - 373ms status: code: 200 message: OK @@ -264,9 +311,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -275,15 +322,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:06 GMT + - Mon, 25 Jan 2021 18:45:53 GMT ms-cv: - - M28vXivcv0u8fbbpV37AAQ.0 + - 04qxqyiO20KVsF57tWUDQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 350ms + - 373ms status: code: 200 message: OK @@ -297,9 +344,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -308,15 +355,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:07 GMT + - Mon, 25 Jan 2021 18:45:54 GMT ms-cv: - - +EfVJuIMCUqXrfZAYBwXxA.0 + - 87ngpgE1mES390iTfyKx/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 361ms + - 370ms status: code: 200 message: OK @@ -332,25 +379,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:07 GMT + - Mon, 25 Jan 2021 18:46:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:16:24 GMT + - Mon, 25 Jan 2021 18:46:11 GMT ms-cv: - - KcmKBuUdTUCtgooQYhrquQ.0 + - mC7CyMdqqkG4tPyB2CwseQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17041ms + - 17446ms status: code: 204 message: No Content @@ -366,25 +415,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:24 GMT + - Mon, 25 Jan 2021 18:46:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:16:40 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - JD9RCbq3b0iNcH9u/ay65Q.0 + - 50WMfvrMEkCkQV0A0mKJVw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16121ms + - 15840ms status: code: 204 message: No Content @@ -400,9 +451,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -410,13 +461,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:16:40 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - g0JnDl0+r02hUgbV8ws98g.0 + - FuDzf6sAmkWFF5ElUpmNmQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 337ms + - 336ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml index 2551bed9e37b..221f514b0ad8 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - nO8pu1egoEqqv8dH+gISKw.0 + - A5pPuFL+jke0+zWXUGLVfg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 177ms + - 23ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:16:41.6855087+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:46:27.3419406+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - 6zrrKPD94k2WqW3dc+YpKQ.0 + - jOQ6al5nIkCa1b1wRg/ncg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 692ms + - 102ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:46:27 GMT + ms-cv: + - /T+IygIyY0e5hC1gNzsawA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 22ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:46:42 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:46:27.5691461+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - 5q5EhgpRNUaM6EcVLJdvng.0 + - KUCRC91QakGemTcUH9vSDA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 103ms status: code: 200 message: OK @@ -126,27 +173,64 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d499e180c13f4066aacaf7d0fe3c24fb@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:16:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-0133-8a72-5a3a0d00034e"}}' + body: '{"chatThread": {"id": "19:bdd087fab6e444298e40ddf3196c7b4d@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:46:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac0-043e-1db7-3a3a0d002b77"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:43 GMT + - Mon, 25 Jan 2021 18:46:29 GMT + ms-cv: + - f/AJ3Z5SFU6zDL8JRjUcDw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 865ms + status: + code: 201 + message: Created +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + response: + body: '{}' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:46:30 GMT ms-cv: - - WAg3UltJL0Gc1twzjSkMzA.0 + - sB0o36MSsEa5SAczOyG6Gg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 881ms + - 420ms status: code: 201 message: Created @@ -160,9 +244,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -171,15 +255,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:46 GMT + - Mon, 25 Jan 2021 18:46:30 GMT ms-cv: - - 02zCDsS1T0KWqcfYynbtIw.0 + - lpA+Ry8mskmpmVZfdv9w2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 254ms + - 269ms status: code: 200 message: OK @@ -195,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:46 GMT + - Mon, 25 Jan 2021 18:46:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:02 GMT + - Mon, 25 Jan 2021 18:46:46 GMT ms-cv: - - UtzQEybrkEqMBVSxZFW/sQ.0 + - 1KdvNjFZykWrHIt7M1SdJA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16069ms + - 17056ms status: code: 204 message: No Content @@ -229,25 +315,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:02 GMT + - Mon, 25 Jan 2021 18:47:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:18 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - rDK9fH5K30ywZKK8eWhfRw.0 + - uCZMYGRArUqybun05SEiXw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16353ms + - 15838ms status: code: 204 message: No Content @@ -263,9 +351,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -273,13 +361,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:17:18 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - +jLVieBu6E6QNZ9Z+bVNGg.0 + - K79YHhB3H02KxQKZUOJnUQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml index 0d0b93840a13..ddfafe727530 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - Dltg9sSjFk66pNR2joGILg.0 + - KmArPD0DlkSqMJdz9GRcUg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 166ms + - 73ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:17:20 GMT + - Mon, 25 Jan 2021 18:47:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:17:19.4713905+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:03.4279193+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - ZiU/1rWYvEKfxTOK8LLu2g.0 + - tsh0ScLFLkya9RmdOTewxQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 315ms + - 88ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:20 GMT + - Mon, 25 Jan 2021 18:47:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - mvzFcukGTUqeZ2asuDJJ/g.0 + - 5lagXms0TECdqtX2vLo/aw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 20ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:47:18 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:03.6776787+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:04 GMT + ms-cv: + - 8NGPvPCdfEOSE6QcA7Szxg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 137ms status: code: 200 message: OK @@ -122,34 +169,141 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '371' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"chatThread": {"id": "19:9cf33f763ee7413a960e302ec7fec09c@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:47:05Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac0-915f-b0b7-3a3a0d002853"}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:05 GMT + ms-cv: + - j5GIecWHXUiW5S1RIQLKPg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 909ms + status: + code: 201 + message: Created +- request: + body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender + name"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '84' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:8605832276104f699e1751ba0a5ad0c7@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:17:21Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-964c-d67a-5a3a0d000305"}}' + body: '{"id": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:22 GMT + - Mon, 25 Jan 2021 18:47:05 GMT ms-cv: - - t+ezdL/y5kmczFWlGTD00g.0 + - OlL0PRQ/fkO+yDmKgEuRvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1440ms + - 397ms status: code: 201 message: Created +- request: + body: '{"chatMessageId": "sanitized"}' + 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.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-length: + - '0' + date: + - Mon, 25 Jan 2021 18:47:06 GMT + ms-cv: + - 05YTSTjukU2ZSs5wc+MRQA.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 919ms + 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.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:06 GMT + ms-cv: + - FXpjg45T3U6FN7yxw4SpQg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 283ms + status: + code: 200 + message: OK - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -165,9 +319,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +330,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:23 GMT + - Mon, 25 Jan 2021 18:47:07 GMT ms-cv: - - NmpU5sDtYkiuvJBVQohbxA.0 + - Zlr909DLs0m4XczUd4zTpw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1186ms + - 403ms status: code: 201 message: Created @@ -202,9 +356,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -214,16 +368,122 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:17:24 GMT + - Mon, 25 Jan 2021 18:47:08 GMT + ms-cv: + - rd4UCH52yke6ef8kuyVSrQ.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 457ms + 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.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:09 GMT ms-cv: - - teoJraafMUWmKOtE4O8BzA.0 + - n2oTYPeq8kS0bGVZI/yQbg.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 627ms + status: + code: 200 + message: OK +- request: + body: '{"priority": "Normal", "content": "content", "senderDisplayName": "sender_display_name"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:08 GMT + ms-cv: + - GjfH+plNL0adiE91Kog0iQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 933ms + - 395ms status: code: 201 message: Created +- request: + body: '{"chatMessageId": "sanitized"}' + 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.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-length: + - '0' + date: + - Mon, 25 Jan 2021 18:47:09 GMT + ms-cv: + - G9IEzgiEMUC1OPvOnbJB9w.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 464ms + status: + code: 200 + message: OK - request: body: null headers: @@ -234,9 +494,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -245,15 +505,48 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:27 GMT + - Mon, 25 Jan 2021 18:47:10 GMT ms-cv: - - oeBb+22AP0W0FCJ1quRigw.0 + - qAI8O1oZPkaFrXwZVb7LKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 270ms + - 259ms + 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.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:10 GMT + ms-cv: + - 2lCXU/5yNkKfAs/2NJJB5A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 285ms status: code: 200 message: OK @@ -269,25 +562,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:27 GMT + - Mon, 25 Jan 2021 18:47:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:43 GMT + - Mon, 25 Jan 2021 18:47:27 GMT ms-cv: - - ki7CEeQ/mU2VOiFnC67i+Q.0 + - d5pEL95LqEyR71OXWI337Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16397ms + - 16456ms status: code: 204 message: No Content @@ -303,25 +598,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:43 GMT + - Mon, 25 Jan 2021 18:47:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:59 GMT + - Mon, 25 Jan 2021 18:47:43 GMT ms-cv: - - mQUUZH1EGU29zkFvzoG/SQ.0 + - PJQsOqBJK0GFzRA9795CQw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16120ms + - 16382ms status: code: 204 message: No Content @@ -337,9 +634,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -347,13 +644,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:17:59 GMT + - Mon, 25 Jan 2021 18:47:43 GMT ms-cv: - - 5NZgTuAEOUWUgjq9q+aXEA.0 + - nRKtD26MrkOm57r8GFmoGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 358ms + - 335ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml index de911e80a176..160928e2a56c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - 3NJR2sd9aUmJvkZybvSGxg.0 + - hAFX3HtLFk2WrpJilExuqQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 165ms + - 26ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:00.1956214+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:44.1891435+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - fD8vRzaJhE6fwnXRvZHHdA.0 + - r1ZraHVUc0Kk+R7srEeZ4w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 100ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - JhA44KN83UuoS7EraJw/ng.0 + - dWXqia6WT0CREMlt9Oi2mQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 59ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:47:59 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:44.4376621+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:45 GMT + ms-cv: + - mp99H3mJ7Uutem2HkGa79A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 108ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:456de853bd9846abbda594b6ec8bf5bb@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:18:01Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-3568-8a72-5a3a0d000350"}}' + body: '{"chatThread": {"id": "19:82ba24b810eb47e6b17847459c007e48@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:47:45Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-307a-dbb7-3a3a0d0029f6"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:46 GMT ms-cv: - - WG90OvISUEaDg4I4IYgwvA.0 + - n2JccLiM1U+bdABv199L+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 918ms + - 909ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:02 GMT + - Mon, 25 Jan 2021 18:47:46 GMT ms-cv: - - Qg983hI0SEGykqR8zvMGpw.0 + - efjYFuOHQUOmsO3MXjJfKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 606ms + - 915ms status: code: 201 message: Created @@ -199,9 +246,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-37d1-8a72-5a3a0d000351?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-3181-dbb7-3a3a0d0029f7?api-version=2020-11-01-preview3 response: body: string: '' @@ -209,13 +256,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:18:03 GMT + - Mon, 25 Jan 2021 18:47:48 GMT ms-cv: - - 4QRltxC+2EKp4tnv6nMXHw.0 + - eW8hJl5XoE2dYlA2YzZ4/w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 620ms + - 492ms status: code: 204 message: No Content @@ -231,25 +278,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:04 GMT + - Mon, 25 Jan 2021 18:48:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:21 GMT + - Mon, 25 Jan 2021 18:48:04 GMT ms-cv: - - YTL+kNrhNECQZWAVnUbSvg.0 + - MzFRvSwdxkmOlpNRiuCGiw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17669ms + - 16344ms status: code: 204 message: No Content @@ -265,25 +314,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:22 GMT + - Mon, 25 Jan 2021 18:48:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:37 GMT + - Mon, 25 Jan 2021 18:48:20 GMT ms-cv: - - 1E6UA74F/EGzteH/pg2pkA.0 + - 87XO2Wx1q0K8EtqGfZxdfA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15656ms + - 16831ms status: code: 204 message: No Content @@ -299,9 +350,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -309,13 +360,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - mVyjUksZckqEk4AHu/DAyA.0 + - YjDxumxdJ0qX354pHiqEzw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 341ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml index 345d5f8af275..d82848b3f9df 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:37 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - jymPZjk2R0yoSKr6pph0Jw.0 + - 0buIK9u2NUqTbFGXXTpOIA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 34ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:37.6471134+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:21.5117801+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - DouD4iKmpEekqG5PXmercQ.0 + - TgBPHnIBdUyro+jBhGWe9Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 829ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:39 GMT + - Mon, 25 Jan 2021 18:48:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - OtZ2Wovbd06XnG5lOy5oWw.0 + - 3ek5D1jHy06GmrsihIP9Bw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 19ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:48:36 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:21.8301583+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:48:21 GMT + ms-cv: + - WvDb/QJhGUadJsBcmo6i3Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 186ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bc468cd1db24417292bacc90ef943098@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:18:40Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-c997-557d-5a3a0d000465"}}' + body: '{"chatThread": {"id": "19:d766ead3513b415b910a97da596b30d1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:48:23Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-c260-1db7-3a3a0d002b79"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:40 GMT + - Mon, 25 Jan 2021 18:48:24 GMT ms-cv: - - DbdRGxIK9kCWiI+sFgI3zg.0 + - Osv9RxGhDU2PccuTgZW+3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 907ms + - 1363ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:41 GMT + - Mon, 25 Jan 2021 18:48:24 GMT ms-cv: - - Aj/RzW1RQEC+CqJOqtWPNA.0 + - NtYIc4WqmU2JPtTI+YeSwQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 965ms + - 839ms status: code: 201 message: Created @@ -200,25 +247,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:42 GMT + - Mon, 25 Jan 2021 18:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:59 GMT + - Mon, 25 Jan 2021 18:48:41 GMT ms-cv: - - IG02kA6SKkCwvYUHDvR3WA.0 + - Lsiaa67PjU+nVOrT8m9P9Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16938ms + - 16239ms status: code: 204 message: No Content @@ -234,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:59 GMT + - Mon, 25 Jan 2021 18:48:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:14 GMT + - Mon, 25 Jan 2021 18:48:58 GMT ms-cv: - - Rate8STPsk+PIG99Q1RfYw.0 + - MbkBhrsinE+QD84NbZCrQg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15845ms + - 16919ms status: code: 204 message: No Content @@ -268,9 +319,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -278,13 +329,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - p11exrl62EqCRIxg31Wd3w.0 + - BVi6oPe+5UG6e6S9QNnTSQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 334ms + - 827ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml index 909d2d62a2ed..6ab5bd36e1dc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - 9B13Qh1lnEqkB65BipStJg.0 + - XZkHwo6/W0+Bzq6dyeeCCg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 151ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:15.2380845+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:59.0835653+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - TPu/2q0sMEaO07zgZ6O8rg.0 + - JdJTa+oRTkSSakDBz9pZsQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - +Edu0TFU+Ual3sffZzplJA.0 + - QpGJuM3UvU+se/Wlcb1lDw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 17ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:49:13 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:59.2906129+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:48:59 GMT + ms-cv: + - F/hqdesaVkCg4fHMmnczCg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 87ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:5056a79325b042a89696c0b982630460@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:19:16Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-5a8f-557d-5a3a0d000467"}}' + body: '{"chatThread": {"id": "19:162e576cab854f47b30bcaf07879f5b2@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:49:00Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac2-552f-1655-373a0d0027f4"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:17 GMT + - Mon, 25 Jan 2021 18:49:01 GMT ms-cv: - - vebmpTDNkkeTVU1+sAH6Dw.0 + - 1Xt0uc4zJUy1xojMrIWMpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 902ms + - 951ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:18 GMT + - Mon, 25 Jan 2021 18:49:01 GMT ms-cv: - - cJX+3btc/kKrmHAibbdfVA.0 + - VKdathFUekG+gUTSDk70GA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1097ms + - 400ms status: code: 201 message: Created @@ -202,9 +249,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -214,16 +261,16 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:19:19 GMT + - Mon, 25 Jan 2021 18:49:02 GMT ms-cv: - - Rkg9AqRNkkiH+Nyfes5bRw.0 + - 3Zd6k86hREOyYHcowhlpKQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 927ms + - 467ms status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -236,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:20 GMT + - Mon, 25 Jan 2021 18:49:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:35 GMT + - Mon, 25 Jan 2021 18:49:18 GMT ms-cv: - - 7k0PBGQzeEu/gkxKkHijcA.0 + - Ld9pEcW3SEawJ1z7NQN6bQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15787ms + - 16189ms status: code: 204 message: No Content @@ -270,25 +319,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:35 GMT + - Mon, 25 Jan 2021 18:49:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:51 GMT + - Mon, 25 Jan 2021 18:49:33 GMT ms-cv: - - wQukQED0R0SMWiOLR/Ie1Q.0 + - Ukahzq6KT0OEQNQ0jZ5tnA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16167ms + - 15882ms status: code: 204 message: No Content @@ -304,9 +355,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -314,13 +365,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - 9gB5foCYLE+jgzmvodL4EQ.0 + - TfGXCeZ4kEmWlC+gh2QlVA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 331ms + - 351ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml index 8da013878468..d3c23240f3f9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - Ixvn7DAg0ki714t/bxmmIw.0 + - u5Dn9rZgQESUT6j2WwioAQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 60ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:52.3144675+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:49:34.5573468+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - ETytSSl0XUWX3kC5aBl/Kg.0 + - BnOwBi5KOUmxVJ059Kk6QQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 303ms + - 92ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - D00mowhZ6Uu8m9iiUoU7Ig.0 + - p87XfAaEGkaV5KsADgDrDw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 56ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:49:49 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:49:34.8839082+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:49:35 GMT + ms-cv: + - 8PhH5px9UEeVJehOZaki4Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 164ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ca80a79c25404732b3ca2a073c7087ac@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:19:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-eb6c-ea7c-5a3a0d0003c8"}}' + body: '{"chatThread": {"id": "19:88479da3e4d64ebfb832b39ee347fdf8@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:49:36Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac2-dfae-dbb7-3a3a0d0029fc"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:36 GMT ms-cv: - - u7z0tSrr7kutmQSCvLlpeg.0 + - Ru4iLb6HF0KNJccrScRUzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 891ms + - 925ms status: code: 201 message: Created @@ -162,9 +209,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +221,13 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:19:54 GMT + - Mon, 25 Jan 2021 18:49:37 GMT ms-cv: - - CRrCY2CJ9UC3esFTkJe7XA.0 + - ahnrKHShU0GYrYdsT/63yw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 368ms + - 366ms status: code: 200 message: OK @@ -196,25 +243,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:55 GMT + - Mon, 25 Jan 2021 18:49:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:11 GMT + - Mon, 25 Jan 2021 18:49:53 GMT ms-cv: - - ylscA12t7E2HXBY9KbHEuw.0 + - dA1Pe/Mc8UyoGzSBJdW2QA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16848ms + - 16107ms status: code: 204 message: No Content @@ -230,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:12 GMT + - Mon, 25 Jan 2021 18:50:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:27 GMT + - Mon, 25 Jan 2021 18:50:09 GMT ms-cv: - - eB23wF+kVkiscyLYF2YQLg.0 + - Ccwx02p830y2G5dwqBDFxw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16005ms + - 16324ms status: code: 204 message: No Content @@ -264,9 +315,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -274,13 +325,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - qfc70u4p3ECVjw+iGml7LA.0 + - eEeTfvC/80qvd3dZd5FXpA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml index 76a2a229fc73..66298f31d28e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - St3ER/ccE0GYZWciUEPdEg.0 + - ER6ZwojbRU25lC/jQBHJHQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:20:28.3872364+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:10.1475336+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - NbyFufDzz0SxWrHiAOLGFQ.0 + - VrXqjRTrX0O68qRzVeyMVA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 301ms + - 204ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - 2Mw1g8HA2UKAtGCcJNi24g.0 + - Qu4QHRGJZ0+hIC/xGj7pMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 70ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:50:25 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:10.4345651+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:50:10 GMT + ms-cv: + - T5zZPCnrlEOUmF7oaRRo/A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 96ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:463e8703c52f4c039b7148b0bde0fb30@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:20:29Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf14-785a-ea7c-5a3a0d0003ca"}}' + body: '{"chatThread": {"id": "19:3911867b048a47b38475f200da2694dd@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:50:11Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac3-6a4a-b0b7-3a3a0d002858"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:12 GMT ms-cv: - - IWSivLR7gUGGdyWnJaYR6w.0 + - nOzVAvnhe0S4zsvCVQrTaQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 909ms + - 898ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:12 GMT ms-cv: - - bREu3gFgE0eSSBdgIyQUjA.0 + - 15OjgifpRUCAdnLl9Bikkw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1116ms + - 375ms status: code: 201 message: Created @@ -202,9 +249,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -212,13 +259,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:13 GMT ms-cv: - - Fn/to4n7ZEenSrRp+koBGA.0 + - 3jh3XvNRC02YgZwuzxizmA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 706ms + - 663ms status: code: 204 message: No Content @@ -234,25 +281,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:48 GMT + - Mon, 25 Jan 2021 18:50:30 GMT ms-cv: - - cVa9baZuVUm0hSDQMjvxJQ.0 + - cvGjpS5GREmlk3rW36pinQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16375ms + - 16604ms status: code: 204 message: No Content @@ -268,25 +317,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:49 GMT + - Mon, 25 Jan 2021 18:50:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:04 GMT + - Mon, 25 Jan 2021 18:50:47 GMT ms-cv: - - EB2WsHfqIkGAnIR8iZALkA.0 + - D9w5mNqoU0KT6e/jxpK2EQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15844ms + - 17032ms status: code: 204 message: No Content @@ -302,9 +353,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -312,13 +363,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:47 GMT ms-cv: - - JcCxOBzqvk+l4soVKD+SSQ.0 + - RFAWXEc+5ky4lOHY03f5Fg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 297ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index 27a15ce95f2d..25f25e5740f6 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:51:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - QuQ1x/oiR0mJtbiEdtIoVA.0 + - lazOoGt+00eZICg9LY242Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 153ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:21:06 GMT + - Mon, 25 Jan 2021 18:51:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:05.4107581+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:47.4757428+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - v6Zui51lh0CfBx2/w8enZQ.0 + - Eoy8SCZD7k2c9yeOi36ymw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 302ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:06 GMT + - Mon, 25 Jan 2021 18:51:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - ZP2h/eMfrU6mmgBIefnkcA.0 + - WDCShi1UKkeQ6MdSRdSX2g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 155ms + - 18ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:51:02 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:47.7167105+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:50:48 GMT + ms-cv: + - DYZzpFoh2k+Hxnq+eEm83Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 121ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f18ea01c15a140e2bdcb907dd02d17bc@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:21:07Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-08ee-d67a-5a3a0d00030d"}}' + body: '{"chatThread": {"id": "19:f391862cc2ae4428adfd76c6e568bd73@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:50:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac3-fc7d-b0b7-3a3a0d00285e"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:07 GMT + - Mon, 25 Jan 2021 18:50:49 GMT ms-cv: - - P+cuV0L6AU6zXEB22eej+w.0 + - VenWef+PtUu1tAPQoFRHqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1196ms + - 858ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +221,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:07 GMT + - Mon, 25 Jan 2021 18:50:49 GMT ms-cv: - - pkZAPfwy+ESXElSzF+7nMA.0 + - /3EVg5YMgE6cJJdl/Jh5sg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 435ms + - 442ms status: code: 204 message: No Content @@ -196,25 +243,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:08 GMT + - Mon, 25 Jan 2021 18:51:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:24 GMT + - Mon, 25 Jan 2021 18:51:06 GMT ms-cv: - - Ca7rxXzdCUGI73zXqpTAsQ.0 + - lZtD/xEgfEuzY7JM3QeAKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16034ms + - 16153ms status: code: 204 message: No Content @@ -230,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:24 GMT + - Mon, 25 Jan 2021 18:51:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:40 GMT + - Mon, 25 Jan 2021 18:51:22 GMT ms-cv: - - X+RRVeJ1SEO5d05a96JhZA.0 + - m6sFATiAeki2ocseITIcKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15949ms + - 16511ms status: code: 204 message: No Content @@ -264,9 +315,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -274,13 +325,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:40 GMT + - Mon, 25 Jan 2021 18:51:23 GMT ms-cv: - - 9gvg5Bb6KEaPFOoT2w8FxA.0 + - qnaIze33CkuhOBH//Puv9w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 549ms + - 518ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml index 81fac87bb393..22fe09caa173 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:41 GMT + - Mon, 25 Jan 2021 17:58:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:41 GMT + - Mon, 25 Jan 2021 17:58:18 GMT ms-cv: - - 2LorrreVVE2CPWLquj9yQA.0 + - rHgeoGFlLku33mpgfw5gMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 227ms + - 68ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:41.755253+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:17.9433567+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:18 GMT ms-cv: - - CCBXNXMRF0KzkrCmTk/k0g.0 + - o9fwip3y9UqdkzbZvw9CRg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 610ms + - 316ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:19 GMT ms-cv: - - lw9pC3bmQEm6MxFLL1nw1Q.0 + - wVPrEUfCqk2+JjM1+ZSxeQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 146ms + - 27ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 17:58:32 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:18.1641302+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 17:58:19 GMT + ms-cv: + - bXzSDngez0OHHmrQMYRMeQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 88ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f58d0ab0c88941a092c22271aad09852@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:21:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-958c-b274-5a3a0d00030a"}}' + body: '{"chatThread": {"id": "19:77e359cb7f1e442799794eef6f629d2b@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:58:19Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da93-ecca-9c58-373a0d00274b"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:21:43 GMT - ms-cv: izfainGH9UultFKJlJtcKQ.0 + date: Mon, 25 Jan 2021 17:58:19 GMT + ms-cv: 0wBX30Zdyk+xA/ypWZQhBw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 881ms + x-processing-time: 947ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,45 +197,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:21:44 GMT - ms-cv: c7AfQKgibUSTJwojfLjZNg.0 + date: Mon, 25 Jan 2021 17:58:20 GMT + ms-cv: qTX9ZATdVUyAR56i2zfGkQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 422ms + x-processing-time: 921ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:21:45 GMT - ms-cv: /hoy1W/onUiMQgMnhUYA6A.0 + date: Mon, 25 Jan 2021 17:58:21 GMT + ms-cv: 8tvnVNJDmUClr6pfmuSljw.0 strict-transport-security: max-age=2592000 - x-processing-time: 846ms + x-processing-time: 364ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -201,25 +248,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:45 GMT + - Mon, 25 Jan 2021 17:58:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:02 GMT + - Mon, 25 Jan 2021 17:58:38 GMT ms-cv: - - VI1U3CC7bkqInLyODx/afQ.0 + - MGUP/uCoj0eIUpLHi/fFWw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17077ms + - 16730ms status: code: 204 message: No Content @@ -235,25 +284,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:03 GMT + - Mon, 25 Jan 2021 17:58:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:58:55 GMT ms-cv: - - x7BQE3LbpkiYqQWc5q1dMA.0 + - IgKTJsIZeEmCNftLo2QP/w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15836ms + - 16961ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml index 0f90a14f4057..8fc5e138ec43 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - i3AuTmSmn0q9WnGX9fA1QQ.0 + - RtwVoY1XgUGqclR603WFkA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 199ms + - 56ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:18.1425741+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:55.2938238+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - 9wdv++LAH0mgaXrr/tDozg.0 + - iPvMUhYgcU+Uf3cVoJ+gnA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 613ms + - 107ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:20 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - kTMO2CNqkUiKg9bc1qz4jQ.0 + - 5HI9z2QMfk6yX6bQHtEgUw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 24ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 17:59:09 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:55.5097637+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 17:58:56 GMT + ms-cv: + - HHzuI4NqrUKuPKPdw2D/3w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 95ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:45d4d6be07cc439fb70bdaf9b905e520@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:22:20Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-27c8-557d-5a3a0d000469"}}' + body: '{"chatThread": {"id": "19:f035c9acf85e427f912733facb9c19e8@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:58:56Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da94-7f88-9c58-373a0d00274f"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:21 GMT - ms-cv: dQx9iniFREG9KCyLYteV9Q.0 + date: Mon, 25 Jan 2021 17:58:56 GMT + ms-cv: MR7T714tNkOnLK8gHMmW5Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 886ms + x-processing-time: 948ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,45 +197,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:21 GMT - ms-cv: NeVYJ4578E6+7UVCqHdtSg.0 + date: Mon, 25 Jan 2021 17:58:57 GMT + ms-cv: Ej8jZYw0M0+p2Kvv9ku6uw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 473ms + x-processing-time: 412ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:22:22 GMT - ms-cv: SHC7D0cDJk6ib6AndpvSEA.0 + date: Mon, 25 Jan 2021 17:58:57 GMT + ms-cv: X0Jpzfy7Q0O4hSdT6xAh5g.0 strict-transport-security: max-age=2592000 - x-processing-time: 339ms + x-processing-time: 317ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -201,25 +248,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:22 GMT + - Mon, 25 Jan 2021 17:59:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:38 GMT + - Mon, 25 Jan 2021 17:59:14 GMT ms-cv: - - yvUsum1HDUu5YOBMVanEIw.0 + - zEGbG+bbyUuDYhPtU5WYAg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16329ms + - 16262ms status: code: 204 message: No Content @@ -235,25 +284,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:39 GMT + - Mon, 25 Jan 2021 17:59:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:54 GMT + - Mon, 25 Jan 2021 17:59:31 GMT ms-cv: - - HOhu3r71oEKl3jGZ8i9xTw.0 + - nUoB65v6Y0SnIhabxkhsAQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16424ms + - 17012ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml index 474328f1a21e..d9efe800f3ab 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:31 GMT ms-cv: - - OjbRiE/LhEODqGDqFA+rCw.0 + - SUCjwSCRF0+F71LFULiu4g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 91ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:55.4453735+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:59:31.4792589+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:32 GMT ms-cv: - - Op65QnqN4USY/umg4JWxJw.0 + - NkVybVFFxkyK01zh+y4bCw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 307ms + - 93ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:32 GMT ms-cv: - - 4DVqr9m4OUmb2cyfXNmQkw.0 + - Sbtv2HhWbUC6Mxlj2Qnvxg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 33ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 17:59:45 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:59:31.7005393+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 17:59:32 GMT + ms-cv: + - L8BSYWijCkW8H3TaaQhmjw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 95ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:75d97b8804224f23b1c22ad659ebb7ed@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:22:57Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-b6c2-8a72-5a3a0d000353"}}' + body: '{"chatThread": {"id": "19:9fd5acb13c92453f889d12755eb7c90a@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T17:59:33Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da95-0cdc-1655-373a0d00278b"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:56 GMT - ms-cv: 2BCjv5Bkek6RycAYy1oApw.0 + date: Mon, 25 Jan 2021 17:59:33 GMT + ms-cv: lPEPcWmUCUuAUi9PXtupFQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 928ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,67 +198,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:58 GMT - ms-cv: G3kCbuUfc0GHAeHbro/GTA.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: C4K03M212USOp79bN00yXg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1154ms + x-processing-time: 407ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:22:59 GMT - ms-cv: PYDanOAcJki/iH1OU/BNTQ.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: g6s2vHkpukm89xleWxrHjQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 433ms + x-processing-time: 456ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:22:59 GMT - ms-cv: r5AjMI0V10eTwkmPL5RVRQ.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: kL02ZjFZ5UiF2ztCmIT1Ow.0 strict-transport-security: max-age=2592000 - x-processing-time: 341ms + x-processing-time: 340ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -224,25 +271,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:00 GMT + - Mon, 25 Jan 2021 17:59:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:16 GMT + - Mon, 25 Jan 2021 17:59:51 GMT ms-cv: - - 47M/SEVXPEaTGr2NQ5sLxg.0 + - xCHUmXbCDEeb/siTdlkcsw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16177ms + - 16524ms status: code: 204 message: No Content @@ -258,25 +307,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:16 GMT + - Mon, 25 Jan 2021 18:00:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:31 GMT + - Mon, 25 Jan 2021 18:00:07 GMT ms-cv: - - jzTTrYkt1UOaLYVR+RNW8A.0 + - flWCwVje/0C+fRQqo8x/DA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15941ms + - 16874ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml index 4040ae078763..34b2e7274af9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - StJ2O77s9ECuQCOCCIeYQw.0 + - tQxleHmHkEuyxpWel1ulQA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 204ms + - 23ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:23:32.2067497+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:08.2281789+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - w6RWnFRD6Emlw0rCwVCsLA.0 + - YEPqapzrWUWEe9vSfNvgAw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 312ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - b9EAP1/PmUSnx4z+JfKJWg.0 + - eMgvY98I4kSo81U4pS1uOw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 21ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:00:22 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:08.437144+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:00:08 GMT + ms-cv: + - +Ho0NAb/gEy0yRrD2MLnww.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 101ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ba21b6b0572c4ac3a929a2cc9f859eae@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:23:33Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-464f-8a72-5a3a0d000355"}}' + body: '{"chatThread": {"id": "19:d2c1043b48d2468ebc020f6905d732c4@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:00:09Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da95-9c6c-b0b7-3a3a0d002819"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:33 GMT - ms-cv: sHAWzqSkIUCB7X46in4thA.0 + date: Mon, 25 Jan 2021 18:00:09 GMT + ms-cv: zgnxALMi9EemXZ7FnakVnA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 943ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,70 +198,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: 4DHRla+JP063fmFfGhKzuQ.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: APHJNLJyp0GBk9cfVQT1IQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 691ms + x-processing-time: 409ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109814877", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:23:34Z", - "senderId": "sanitized"}' + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611597610872", + "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": + "2021-01-25T18:00:10Z", "senderId": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: 9FCYEV6oUkOqUA8jWrbz6g.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: luXG3Onm+0GC6t6US/hudQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 264ms + x-processing-time: 281ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: AI3FuuNdjkiZziCVbffCmg.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: u5PZNfUjj0WoCI+EsVOBRw.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 349ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -227,25 +274,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:36 GMT + - Mon, 25 Jan 2021 18:00:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:52 GMT + - Mon, 25 Jan 2021 18:00:28 GMT ms-cv: - - 3MqGz2FCMUafp1C5q4NhOg.0 + - CmZ70QbByk6NKkeYA5Rh+A.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16347ms + - 16459ms status: code: 204 message: No Content @@ -261,25 +310,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:52 GMT + - Mon, 25 Jan 2021 18:00:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:08 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - MPRsw0n63UCNlGY5+fhrMw.0 + - 7MnyqCHDvUao3ymZLPEwrA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16432ms + - 16470ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml index 08b15623a406..d1805dca089e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:08 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - aHfL2y5OmUS88T26MLAWfw.0 + - UEO7SMADk0KqCC+9T/uUcw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 19ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:08.949685+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:44.2533376+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - TmlRwrN9Y0mT6dfZflon+g.0 + - fO/WRqpJYk+ciOfEraP+Jw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 303ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - obi74jvLPkisWVivhsFl4g.0 + - mGimoljORkW6dznXMEwU2Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 18ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:00:58 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:44.4433786+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:00:45 GMT + ms-cv: + - qk9uCpd6TUaxb2kwtvmQBA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 82ms status: code: 200 message: OK @@ -118,28 +165,28 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9af3d307649347cd98b07121b2cc78a3@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:24:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-d5f0-ea7c-5a3a0d0003cc"}}' + body: '{"chatThread": {"id": "19:2ed501ee3da54ad599b7169ec59e2c9b@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:00:45Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da96-293e-1655-373a0d00278f"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:10 GMT - ms-cv: xctmjTmTnUmhw/zAM0tUlw.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: JZebIe/QkUazBWfMUroVQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 887ms + x-processing-time: 934ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,137 +198,137 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:11 GMT - ms-cv: +yxteLB7b0yLRxfyEd3yRQ.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: TVZubOyzzEy9NtjdopUhtw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 666ms + x-processing-time: 409ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:13 GMT - ms-cv: 2J8kUBHwXkeZPTCF2CfXeQ.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: MVdaFk4blUalSaatLroUhQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 262ms + x-processing-time: 349ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:13 GMT - ms-cv: MnpbfSaSVkSW9batJVDbGg.0 + date: Mon, 25 Jan 2021 18:00:47 GMT + ms-cv: jFswW48X8kSrmXbyg+HG0g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 364ms + x-processing-time: 380ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:14 GMT - ms-cv: gKTRy9qJmkeSZ+7agERCvQ.0 + date: Mon, 25 Jan 2021 18:00:47 GMT + ms-cv: 6w+8RMJ1YUi+e2n2Oom64g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 358ms + x-processing-time: 385ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:14 GMT - ms-cv: HsoLTOjDTUmJW/OyccpTYA.0 + date: Mon, 25 Jan 2021 18:00:48 GMT + ms-cv: B14hjb0FYkuCV1ZqKkVfQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 355ms + x-processing-time: 375ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:24:15 GMT - ms-cv: 0ZJQy433EE64ze1d8X0Oow.0 + date: Mon, 25 Jan 2021 18:00:49 GMT + ms-cv: rlIJbOdjOUyw9UaUI5oBag.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 347ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -294,25 +341,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:16 GMT + - Mon, 25 Jan 2021 18:01:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:31 GMT + - Mon, 25 Jan 2021 18:01:05 GMT ms-cv: - - 8AjS8w4q/0OQdRpYnRoceQ.0 + - v2mn2f57ekykqIesGZdDAA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16408ms + - 16720ms status: code: 204 message: No Content @@ -328,25 +377,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:32 GMT + - Mon, 25 Jan 2021 18:01:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:21 GMT ms-cv: - - gX6lMPjOL0S+sZ+RnaJg8w.0 + - AQjLQbowsEuKIcXie91mDA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15845ms + - 15928ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml index c769a6dc288e..145128171571 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - PSId7cm0rE2ik6M198zOUQ.0 + - CykDabzLvkOf4uiRsuzorQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:48.7841888+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:21.4022424+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - ljsg/8LD9E+O5nrcD/aguw.0 + - iepWFPJzu0GhRB/qhu9NeQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 798ms + - 112ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - Kd7UYBRhK0aMj3+9elVOIg.0 + - BVJZE7g7EEeGwCz/vPG9jg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 46ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:01:35 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:21.652012+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:01:22 GMT + ms-cv: + - y/YZ7+zwCk6ApNuVCVc7GA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 102ms status: code: 200 message: OK @@ -122,69 +169,96 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bcca59cb518a4a78a7d9b06bdb8c3d60@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:24:50Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-6f96-b274-5a3a0d00030f"}}' + body: '{"chatThread": {"id": "19:1e7f403e163e4118a2c3475502b9914c@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:01:23Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da96-ba2e-9c58-373a0d002755"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:50 GMT - ms-cv: sFAGJpIJOUqJx49W9KuLag.0 + date: Mon, 25 Jan 2021 18:01:23 GMT + ms-cv: wS+0GK3wfE2L2k7swucpyQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 929ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + response: + body: '{}' + headers: + api-supported-versions: 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:01:23 GMT + ms-cv: UH0hNnjUskGTq+r7KYnZiw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 883ms + x-processing-time: 459ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:50 GMT - ms-cv: TU8IpbjMrUOfTH+7DQXSCg.0 + date: Mon, 25 Jan 2021 18:01:24 GMT + ms-cv: 4rX40Idn4kyRuEtbrRM4yA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 270ms + x-processing-time: 284ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:24:51 GMT - ms-cv: HGgkycA/q0exPtN7DLbpZw.0 + date: Mon, 25 Jan 2021 18:01:24 GMT + ms-cv: 6VtyQ3pZoEa6i+aEErS81Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 321ms + x-processing-time: 348ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -197,25 +271,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:51 GMT + - Mon, 25 Jan 2021 18:01:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:07 GMT + - Mon, 25 Jan 2021 18:01:40 GMT ms-cv: - - 3+Q62LYrDEicM7fzscVa/w.0 + - F7/g+Cn1xkS2jETY78jcAw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16255ms + - 15576ms status: code: 204 message: No Content @@ -231,25 +307,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:08 GMT + - Mon, 25 Jan 2021 18:01:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:23 GMT + - Mon, 25 Jan 2021 18:01:56 GMT ms-cv: - - P+cmC1KbUUuWkV9pZU11mw.0 + - GcnGeSpChE6047B6l014Qg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15938ms + - 16623ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml index 05cf5793ba27..5f7f466ca4c3 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:02:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - LlD8ja16g0KbfO8ukVHr4A.0 + - fL6esiSAH0a5J3Cb1E6DXg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 58ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:02:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:25:24.2319596+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:56.9945897+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - UD93ffCE7UWOco7Ubk+Q+w.0 + - oUJI8XO/3UqzUw9mM6lK8g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 311ms + - 151ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:25 GMT + - Mon, 25 Jan 2021 18:02:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:25 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - SzQ1yuUZsUangzl8LV3TDw.0 + - nQ0d9riVVEKst+BzNqb/jg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 63ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:02:11 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:57.3505167+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:01:58 GMT + ms-cv: + - IyKRHK9XWkijgmt3ZL9mmw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 178ms status: code: 200 message: OK @@ -118,28 +165,28 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '371' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:1cd4d2571f7e4a6c9ad4291334ed33e7@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:25:25Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-fbe9-ea7c-5a3a0d0003ce"}}' + body: '{"chatThread": {"id": "19:b1e427d0001441cbac385cfda6af25b2@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:01:58Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-4507-1655-373a0d002792"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:26 GMT - ms-cv: wuDbu2YwRECy5MreIUO6pQ.0 + date: Mon, 25 Jan 2021 18:01:58 GMT + ms-cv: LQig+cWNPEGH2hWtoCWEiA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 922ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:26 GMT - ms-cv: jERglIIS20SILNh0hz0mxA.0 + date: Mon, 25 Jan 2021 18:01:59 GMT + ms-cv: jXDMU3jR6ky7PqKZB/MnXw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1056ms + x-processing-time: 400ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -178,68 +225,246 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:25:28 GMT - ms-cv: rrMpMrnkMkqWz0494etB/g.0 + date: Mon, 25 Jan 2021 18:02:00 GMT + ms-cv: 7wMRrOUw8U+vMwTkTI/T/w.0 strict-transport-security: max-age=2592000 - x-processing-time: 1064ms + x-processing-time: 944ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:00 GMT + ms-cv: j9rGblAkfEKgGNIsBOyQlA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 273ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender + name"}' + headers: + Accept: + - application/json + Content-Length: + - '84' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:01 GMT + ms-cv: cxeaASaSDU+9k8DTdawJcQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 391ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-length: '0' + date: Mon, 25 Jan 2021 18:02:01 GMT + ms-cv: PggznI5tEEuqjKqJUbosgA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 493ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: 40YaXKVrqUKfVuxuT4HkgA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 729ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: '{"priority": "Normal", "content": "content", "senderDisplayName": "sender_display_name"}' + headers: + Accept: + - application/json + Content-Length: + - '88' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: s04zALJHnkis/YEC+dZwug.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 428ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-length: '0' + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: Fkxs2E1tBE+5VtfibFJYuA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 507ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:04 GMT + ms-cv: 81VagS++oEWZbk+rGwDScw.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 266ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:30 GMT - ms-cv: ZDbkB4nGlk2xb6aFCGdqaA.0 + date: Mon, 25 Jan 2021 18:02:04 GMT + ms-cv: OWtogL+hrE6Gnnz/mzcZwA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 259ms + x-processing-time: 257ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:25:31 GMT - ms-cv: bwau2l2CAkarkyGspUOgZQ.0 + date: Mon, 25 Jan 2021 18:02:05 GMT + ms-cv: +eBf5Peo3EanXUBF/6aVeg.0 strict-transport-security: max-age=2592000 - x-processing-time: 333ms + x-processing-time: 332ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -252,25 +477,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:31 GMT + - Mon, 25 Jan 2021 18:02:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:47 GMT + - Mon, 25 Jan 2021 18:02:21 GMT ms-cv: - - +BcctCYB/kak5Jvnu0b2Dw.0 + - HcbxYqas3kigx51Thg6/Tg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16517ms + - 16001ms status: code: 204 message: No Content @@ -286,25 +513,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:48 GMT + - Mon, 25 Jan 2021 18:02:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:36 GMT ms-cv: - - a95dFsS+JUCzOS+LYdnFEw.0 + - 4epRjHkghkmQTeKqCjVlxA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15983ms + - 15892ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml index 8cfa91362e0a..2b750c26d639 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - fE/lvcKa8029Of1xN7re0Q.0 + - lhBlzrOs10mecPSBKAU/mg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 159ms + - 68ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:04.2129269+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:02:37.450648+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - ZB6N27gWpE6HT9a80yJGZA.0 + - 7KlKaLkp0UWlSxo4s6uGmg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 307ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:05 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - G20Y+0kt20SVPifcklb85g.0 + - YwdzY6hIZEumV8jF7grpAQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:02:51 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:02:37.6476091+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:02:38 GMT + ms-cv: + - W15RffGB4EG2XdMjEeLvvg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 89ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:7c78cb5b9ecd471b8adc8cb455aa6de3@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:26:05Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9829-557d-5a3a0d00046d"}}' + body: '{"chatThread": {"id": "19:ceb77821e2cf41d09fe134e8b14725fb@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:02:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e367-dbb7-3a3a0d0029a9"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:05 GMT - ms-cv: gYBS7Q0yhka1j1temIJssw.0 + date: Mon, 25 Jan 2021 18:02:39 GMT + ms-cv: cMkzZ8+5AEycqTSTB08H6A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 895ms + x-processing-time: 1202ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,67 +197,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: TT+sl9OYlkOlXIIOQki5kw.0 + date: Mon, 25 Jan 2021 18:02:40 GMT + ms-cv: B6Ttr9jenkWYbVuyXXi18g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 938ms + x-processing-time: 445ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: uLsygXAqeE+Tn7JfRoTU0g.0 + date: Mon, 25 Jan 2021 18:02:40 GMT + ms-cv: rzsJ3UFvqEGcqINor9et/Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 526ms + x-processing-time: 497ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: NUAEQKuZfE+3RaGlNzrQVg.0 + date: Mon, 25 Jan 2021 18:02:41 GMT + ms-cv: VgrL3GxNKUSvBNfihrLHAA.0 strict-transport-security: max-age=2592000 - x-processing-time: 326ms + x-processing-time: 332ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -223,25 +270,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:08 GMT + - Mon, 25 Jan 2021 18:02:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:25 GMT + - Mon, 25 Jan 2021 18:02:57 GMT ms-cv: - - RLGu939N30yTQq3b8brghQ.0 + - lwN2tDDRREq79GqGOYbAuQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16824ms + - 16620ms status: code: 204 message: No Content @@ -257,25 +306,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:25 GMT + - Mon, 25 Jan 2021 18:03:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:40 GMT + - Mon, 25 Jan 2021 18:03:13 GMT ms-cv: - - PeGnnZ0idUeivWvkYojpHw.0 + - 7gBuRV8wm0+dEYiKZRy7gw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15683ms + - 16459ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml index c07cfe27547b..d77b90d7902c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:40 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - PYeCyIKn2E2hina5ocVIQQ.0 + - vTJfVr5apkWm1g2gyGpcQw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 206ms + - 78ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:41.0655577+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:14.5647417+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - zHXXYAN5u0Ge5CIUxUWpAw.0 + - 5SkpNveJK0C2p3FNI8tc2Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 310ms + - 351ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:42 GMT + - Mon, 25 Jan 2021 18:03:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - 168b4s8ORE+eiblctoiaAA.0 + - Bjzz78xLK0uqZKILHEs+/w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 153ms + - 18ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:03:29 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:14.7595707+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:03:14 GMT + ms-cv: + - v5hP/rochk6naejWJ6Nt1Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 85ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:5f195147edd54595b99d20fe513f316b@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:26:42Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-2818-b274-5a3a0d000313"}}' + body: '{"chatThread": {"id": "19:9f547ebf10954066ba5741fde1f852ab@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:03:16Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da98-7347-b0b7-3a3a0d00281c"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:42 GMT - ms-cv: biVPWSsF70+maGUz00AMKA.0 + date: Mon, 25 Jan 2021 18:03:16 GMT + ms-cv: h+aMtgqHqEqPh53wNDQ5pg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 896ms + x-processing-time: 916ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,45 +198,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:44 GMT - ms-cv: c3GuNnniAE2GQfMvcWSUng.0 + date: Mon, 25 Jan 2021 18:03:16 GMT + ms-cv: 8QqvojfOEECMBzdtQMbsHg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1123ms + x-processing-time: 400ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:26:44 GMT - ms-cv: W3SzP9YC/kuSupXIDbyqfw.0 + date: Mon, 25 Jan 2021 18:03:17 GMT + ms-cv: y2Mu90EUTUOklCEFQlX3xg.0 strict-transport-security: max-age=2592000 x-processing-time: 334ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -202,25 +249,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:45 GMT + - Mon, 25 Jan 2021 18:03:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:00 GMT + - Mon, 25 Jan 2021 18:03:33 GMT ms-cv: - - adbwYTn3qUmz22bJgefhYQ.0 + - Ypzm9n/6dk6z9Tz/mkKw6g.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16226ms + - 15962ms status: code: 204 message: No Content @@ -236,25 +285,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:01 GMT + - Mon, 25 Jan 2021 18:03:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:16 GMT + - Mon, 25 Jan 2021 18:03:49 GMT ms-cv: - - q5Eou+B2uEeNsPxtEEr9uQ.0 + - csHtK1ThokWi3GVYTwy3/Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15680ms + - 16377ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml index 9730e381caeb..6118e14e626e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:04:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:03:49 GMT ms-cv: - - 7cg1bKxqlEWlR3kuMTAexw.0 + - nlpZDZ9R9EOa34G8PvhpfQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:04:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:17.0879498+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:49.6483747+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:03:50 GMT ms-cv: - - 4C5k+3aumUuEz7Sc/uZnpA.0 + - H0oFD+RIVkWldHpuB9M4Wg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 300ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:04:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:03:50 GMT ms-cv: - - kPOAqNrdxkeIFQ0fN9072g.0 + - CMl/Gf/m8kKowS65JQFDMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 25ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:04:04 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:49.8696883+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:03:50 GMT + ms-cv: + - frhKhhfNGkiEaOvHGmfHcQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 94ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bdc8bc04b7cc4d4481e89eae56d4fc39@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:27:19Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-b4ce-d67a-5a3a0d000313"}}' + body: '{"chatThread": {"id": "19:133df3b057b2479a860c7be4fd732745@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:03:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da98-fd5a-dbb7-3a3a0d0029ab"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:18 GMT - ms-cv: D+kbytRIG0yHnSyo8rC/EQ.0 + date: Mon, 25 Jan 2021 18:03:51 GMT + ms-cv: 6fJvvzRXGUC5jMKtlLuPDA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1392ms + x-processing-time: 910ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:20 GMT - ms-cv: udKnnVGlVkuKbxtKnjk2Ag.0 + date: Mon, 25 Jan 2021 18:03:52 GMT + ms-cv: hYssfmHQkUONVPsUXVZ6Gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 659ms + x-processing-time: 856ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -178,45 +225,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:27:21 GMT - ms-cv: /wO2/FiPzkKWRGdgqeq7GQ.0 + date: Mon, 25 Jan 2021 18:03:52 GMT + ms-cv: e/mP15+2t0y5VSLFxYdfhA.0 strict-transport-security: max-age=2592000 - x-processing-time: 1128ms + x-processing-time: 454ms status: - code: 201 - message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:27:22 GMT - ms-cv: odtpEV8inUCy7GUewQwfDQ.0 + date: Mon, 25 Jan 2021 18:03:53 GMT + ms-cv: haa5wrlr1UyuoYzQSAzdGA.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 329ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -229,25 +276,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:22 GMT + - Mon, 25 Jan 2021 18:04:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:38 GMT + - Mon, 25 Jan 2021 18:04:09 GMT ms-cv: - - EmF1Leuv7Ue86IvGvRg4ig.0 + - WtLG+iv9dk+nTZ2AzzRlMw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16836ms + - 16330ms status: code: 204 message: No Content @@ -263,25 +312,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:39 GMT + - Mon, 25 Jan 2021 18:04:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:54 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - 0ENlv64nvU+eUlg8QioGdw.0 + - MYm1HQ5XiESu1GJ+Fmk1iQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16043ms + - 16770ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml index e9026ca1bb59..39d2a351cacc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - DCodSNZYW0GwNKj0Bx/MvA.0 + - oWpLwIQ6ZEe+YTr72FLCIw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:55.1655435+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:04:26.5244214+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - Gm8W8zLf9kawSPfDnBvnhQ.0 + - om/uqgOS802kqeKxYtUgxA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:56 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:27 GMT ms-cv: - - FceFKQMBHUiy00NAlzYdfw.0 + - j8cJ/3WkaU2T0pkhfhHBZg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 15ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:04:41 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:04:26.7262406+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:04:27 GMT + ms-cv: + - NUat00w7rk+maMB//KUP8g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 83ms status: code: 200 message: OK @@ -118,73 +165,73 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9005bf1c069b4c5695c899e741f73167@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:27:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-4986-557d-5a3a0d000471"}}' + body: '{"chatThread": {"id": "19:d5e6036250894b6eaadcf3ac679a9c8a@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:04:28Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da99-8d79-b0b7-3a3a0d002820"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:57 GMT - ms-cv: FqY4XgvXFUK8ae6TBWp15Q.0 + date: Mon, 25 Jan 2021 18:04:28 GMT + ms-cv: 03/hkrA3NUiCsPumhgENLQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 899ms + x-processing-time: 893ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:27:57 GMT - ms-cv: vxuW3uLw/kSm1GeYaflboQ.0 + date: Mon, 25 Jan 2021 18:04:28 GMT + ms-cv: N8WY+wo0ckG0jtIoI3M+Dg.0 strict-transport-security: max-age=2592000 - x-processing-time: 372ms + x-processing-time: 408ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:27:58 GMT - ms-cv: +oNVhhl67EGt6JEAkkcqtQ.0 + date: Mon, 25 Jan 2021 18:04:29 GMT + ms-cv: ukYCuO2eMUOr9JWqkRh7yw.0 strict-transport-security: max-age=2592000 - x-processing-time: 326ms + x-processing-time: 336ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -197,25 +244,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:58 GMT + - Mon, 25 Jan 2021 18:04:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:14 GMT + - Mon, 25 Jan 2021 18:04:45 GMT ms-cv: - - D25bmlUbfkiPPFM5QMCmcw.0 + - HSsc8BmWoEeOW3JD1naZvg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16838ms + - 16577ms status: code: 204 message: No Content @@ -231,25 +280,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:15 GMT + - Mon, 25 Jan 2021 18:04:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - KM2BeNR6FEyOWTPqQrMUUw.0 + - Xi9d5LVedUeoruLAnPJx7A.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16017ms + - 15871ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml index 62221467e485..7e7a1eecafe6 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - T9TbWpW1rka8OMAVlaVNkw.0 + - 3e0us11r0kSoSEpvvjajvw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:28:31.1868847+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:01.6442687+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - erjGQPYsxkid0mm/elrD9g.0 + - vd1+PR51ykGx63GutU73/A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 328ms + - 101ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:32 GMT + - Mon, 25 Jan 2021 18:05:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:32 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - aN+2i40YcEuJtTrhNbn3jQ.0 + - zJzdCfz4KEqgyEbSrc1/ig.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 25ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:05:16 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:01.8691364+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:05:02 GMT + ms-cv: + - FySW6owWmUyCfdYs9Pj3CQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 112ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:eb17e263799b41e0bdf7af2fec46e31a@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:28:32Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-d627-b274-5a3a0d000317"}}' + body: '{"chatThread": {"id": "19:654491a4c86b47c4aad289e23664d2f4@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:05:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da9a-168f-1db7-3a3a0d002b15"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:28:33 GMT - ms-cv: pzY+7Kl+Ok2m8ZCW8U06iQ.0 + date: Mon, 25 Jan 2021 18:05:03 GMT + ms-cv: AK5CcHwZHUWPtRxVqNw/+w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 888ms + x-processing-time: 919ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:28:33 GMT - ms-cv: IVx5Bu8VqEWgONkw/3y/dQ.0 + date: Mon, 25 Jan 2021 18:05:04 GMT + ms-cv: cwLP/Sq0ekCC8TL++QGyUA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 918ms + x-processing-time: 410ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"content": "updated message content"}' headers: @@ -178,44 +225,44 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:28:34 GMT - ms-cv: 9xhiF+eBykqMdP2L65Ggkg.0 + date: Mon, 25 Jan 2021 18:05:05 GMT + ms-cv: XYq3xt+j5EOPI26kgG4IzA.0 strict-transport-security: max-age=2592000 - x-processing-time: 717ms + x-processing-time: 761ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:28:35 GMT - ms-cv: o/D6W6TaMkmf4U+5V1yeqA.0 + date: Mon, 25 Jan 2021 18:05:05 GMT + ms-cv: qog0bonzuEyZUxgbPGcYxw.0 strict-transport-security: max-age=2592000 - x-processing-time: 336ms + x-processing-time: 334ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -228,25 +275,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:35 GMT + - Mon, 25 Jan 2021 18:05:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:51 GMT + - Mon, 25 Jan 2021 18:05:21 GMT ms-cv: - - YcciaYSaIUyK2N16L/defA.0 + - KIQ9nWLFaU64XCdXU5wVPg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16352ms + - 16509ms status: code: 204 message: No Content @@ -262,25 +311,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:52 GMT + - Mon, 25 Jan 2021 18:05:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:37 GMT ms-cv: - - WBSYv1o+QEyYkAgMku+DbA.0 + - +JzvemoM3U6ixd86NvtfHQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16137ms + - 15815ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml index daf500d9214c..ed32af2dadac 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -11,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:37 GMT ms-cv: - - b2nic6Wtk0q5CwAVNlfdIw.0 + - /XB+5AWXUESzjrRs8oCenQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:29:08.3205817+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:37.8185064+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:38 GMT ms-cv: - - 1Hk70V+tskOg9LYEnWteoQ.0 + - 7OXxOj8pEkaZLDIK0+xGyw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 310ms + - 333ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:09 GMT + - Mon, 25 Jan 2021 18:05:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:38 GMT ms-cv: - - xYPwAXX090yPgjbeW4ONWQ.0 + - jCaAVnSNJUC/nHIxQweB0A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 74ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 25 Jan 2021 18:05:52 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:38.3031466+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:05:38 GMT + ms-cv: + - zNJPjc9pJ0S0qae7imgljg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 226ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:3fe1fb4fc91e4cc1b4e21946f8f3bee2@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:29:09Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1c-6709-b274-5a3a0d00031b"}}' + body: '{"chatThread": {"id": "19:8b345228c2e34fd7b5f36aafa1f997e2@thread.v2", + "topic": "test topic", "createdOn": "2021-01-25T18:05:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da9a-a2f6-dbb7-3a3a0d0029b4"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:29:10 GMT - ms-cv: u/519dWn5EyzwvBMmD5rig.0 + date: Mon, 25 Jan 2021 18:05:39 GMT + ms-cv: KE5UWKoRPkuM30FBufSb3w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 885ms + x-processing-time: 909ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"topic": "update topic"}' headers: @@ -150,44 +197,44 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:29:10 GMT - ms-cv: PDrzeVC4h0amWoO4eQUEeA.0 + date: Mon, 25 Jan 2021 18:05:40 GMT + ms-cv: 0tZo+daNM0q0VCtCVdi6/A.0 strict-transport-security: max-age=2592000 - x-processing-time: 446ms + x-processing-time: 439ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:29:11 GMT - ms-cv: VD0pHpC0JUiRT0MY7Dst2g.0 + date: Mon, 25 Jan 2021 18:05:40 GMT + ms-cv: peh3t5UvhUi8Fv2J9pFHtw.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 304ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -200,25 +247,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:11 GMT + - Mon, 25 Jan 2021 18:05:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:28 GMT + - Mon, 25 Jan 2021 18:05:56 GMT ms-cv: - - 00UWv5a9eEiDsveb2EZFmA.0 + - Ckxwlr27u0utIAH9MogHmQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16805ms + - 16563ms status: code: 204 message: No Content @@ -234,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:28 GMT + - Mon, 25 Jan 2021 18:06:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:44 GMT + - Mon, 25 Jan 2021 18:06:14 GMT ms-cv: - - WclIsNxHUUKLObrFPabXHA.0 + - a57B07S0KUWmNGXhD0NptQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15941ms + - 16378ms status: code: 204 message: No Content