From 59f33123402b384f24720b2134f747e1397cfc94 Mon Sep 17 00:00:00 2001 From: Sam Cheung Date: Tue, 16 Feb 2021 09:33:05 -0800 Subject: [PATCH 01/16] [Communication] Generate identifier Models from new swagger (#16735) * Add generated chat code from new swagger * Change to use new generated code * Address PR Feedback * Remove CommunicationUserIdentifierModel in identity,phone number package --- .../chat/_generated/models/__init__.py | 14 ++ ..._azure_communication_chat_service_enums.py | 8 + .../chat/_generated/models/_models.py | 123 ++++++++++ .../chat/_generated/models/_models_py3.py | 137 +++++++++++ .../communication/chat/_shared/__init__.py | 34 --- .../communication/chat/_shared/_models_py3.py | 219 ------------------ .../communication/chat/_shared/models.py | 123 ---------- .../communication_identifier_serializer.py | 10 +- ...est_communication_identifier_serializer.py | 14 +- .../communication/identity/_shared/models.py | 44 ---- .../phonenumbers/_shared/models.py | 44 ---- 11 files changed, 296 insertions(+), 474 deletions(-) delete mode 100644 sdk/communication/azure-communication-chat/azure/communication/chat/_shared/_models_py3.py rename sdk/communication/azure-communication-chat/azure/communication/chat/{_shared => }/communication_identifier_serializer.py (98%) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py index 5a3c0ca85620..eea4119d9489 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py @@ -22,9 +22,13 @@ from ._models_py3 import ChatThreadsInfoCollection from ._models_py3 import CommunicationError from ._models_py3 import CommunicationErrorResponse + from ._models_py3 import CommunicationIdentifierModel + from ._models_py3 import CommunicationUserIdentifierModel from ._models_py3 import CreateChatThreadErrors from ._models_py3 import CreateChatThreadRequest from ._models_py3 import CreateChatThreadResult + from ._models_py3 import MicrosoftTeamsUserIdentifierModel + from ._models_py3 import PhoneNumberIdentifierModel from ._models_py3 import SendChatMessageRequest from ._models_py3 import SendChatMessageResult from ._models_py3 import SendReadReceiptRequest @@ -46,9 +50,13 @@ from ._models import ChatThreadsInfoCollection # type: ignore from ._models import CommunicationError # type: ignore from ._models import CommunicationErrorResponse # type: ignore + from ._models import CommunicationIdentifierModel # type: ignore + from ._models import CommunicationUserIdentifierModel # type: ignore from ._models import CreateChatThreadErrors # type: ignore from ._models import CreateChatThreadRequest # type: ignore from ._models import CreateChatThreadResult # type: ignore + from ._models import MicrosoftTeamsUserIdentifierModel # type: ignore + from ._models import PhoneNumberIdentifierModel # type: ignore from ._models import SendChatMessageRequest # type: ignore from ._models import SendChatMessageResult # type: ignore from ._models import SendReadReceiptRequest # type: ignore @@ -57,6 +65,7 @@ from ._azure_communication_chat_service_enums import ( ChatMessageType, + CommunicationCloudEnvironmentModel, ) __all__ = [ @@ -75,13 +84,18 @@ 'ChatThreadsInfoCollection', 'CommunicationError', 'CommunicationErrorResponse', + 'CommunicationIdentifierModel', + 'CommunicationUserIdentifierModel', 'CreateChatThreadErrors', 'CreateChatThreadRequest', 'CreateChatThreadResult', + 'MicrosoftTeamsUserIdentifierModel', + 'PhoneNumberIdentifierModel', 'SendChatMessageRequest', 'SendChatMessageResult', 'SendReadReceiptRequest', 'UpdateChatMessageRequest', 'UpdateChatThreadRequest', 'ChatMessageType', + 'CommunicationCloudEnvironmentModel', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py index 9370f9fec0d7..0a32c53074ba 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py @@ -35,3 +35,11 @@ class ChatMessageType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TOPIC_UPDATED = "topicUpdated" PARTICIPANT_ADDED = "participantAdded" PARTICIPANT_REMOVED = "participantRemoved" + +class CommunicationCloudEnvironmentModel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The cloud that the identifier belongs to. + """ + + PUBLIC = "public" + DOD = "dod" + GCCH = "gcch" diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py index 999437af07cb..8ebf1b140cd7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py @@ -294,6 +294,10 @@ class ChatParticipant(msrest.serialization.Model): :param id: Required. The id of the chat participant. :type id: str + :param identifier: Identifies a participant in Azure Communication services. A participant is, + for example, a phone number or an Azure communication user. This model must be interpreted as a + union: Apart from rawId, at most one further property may be set. + :type identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The @@ -307,6 +311,7 @@ class ChatParticipant(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'CommunicationIdentifierModel'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, } @@ -317,6 +322,7 @@ def __init__( ): super(ChatParticipant, self).__init__(**kwargs) self.id = kwargs['id'] + self.identifier = kwargs.get('identifier', None) self.display_name = kwargs.get('display_name', None) self.share_history_time = kwargs.get('share_history_time', None) @@ -548,6 +554,62 @@ def __init__( self.error = kwargs['error'] +class CommunicationIdentifierModel(msrest.serialization.Model): + """Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. + + :param raw_id: Raw Id of the identifier. Optional in requests, required in responses. + :type raw_id: str + :param communication_user: The communication user. + :type communication_user: ~azure.communication.chat.models.CommunicationUserIdentifierModel + :param phone_number: The phone number. + :type phone_number: ~azure.communication.chat.models.PhoneNumberIdentifierModel + :param microsoft_teams_user: The Microsoft Teams user. + :type microsoft_teams_user: ~azure.communication.chat.models.MicrosoftTeamsUserIdentifierModel + """ + + _attribute_map = { + 'raw_id': {'key': 'rawId', 'type': 'str'}, + 'communication_user': {'key': 'communicationUser', 'type': 'CommunicationUserIdentifierModel'}, + 'phone_number': {'key': 'phoneNumber', 'type': 'PhoneNumberIdentifierModel'}, + 'microsoft_teams_user': {'key': 'microsoftTeamsUser', 'type': 'MicrosoftTeamsUserIdentifierModel'}, + } + + def __init__( + self, + **kwargs + ): + super(CommunicationIdentifierModel, self).__init__(**kwargs) + self.raw_id = kwargs.get('raw_id', None) + self.communication_user = kwargs.get('communication_user', None) + self.phone_number = kwargs.get('phone_number', None) + self.microsoft_teams_user = kwargs.get('microsoft_teams_user', None) + + +class CommunicationUserIdentifierModel(msrest.serialization.Model): + """A user that got created with an Azure Communication Services resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The Id of the communication user. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CommunicationUserIdentifierModel, self).__init__(**kwargs) + self.id = kwargs['id'] + + class CreateChatThreadErrors(msrest.serialization.Model): """Errors encountered during the creation of the chat thread. @@ -626,6 +688,67 @@ def __init__( self.errors = kwargs.get('errors', None) +class MicrosoftTeamsUserIdentifierModel(msrest.serialization.Model): + """A Microsoft Teams user. + + All required parameters must be populated in order to send to Azure. + + :param user_id: Required. The Id of the Microsoft Teams user. If not anonymous, this is the AAD + object Id of the user. + :type user_id: str + :param is_anonymous: True if the Microsoft Teams user is anonymous. By default false if + missing. + :type is_anonymous: bool + :param cloud: The cloud that the Microsoft Teams user belongs to. By default 'public' if + missing. Possible values include: "public", "dod", "gcch". + :type cloud: str or ~azure.communication.chat.models.CommunicationCloudEnvironmentModel + """ + + _validation = { + 'user_id': {'required': True}, + } + + _attribute_map = { + 'user_id': {'key': 'userId', 'type': 'str'}, + 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, + 'cloud': {'key': 'cloud', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(MicrosoftTeamsUserIdentifierModel, self).__init__(**kwargs) + self.user_id = kwargs['user_id'] + self.is_anonymous = kwargs.get('is_anonymous', None) + self.cloud = kwargs.get('cloud', None) + + +class PhoneNumberIdentifierModel(msrest.serialization.Model): + """A phone number. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The phone number in E.164 format. + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PhoneNumberIdentifierModel, self).__init__(**kwargs) + self.value = kwargs['value'] + + class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py index 8da8a31bc35c..95e1db633d98 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py @@ -329,6 +329,10 @@ class ChatParticipant(msrest.serialization.Model): :param id: Required. The id of the chat participant. :type id: str + :param identifier: Identifies a participant in Azure Communication services. A participant is, + for example, a phone number or an Azure communication user. This model must be interpreted as a + union: Apart from rawId, at most one further property may be set. + :type identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The @@ -342,6 +346,7 @@ class ChatParticipant(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'CommunicationIdentifierModel'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, } @@ -350,12 +355,14 @@ def __init__( self, *, id: str, + identifier: Optional["CommunicationIdentifierModel"] = None, display_name: Optional[str] = None, share_history_time: Optional[datetime.datetime] = None, **kwargs ): super(ChatParticipant, self).__init__(**kwargs) self.id = id + self.identifier = identifier self.display_name = display_name self.share_history_time = share_history_time @@ -606,6 +613,69 @@ def __init__( self.error = error +class CommunicationIdentifierModel(msrest.serialization.Model): + """Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. + + :param raw_id: Raw Id of the identifier. Optional in requests, required in responses. + :type raw_id: str + :param communication_user: The communication user. + :type communication_user: ~azure.communication.chat.models.CommunicationUserIdentifierModel + :param phone_number: The phone number. + :type phone_number: ~azure.communication.chat.models.PhoneNumberIdentifierModel + :param microsoft_teams_user: The Microsoft Teams user. + :type microsoft_teams_user: ~azure.communication.chat.models.MicrosoftTeamsUserIdentifierModel + """ + + _attribute_map = { + 'raw_id': {'key': 'rawId', 'type': 'str'}, + 'communication_user': {'key': 'communicationUser', 'type': 'CommunicationUserIdentifierModel'}, + 'phone_number': {'key': 'phoneNumber', 'type': 'PhoneNumberIdentifierModel'}, + 'microsoft_teams_user': {'key': 'microsoftTeamsUser', 'type': 'MicrosoftTeamsUserIdentifierModel'}, + } + + def __init__( + self, + *, + raw_id: Optional[str] = None, + communication_user: Optional["CommunicationUserIdentifierModel"] = None, + phone_number: Optional["PhoneNumberIdentifierModel"] = None, + microsoft_teams_user: Optional["MicrosoftTeamsUserIdentifierModel"] = None, + **kwargs + ): + super(CommunicationIdentifierModel, self).__init__(**kwargs) + self.raw_id = raw_id + self.communication_user = communication_user + self.phone_number = phone_number + self.microsoft_teams_user = microsoft_teams_user + + +class CommunicationUserIdentifierModel(msrest.serialization.Model): + """A user that got created with an Azure Communication Services resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The Id of the communication user. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + **kwargs + ): + super(CommunicationUserIdentifierModel, self).__init__(**kwargs) + self.id = id + + class CreateChatThreadErrors(msrest.serialization.Model): """Errors encountered during the creation of the chat thread. @@ -690,6 +760,73 @@ def __init__( self.errors = errors +class MicrosoftTeamsUserIdentifierModel(msrest.serialization.Model): + """A Microsoft Teams user. + + All required parameters must be populated in order to send to Azure. + + :param user_id: Required. The Id of the Microsoft Teams user. If not anonymous, this is the AAD + object Id of the user. + :type user_id: str + :param is_anonymous: True if the Microsoft Teams user is anonymous. By default false if + missing. + :type is_anonymous: bool + :param cloud: The cloud that the Microsoft Teams user belongs to. By default 'public' if + missing. Possible values include: "public", "dod", "gcch". + :type cloud: str or ~azure.communication.chat.models.CommunicationCloudEnvironmentModel + """ + + _validation = { + 'user_id': {'required': True}, + } + + _attribute_map = { + 'user_id': {'key': 'userId', 'type': 'str'}, + 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, + 'cloud': {'key': 'cloud', 'type': 'str'}, + } + + def __init__( + self, + *, + user_id: str, + is_anonymous: Optional[bool] = None, + cloud: Optional[Union[str, "CommunicationCloudEnvironmentModel"]] = None, + **kwargs + ): + super(MicrosoftTeamsUserIdentifierModel, self).__init__(**kwargs) + self.user_id = user_id + self.is_anonymous = is_anonymous + self.cloud = cloud + + +class PhoneNumberIdentifierModel(msrest.serialization.Model): + """A phone number. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The phone number in E.164 format. + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + value: str, + **kwargs + ): + super(PhoneNumberIdentifierModel, self).__init__(**kwargs) + self.value = value + + class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/__init__.py index 5c8510f6128a..e69de29bb2d1 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/__init__.py @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6369, generator: {generator}) -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import CommunicationError - from ._models_py3 import CommunicationErrorResponse - from ._models_py3 import CommunicationIdentifierModel - from ._models_py3 import CommunicationUserIdentifierModel - from ._models_py3 import MicrosoftTeamsUserIdentifierModel - from ._models_py3 import PhoneNumberIdentifierModel -except (SyntaxError, ImportError): - from .models import CommunicationError # type: ignore - from .models import CommunicationErrorResponse # type: ignore - from .models import CommunicationIdentifierModel # type: ignore - from .models import CommunicationUserIdentifierModel # type: ignore - from .models import MicrosoftTeamsUserIdentifierModel # type: ignore - from .models import PhoneNumberIdentifierModel # type: ignore - -from .models import ( - CommunicationCloudEnvironmentModel, -) - -__all__ = [ - 'CommunicationError', - 'CommunicationErrorResponse', - 'CommunicationIdentifierModel', - 'CommunicationUserIdentifierModel', - 'MicrosoftTeamsUserIdentifierModel', - 'PhoneNumberIdentifierModel', - 'CommunicationCloudEnvironmentModel', -] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/_models_py3.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/_models_py3.py deleted file mode 100644 index 9fda61e303f5..000000000000 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/_models_py3.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6369, generator: {generator}) -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: skip-file - -from typing import Optional, Union - -import msrest.serialization - -from ._communication_enums import * - - -class CommunicationError(msrest.serialization.Model): - """The Communication Services error. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. The error code. - :type code: str - :param message: Required. The error message. - :type message: str - :ivar target: The error target. - :vartype target: str - :ivar details: Further details about specific errors that led to this error. - :vartype details: list[~communication.models.CommunicationError] - :ivar inner_error: The inner error if any. - :vartype inner_error: ~communication.models.CommunicationError - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CommunicationError]'}, - 'inner_error': {'key': 'innererror', 'type': 'CommunicationError'}, - } - - def __init__( - self, - *, - code: str, - message: str, - **kwargs - ): - super(CommunicationError, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = None - self.details = None - self.inner_error = None - - -class CommunicationErrorResponse(msrest.serialization.Model): - """The Communication Services error. - - All required parameters must be populated in order to send to Azure. - - :param error: Required. The Communication Services error. - :type error: ~communication.models.CommunicationError - """ - - _validation = { - 'error': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'CommunicationError'}, - } - - def __init__( - self, - *, - error: "CommunicationError", - **kwargs - ): - super(CommunicationErrorResponse, self).__init__(**kwargs) - self.error = error - - -class CommunicationIdentifierModel(msrest.serialization.Model): - """Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. - - :param raw_id: Raw Id of the identifier. Optional in requests, required in responses. - :type raw_id: str - :param communication_user: The communication user. - :type communication_user: ~communication.models.CommunicationUserIdentifierModel - :param phone_number: The phone number. - :type phone_number: ~communication.models.PhoneNumberIdentifierModel - :param microsoft_teams_user: The Microsoft Teams user. - :type microsoft_teams_user: ~communication.models.MicrosoftTeamsUserIdentifierModel - """ - - _attribute_map = { - 'raw_id': {'key': 'rawId', 'type': 'str'}, - 'communication_user': {'key': 'communicationUser', 'type': 'CommunicationUserIdentifierModel'}, - 'phone_number': {'key': 'phoneNumber', 'type': 'PhoneNumberIdentifierModel'}, - 'microsoft_teams_user': {'key': 'microsoftTeamsUser', 'type': 'MicrosoftTeamsUserIdentifierModel'}, - } - - def __init__( - self, - *, - raw_id: Optional[str] = None, - communication_user: Optional["CommunicationUserIdentifierModel"] = None, - phone_number: Optional["PhoneNumberIdentifierModel"] = None, - microsoft_teams_user: Optional["MicrosoftTeamsUserIdentifierModel"] = None, - **kwargs - ): - super(CommunicationIdentifierModel, self).__init__(**kwargs) - self.raw_id = raw_id - self.communication_user = communication_user - self.phone_number = phone_number - self.microsoft_teams_user = microsoft_teams_user - - -class CommunicationUserIdentifierModel(msrest.serialization.Model): - """A user that got created with an Azure Communication Services resource. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. The Id of the communication user. - :type id: str - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - *, - id: str, - **kwargs - ): - super(CommunicationUserIdentifierModel, self).__init__(**kwargs) - self.id = id - - -class MicrosoftTeamsUserIdentifierModel(msrest.serialization.Model): - """A Microsoft Teams user. - - All required parameters must be populated in order to send to Azure. - - :param user_id: Required. The Id of the Microsoft Teams user. If not anonymous, this is the AAD - object Id of the user. - :type user_id: str - :param is_anonymous: True if the Microsoft Teams user is anonymous. By default false if - missing. - :type is_anonymous: bool - :param cloud: The cloud that the Microsoft Teams user belongs to. By default 'public' if - missing. Possible values include: "public", "dod", "gcch". - :type cloud: str or ~communication.models.CommunicationCloudEnvironmentModel - """ - - _validation = { - 'user_id': {'required': True}, - } - - _attribute_map = { - 'user_id': {'key': 'userId', 'type': 'str'}, - 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, - 'cloud': {'key': 'cloud', 'type': 'str'}, - } - - def __init__( - self, - *, - user_id: str, - is_anonymous: Optional[bool] = None, - cloud: Optional[Union[str, "CommunicationCloudEnvironmentModel"]] = None, - **kwargs - ): - super(MicrosoftTeamsUserIdentifierModel, self).__init__(**kwargs) - self.user_id = user_id - self.is_anonymous = is_anonymous - self.cloud = cloud - - -class PhoneNumberIdentifierModel(msrest.serialization.Model): - """A phone number. - - All required parameters must be populated in order to send to Azure. - - :param value: Required. The phone number in E.164 format. - :type value: str - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__( - self, - *, - value: str, - **kwargs - ): - super(PhoneNumberIdentifierModel, self).__init__(**kwargs) - self.value = value diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py index 4508542d92ae..4aff60e0c4df 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py @@ -116,121 +116,6 @@ class UnknownIdentifier(object): def __init__(self, identifier): self.identifier = identifier -class CommunicationIdentifierModel(msrest.serialization.Model): - """Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. - - :param raw_id: Raw Id of the identifier. Optional in requests, required in responses. - :type raw_id: str - :param communication_user: The communication user. - :type communication_user: ~communication.models.CommunicationUserIdentifierModel - :param phone_number: The phone number. - :type phone_number: ~communication.models.PhoneNumberIdentifierModel - :param microsoft_teams_user: The Microsoft Teams user. - :type microsoft_teams_user: ~communication.models.MicrosoftTeamsUserIdentifierModel - """ - - _attribute_map = { - 'raw_id': {'key': 'rawId', 'type': 'str'}, - 'communication_user': {'key': 'communicationUser', 'type': 'CommunicationUserIdentifierModel'}, - 'phone_number': {'key': 'phoneNumber', 'type': 'PhoneNumberIdentifierModel'}, - 'microsoft_teams_user': {'key': 'microsoftTeamsUser', 'type': 'MicrosoftTeamsUserIdentifierModel'}, - } - - def __init__( - self, - **kwargs - ): - super(CommunicationIdentifierModel, self).__init__(**kwargs) - self.raw_id = kwargs.get('raw_id', None) - self.communication_user = kwargs.get('communication_user', None) - self.phone_number = kwargs.get('phone_number', None) - self.microsoft_teams_user = kwargs.get('microsoft_teams_user', None) - -class CommunicationUserIdentifierModel(msrest.serialization.Model): - """A user that got created with an Azure Communication Services resource. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. The Id of the communication user. - :type id: str - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CommunicationUserIdentifierModel, self).__init__(**kwargs) - self.id = kwargs['id'] - - -class MicrosoftTeamsUserIdentifierModel(msrest.serialization.Model): - """A Microsoft Teams user. - - All required parameters must be populated in order to send to Azure. - - :param user_id: Required. The Id of the Microsoft Teams user. If not anonymous, this is the AAD - object Id of the user. - :type user_id: str - :param is_anonymous: True if the Microsoft Teams user is anonymous. By default false if - missing. - :type is_anonymous: bool - :param cloud: The cloud that the Microsoft Teams user belongs to. By default 'public' if - missing. Possible values include: "public", "dod", "gcch". - :type cloud: str or ~communication.models.CommunicationCloudEnvironmentModel - """ - - _validation = { - 'user_id': {'required': True}, - } - - _attribute_map = { - 'user_id': {'key': 'userId', 'type': 'str'}, - 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, - 'cloud': {'key': 'cloud', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(MicrosoftTeamsUserIdentifierModel, self).__init__(**kwargs) - self.user_id = kwargs['user_id'] - self.is_anonymous = kwargs.get('is_anonymous', None) - self.cloud = kwargs.get('cloud', None) - - -class PhoneNumberIdentifierModel(msrest.serialization.Model): - """A phone number. - - All required parameters must be populated in order to send to Azure. - - :param value: Required. The phone number in E.164 format. - :type value: str - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PhoneNumberIdentifierModel, self).__init__(**kwargs) - self.value = kwargs['value'] - class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(self, name): return super().__getitem__(name.upper()) @@ -247,14 +132,6 @@ def __getattr__(cls, name): except KeyError: raise AttributeError(name) -class CommunicationCloudEnvironmentModel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The cloud that the identifier belongs to. - """ - - PUBLIC = "public" - DOD = "dod" - GCCH = "gcch" - class CommunicationCloudEnvironment(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """ The cloud enviornment that the identifier belongs to diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py similarity index 98% rename from sdk/communication/azure-communication-chat/azure/communication/chat/_shared/communication_identifier_serializer.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py index 1081930782bf..972716b833be 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/communication_identifier_serializer.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py @@ -4,15 +4,17 @@ # license information. # -------------------------------------------------------------------------- -from .models import ( +from ._generated.models import ( CommunicationIdentifierModel, + CommunicationUserIdentifierModel, + PhoneNumberIdentifierModel, + MicrosoftTeamsUserIdentifierModel +) +from ._shared.models import ( CommunicationUserIdentifier, PhoneNumberIdentifier, MicrosoftTeamsUserIdentifier, UnknownIdentifier, - CommunicationUserIdentifierModel, - PhoneNumberIdentifierModel, - MicrosoftTeamsUserIdentifierModel ) class CommunicationUserIdentifierSerializer(object): diff --git a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py index 16b521218906..64bf4e403851 100644 --- a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py +++ b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py @@ -4,17 +4,19 @@ # license information. # ------------------------------------------------------------------------- import unittest -from azure.communication.chat._shared.communication_identifier_serializer import CommunicationUserIdentifierSerializer -from azure.communication.chat._shared.models import( +from azure.communication.chat.communication_identifier_serializer import CommunicationUserIdentifierSerializer +from azure.communication.chat._generated.models import( CommunicationIdentifierModel, + MicrosoftTeamsUserIdentifierModel, + CommunicationUserIdentifierModel, + PhoneNumberIdentifierModel +) +from azure.communication.chat._shared.models import( CommunicationUserIdentifier, CommunicationCloudEnvironment, UnknownIdentifier, PhoneNumberIdentifier, - MicrosoftTeamsUserIdentifier, - MicrosoftTeamsUserIdentifierModel, - CommunicationUserIdentifierModel, - PhoneNumberIdentifierModel + MicrosoftTeamsUserIdentifier ) class CommunicationUserIdentifierSerializerTest(unittest.TestCase): diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py index 2e64b18dc068..83bab3945635 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py @@ -45,50 +45,6 @@ class UnknownIdentifier(object): def __init__(self, identifier): self.identifier = identifier -class CommunicationIdentifierModel(msrest.serialization.Model): - """Communication Identifier Model. - - All required parameters must be populated in order to send to Azure. - - :param kind: Required. Kind of Communication Identifier. - :type kind: CommunicationIdentifierKind - :param id: Full id of the identifier. - :type id: str - :param phone_number: phone number in case the identifier is a phone number. - :type phone_number: str - :param is_anonymous: True if the identifier is anonymous. - :type is_anonymous: bool - :param microsoft_teams_user_id: Microsoft Teams user id. - :type microsoft_teams_user_id: str - :param communication_cloud_environment: Cloud environment that the user belongs to. - :type communication_cloud_environment: CommunicationCloudEnvironment - """ - - _validation = { - 'kind': {'required': True}, - } - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, - 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, - 'microsoft_teams_user_id': {'key': 'microsoftTeamsUserId', 'type': 'str'}, - 'communication_cloud_environment': {'key': 'communicationCloudEnvironment', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CommunicationIdentifierModel, self).__init__(**kwargs) - self.kind = kwargs['kind'] - self.id = kwargs.get('id', None) - self.phone_number = kwargs.get('phone_number', None) - self.is_anonymous = kwargs.get('is_anonymous', None) - self.microsoft_teams_user_id = kwargs.get('microsoft_teams_user_id', None) - self.communication_cloud_environment = kwargs.get('communication_cloud_environment', None) - class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(cls, name): return super().__getitem__(name.upper()) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py index 2e64b18dc068..83bab3945635 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py @@ -45,50 +45,6 @@ class UnknownIdentifier(object): def __init__(self, identifier): self.identifier = identifier -class CommunicationIdentifierModel(msrest.serialization.Model): - """Communication Identifier Model. - - All required parameters must be populated in order to send to Azure. - - :param kind: Required. Kind of Communication Identifier. - :type kind: CommunicationIdentifierKind - :param id: Full id of the identifier. - :type id: str - :param phone_number: phone number in case the identifier is a phone number. - :type phone_number: str - :param is_anonymous: True if the identifier is anonymous. - :type is_anonymous: bool - :param microsoft_teams_user_id: Microsoft Teams user id. - :type microsoft_teams_user_id: str - :param communication_cloud_environment: Cloud environment that the user belongs to. - :type communication_cloud_environment: CommunicationCloudEnvironment - """ - - _validation = { - 'kind': {'required': True}, - } - - _attribute_map = { - 'kind': {'key': 'kind', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, - 'is_anonymous': {'key': 'isAnonymous', 'type': 'bool'}, - 'microsoft_teams_user_id': {'key': 'microsoftTeamsUserId', 'type': 'str'}, - 'communication_cloud_environment': {'key': 'communicationCloudEnvironment', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CommunicationIdentifierModel, self).__init__(**kwargs) - self.kind = kwargs['kind'] - self.id = kwargs.get('id', None) - self.phone_number = kwargs.get('phone_number', None) - self.is_anonymous = kwargs.get('is_anonymous', None) - self.microsoft_teams_user_id = kwargs.get('microsoft_teams_user_id', None) - self.communication_cloud_environment = kwargs.get('communication_cloud_environment', None) - class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(cls, name): return super().__getitem__(name.upper()) From 3de22c505ec20f5b4d8ad49e54525a0266cae781 Mon Sep 17 00:00:00 2001 From: turalf Date: Fri, 19 Feb 2021 18:02:11 -0800 Subject: [PATCH 02/16] Check schema of the object to determine the type [preview4] (#16838) * Replace identifier with rawId * Change serilizer * Replace indentifier with rawId in test code * Sync models across modules * fix typo in serizliser * Rearrange imports * Replace rawId with raw_id * remove trailing newline Co-authored-by: turalf --- .../communication/chat/_shared/models.py | 8 ++-- .../communication_identifier_serializer.py | 38 +++++++++++++++---- ...est_communication_identifier_serializer.py | 2 +- .../communication/identity/_shared/models.py | 6 +-- .../phonenumbers/_shared/models.py | 6 +-- .../azure/communication/sms/_shared/models.py | 6 +-- 6 files changed, 45 insertions(+), 21 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py index 4aff60e0c4df..30fa9d3327ac 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py @@ -108,13 +108,13 @@ class UnknownIdentifier(object): Represents an identifier of an unknown type. It will be encountered in communications with endpoints that are not identifiable by this version of the SDK. - :ivar identifier: Unknown communication identifier. - :vartype identifier: str + :ivar raw_id: Unknown communication identifier. + :vartype raw_id: str :param identifier: Value to initialize UnknownIdentifier. :type identifier: str """ def __init__(self, identifier): - self.identifier = identifier + self.raw_id = identifier class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(self, name): @@ -148,7 +148,7 @@ class MicrosoftTeamsUserIdentifier(object): :vartype user_id: str :param user_id: Value to initialize MicrosoftTeamsUserIdentifier. :type user_id: str - :ivar rawId: Raw id of the Microsoft Teams user. + :ivar raw_id: Raw id of the Microsoft Teams user. :vartype raw_id: str :ivar cloud: Cloud environment that this identifier belongs to :vartype cloud: CommunicationCloudEnvironment diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py index 972716b833be..13e540c7a67c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +from enum import Enum from ._generated.models import ( CommunicationIdentifierModel, @@ -17,12 +18,17 @@ UnknownIdentifier, ) +class _IdentifierType(Enum): + COMMUNICATION_USER_IDENTIFIER = "COMMUNICATION_USER_IDENTIFIER" + PHONE_NUMBER_IDENTIFIER = "PHONE_NUMBER_IDENTIFIER" + UNKNOWN_IDENTIFIER = "UNKNOWN_IDENTIFIER" + MICROSOFT_TEAMS_IDENTIFIER = "MICROSOFT_TEAMS_IDENTIFIER" + class CommunicationUserIdentifierSerializer(object): @classmethod def serialize(cls, communicationIdentifier): """ Serialize the Communication identifier into CommunicationIdentifierModel - :param identifier: Identifier object :type identifier: Union[CommunicationUserIdentifier, PhoneNumberIdentifier, MicrosoftTeamsUserIdentifier, UnknownIdentifier] @@ -30,16 +36,18 @@ def serialize(cls, communicationIdentifier): :rtype: ~azure.communication.chat.CommunicationIdentifierModel :raises Union[TypeError, ValueError] """ - if isinstance(communicationIdentifier, CommunicationUserIdentifier): + identifierType = CommunicationUserIdentifierSerializer._getIdentifierType(communicationIdentifier) + + if identifierType == _IdentifierType.COMMUNICATION_USER_IDENTIFIER: return CommunicationIdentifierModel( communication_user=CommunicationUserIdentifierModel(id=communicationIdentifier.identifier) ) - if isinstance(communicationIdentifier, PhoneNumberIdentifier): + if identifierType == _IdentifierType.PHONE_NUMBER_IDENTIFIER: return CommunicationIdentifierModel( raw_id=communicationIdentifier.raw_id, phone_number=PhoneNumberIdentifierModel(value=communicationIdentifier.phone_number) ) - if isinstance(communicationIdentifier, MicrosoftTeamsUserIdentifier): + if identifierType == _IdentifierType.MICROSOFT_TEAMS_IDENTIFIER: return CommunicationIdentifierModel( raw_id=communicationIdentifier.raw_id, microsoft_teams_user=MicrosoftTeamsUserIdentifierModel(user_id=communicationIdentifier.user_id, @@ -47,9 +55,9 @@ def serialize(cls, communicationIdentifier): cloud=communicationIdentifier.cloud) ) - if isinstance(communicationIdentifier, UnknownIdentifier): + if identifierType == _IdentifierType.UNKNOWN_IDENTIFIER: return CommunicationIdentifierModel( - raw_id=communicationIdentifier.identifier + raw_id=communicationIdentifier.raw_id ) raise TypeError("Unsupported identifier type " + communicationIdentifier.__class__.__name__) @@ -71,7 +79,6 @@ def assertMaximumOneNestedModel(cls, identifierModel): def deserialize(cls, identifierModel): """ Deserialize the CommunicationIdentifierModel into Communication Identifier - :param identifierModel: CommunicationIdentifierModel :type identifierModel: CommunicationIdentifierModel :return: Union[CommunicationUserIdentifier, CommunicationPhoneNumberIdentifier] @@ -106,3 +113,20 @@ def deserialize(cls, identifierModel): ) return UnknownIdentifier(raw_id) + + @classmethod + def _getIdentifierType(cls, communicationIdentifier): + def has_attributes(obj, attributes): + return all([hasattr(obj, attr) for attr in attributes]) + + if has_attributes(communicationIdentifier, ["identifier"]): + return _IdentifierType.COMMUNICATION_USER_IDENTIFIER + + if has_attributes(communicationIdentifier, ['phone_number', 'raw_id']): + return _IdentifierType.PHONE_NUMBER_IDENTIFIER + + if has_attributes(communicationIdentifier, ["raw_id", "user_id", "is_anonymous", "cloud"]): + return _IdentifierType.MICROSOFT_TEAMS_IDENTIFIER + + if has_attributes(communicationIdentifier, ["raw_id"]): + return _IdentifierType.UNKNOWN_IDENTIFIER diff --git a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py index 64bf4e403851..b6888d2f3826 100644 --- a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py +++ b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py @@ -94,7 +94,7 @@ def test_deserialize_unknown_identifier(self): unknown_identifier_expected = UnknownIdentifier("an id") assert isinstance(unknown_identifier_actual, UnknownIdentifier) - assert unknown_identifier_actual.identifier == unknown_identifier_expected.identifier + assert unknown_identifier_actual.raw_id == unknown_identifier_expected.raw_id def test_serialize_phone_number(self): phone_number_identifier_model = CommunicationUserIdentifierSerializer.serialize( diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py index 83bab3945635..67e0a1ff6e2b 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py @@ -37,13 +37,13 @@ class UnknownIdentifier(object): Represents an identifier of an unknown type. It will be encountered in communications with endpoints that are not identifiable by this version of the SDK. - :ivar identifier: Unknown communication identifier. - :vartype identifier: str + :ivar raw_id: Unknown communication identifier. + :vartype raw_id: str :param identifier: Value to initialize UnknownIdentifier. :type identifier: str """ def __init__(self, identifier): - self.identifier = identifier + self.raw_id = identifier class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(cls, name): diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py index 83bab3945635..67e0a1ff6e2b 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py @@ -37,13 +37,13 @@ class UnknownIdentifier(object): Represents an identifier of an unknown type. It will be encountered in communications with endpoints that are not identifiable by this version of the SDK. - :ivar identifier: Unknown communication identifier. - :vartype identifier: str + :ivar raw_id: Unknown communication identifier. + :vartype raw_id: str :param identifier: Value to initialize UnknownIdentifier. :type identifier: str """ def __init__(self, identifier): - self.identifier = identifier + self.raw_id = identifier class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(cls, name): diff --git a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py index 2e64b18dc068..adb6f909dd23 100644 --- a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py +++ b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py @@ -37,13 +37,13 @@ class UnknownIdentifier(object): Represents an identifier of an unknown type. It will be encountered in communications with endpoints that are not identifiable by this version of the SDK. - :ivar identifier: Unknown communication identifier. - :vartype identifier: str + :ivar raw_id: Unknown communication identifier. + :vartype raw_id: str :param identifier: Value to initialize UnknownIdentifier. :type identifier: str """ def __init__(self, identifier): - self.identifier = identifier + self.raw_id = identifier class CommunicationIdentifierModel(msrest.serialization.Model): """Communication Identifier Model. From fa33c5edabe32022095e443fae2cd6683fa61882 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 17 Feb 2021 17:52:03 -0800 Subject: [PATCH 03/16] preview4 changes made + unit tests fixed --- .../communication/chat/_chat_thread_client.py | 8 +- .../chat/_generated/_configuration.py | 2 +- .../chat/_generated/aio/_configuration.py | 2 +- .../aio/operations/_chat_operations.py | 14 +- .../aio/operations/_chat_thread_operations.py | 41 ++--- .../chat/_generated/models/_models.py | 72 +++++---- .../chat/_generated/models/_models_py3.py | 83 +++++----- .../_generated/operations/_chat_operations.py | 14 +- .../operations/_chat_thread_operations.py | 41 ++--- .../azure/communication/chat/_models.py | 35 ++-- .../azure/communication/chat/_utils.py | 33 ++++ .../chat/aio/_chat_thread_client_async.py | 5 +- .../samples/chat_thread_client_sample.py | 3 +- .../swagger/SWAGGER.md | 2 +- .../tests/test_chat_client.py | 6 +- .../tests/test_chat_client_async.py | 6 +- .../tests/test_chat_thread_client.py | 151 ++++++++++++++---- .../tests/test_chat_thread_client_async.py | 133 ++++++++++++--- 18 files changed, 454 insertions(+), 197 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 1e3095997cf6..0ac50b171f59 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 @@ -29,7 +29,7 @@ ChatMessageReadReceipt ) -from ._utils import _to_utc_datetime # pylint: disable=unused-import +from ._utils import _to_utc_datetime, CommunicationUserIdentifierConverter # pylint: disable=unused-import from ._version import SDK_MONIKER if TYPE_CHECKING: @@ -339,7 +339,8 @@ def list_messages( """Gets a list of messages from a thread. :keyword int results_per_page: The maximum number of messages to be returned per page. - :keyword ~datetime.datetime start_time: The start time where the range query. + :keyword ~datetime.datetime start_time: The earliest point in time to get messages up to. + The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of ChatMessage :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatMessage] @@ -574,7 +575,8 @@ def remove_participant( return self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, - chat_participant_id=user.identifier, + participant_communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(user), + # pylint:disable=protected-access **kwargs) def close(self): diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py index ffeba8865187..3b061acc042c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py @@ -38,7 +38,7 @@ def __init__( super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-11-01-preview3" + self.api_version = "2021-01-27-preview4" kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py index ccd461ebf21b..f9848e62fb00 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py @@ -33,7 +33,7 @@ def __init__( super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-11-01-preview3" + self.api_version = "2021-01-27-preview4" kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py index f4c03ab7678e..27015c87e6b7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py @@ -55,8 +55,8 @@ async def create_chat_thread( :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest :param repeatability_request_id: If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same - Repeatability-Request-ID and get back an appropriate response without the server executing the - request multiple times. The value of the Repeatability-Request-ID is an opaque string + Repeatability-Request-Id and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. :type repeatability_request_id: str @@ -75,7 +75,7 @@ async def create_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -93,7 +93,7 @@ async def create_chat_thread( # Construct headers header_parameters = {} # type: Dict[str, Any] if repeatability_request_id is not None: - header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['repeatability-Request-Id'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') @@ -146,7 +146,7 @@ def list_chat_threads( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -230,7 +230,7 @@ async def get_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -291,7 +291,7 @@ async def delete_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL 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 c0310c0e14a0..ef8b605e8af4 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 @@ -73,7 +73,7 @@ def list_chat_read_receipts( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -162,7 +162,7 @@ async def send_chat_read_receipt( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -228,7 +228,7 @@ async def send_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -301,7 +301,7 @@ def list_chat_messages( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -390,7 +390,7 @@ async def get_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -458,7 +458,7 @@ async def update_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" @@ -525,7 +525,7 @@ async def delete_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -584,7 +584,7 @@ async def send_typing_notification( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -648,7 +648,7 @@ def list_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -711,7 +711,7 @@ async def get_next(next_link=None): async def remove_chat_participant( self, chat_thread_id: str, - chat_participant_id: str, + participant_communication_identifier: "_models.CommunicationIdentifierModel", **kwargs ) -> None: """Remove a participant from a thread. @@ -720,8 +720,9 @@ async def remove_chat_participant( :param chat_thread_id: Thread id to remove the participant from. :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 participant_communication_identifier: Id of the thread participant to remove from the + thread. + :type participant_communication_identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :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 @@ -737,7 +738,8 @@ async def remove_chat_participant( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -745,7 +747,6 @@ async def remove_chat_participant( 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,9 +756,13 @@ 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(participant_communication_identifier, 'CommunicationIdentifierModel') + 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 @@ -768,7 +773,7 @@ async def remove_chat_participant( if cls: return cls(pipeline_response, None, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:remove'} # type: ignore async def add_chat_participants( self, @@ -799,7 +804,7 @@ async def add_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -868,7 +873,7 @@ async def update_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py index 8ebf1b140cd7..fba77405c47d 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py @@ -103,8 +103,12 @@ class ChatMessage(msrest.serialization.Model): :param created_on: Required. The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type created_on: ~datetime.datetime - :param sender_id: The id of the chat message sender. - :type sender_id: str + :param sender_communication_identifier: Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type sender_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime @@ -129,7 +133,7 @@ class ChatMessage(msrest.serialization.Model): 'content': {'key': 'content', 'type': 'ChatMessageContent'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, 'edited_on': {'key': 'editedOn', 'type': 'iso-8601'}, } @@ -146,7 +150,7 @@ def __init__( self.content = kwargs.get('content', None) self.sender_display_name = kwargs.get('sender_display_name', None) self.created_on = kwargs['created_on'] - self.sender_id = kwargs.get('sender_id', None) + self.sender_communication_identifier = kwargs.get('sender_communication_identifier', None) self.deleted_on = kwargs.get('deleted_on', None) self.edited_on = kwargs.get('edited_on', None) @@ -161,16 +165,19 @@ class ChatMessageContent(msrest.serialization.Model): :param participants: Chat message content for messages of types participantAdded or participantRemoved. :type participants: list[~azure.communication.chat.models.ChatParticipant] - :param initiator: Chat message content for messages of types participantAdded or - participantRemoved. - :type initiator: str + :param initiator_communication_identifier: Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type initiator_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel """ _attribute_map = { 'message': {'key': 'message', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, - 'initiator': {'key': 'initiator', 'type': 'str'}, + 'initiator_communication_identifier': {'key': 'initiatorCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, } def __init__( @@ -181,7 +188,7 @@ def __init__( self.message = kwargs.get('message', None) self.topic = kwargs.get('topic', None) self.participants = kwargs.get('participants', None) - self.initiator = kwargs.get('initiator', None) + self.initiator_communication_identifier = kwargs.get('initiator_communication_identifier', None) class ChatMessageReadReceipt(msrest.serialization.Model): @@ -189,8 +196,12 @@ class ChatMessageReadReceipt(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sender_id: Required. Id of the participant who read the message. - :type sender_id: str + :param sender_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type sender_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param chat_message_id: Required. Id of the chat message that has been read. This id is generated by the server. :type chat_message_id: str @@ -200,13 +211,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): """ _validation = { - 'sender_id': {'required': True}, + 'sender_communication_identifier': {'required': True}, 'chat_message_id': {'required': True}, 'read_on': {'required': True}, } _attribute_map = { - 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, } @@ -216,7 +227,7 @@ def __init__( **kwargs ): super(ChatMessageReadReceipt, self).__init__(**kwargs) - self.sender_id = kwargs['sender_id'] + self.sender_communication_identifier = kwargs['sender_communication_identifier'] self.chat_message_id = kwargs['chat_message_id'] self.read_on = kwargs['read_on'] @@ -292,12 +303,11 @@ class ChatParticipant(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. The id of the chat participant. - :type id: str - :param identifier: Identifies a participant in Azure Communication services. A participant is, - for example, a phone number or an Azure communication user. This model must be interpreted as a - union: Apart from rawId, at most one further property may be set. - :type identifier: ~azure.communication.chat.models.CommunicationIdentifierModel + :param communication_identifier: Required. Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type communication_identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The @@ -306,12 +316,11 @@ class ChatParticipant(msrest.serialization.Model): """ _validation = { - 'id': {'required': True}, + 'communication_identifier': {'required': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'CommunicationIdentifierModel'}, + 'communication_identifier': {'key': 'communicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, } @@ -321,8 +330,7 @@ def __init__( **kwargs ): super(ChatParticipant, self).__init__(**kwargs) - self.id = kwargs['id'] - self.identifier = kwargs.get('identifier', None) + self.communication_identifier = kwargs['communication_identifier'] self.display_name = kwargs.get('display_name', None) self.share_history_time = kwargs.get('share_history_time', None) @@ -372,8 +380,12 @@ class ChatThread(msrest.serialization.Model): :param created_on: Required. The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type created_on: ~datetime.datetime - :param created_by: Required. Id of the chat thread owner. - :type created_by: str + :param created_by_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type created_by_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime @@ -383,14 +395,14 @@ class ChatThread(msrest.serialization.Model): 'id': {'required': True}, 'topic': {'required': True}, 'created_on': {'required': True}, - 'created_by': {'required': True}, + 'created_by_communication_identifier': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, } @@ -402,7 +414,7 @@ def __init__( self.id = kwargs['id'] self.topic = kwargs['topic'] self.created_on = kwargs['created_on'] - self.created_by = kwargs['created_by'] + self.created_by_communication_identifier = kwargs['created_by_communication_identifier'] self.deleted_on = kwargs.get('deleted_on', None) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py index 95e1db633d98..0c52e6d120b3 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py @@ -114,8 +114,12 @@ class ChatMessage(msrest.serialization.Model): :param created_on: Required. The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type created_on: ~datetime.datetime - :param sender_id: The id of the chat message sender. - :type sender_id: str + :param sender_communication_identifier: Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type sender_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime @@ -140,7 +144,7 @@ class ChatMessage(msrest.serialization.Model): 'content': {'key': 'content', 'type': 'ChatMessageContent'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, 'edited_on': {'key': 'editedOn', 'type': 'iso-8601'}, } @@ -155,7 +159,7 @@ def __init__( created_on: datetime.datetime, content: Optional["ChatMessageContent"] = None, sender_display_name: Optional[str] = None, - sender_id: Optional[str] = None, + sender_communication_identifier: Optional["CommunicationIdentifierModel"] = None, deleted_on: Optional[datetime.datetime] = None, edited_on: Optional[datetime.datetime] = None, **kwargs @@ -168,7 +172,7 @@ def __init__( self.content = content self.sender_display_name = sender_display_name self.created_on = created_on - self.sender_id = sender_id + self.sender_communication_identifier = sender_communication_identifier self.deleted_on = deleted_on self.edited_on = edited_on @@ -183,16 +187,19 @@ class ChatMessageContent(msrest.serialization.Model): :param participants: Chat message content for messages of types participantAdded or participantRemoved. :type participants: list[~azure.communication.chat.models.ChatParticipant] - :param initiator: Chat message content for messages of types participantAdded or - participantRemoved. - :type initiator: str + :param initiator_communication_identifier: Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type initiator_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel """ _attribute_map = { 'message': {'key': 'message', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, - 'initiator': {'key': 'initiator', 'type': 'str'}, + 'initiator_communication_identifier': {'key': 'initiatorCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, } def __init__( @@ -201,14 +208,14 @@ def __init__( message: Optional[str] = None, topic: Optional[str] = None, participants: Optional[List["ChatParticipant"]] = None, - initiator: Optional[str] = None, + initiator_communication_identifier: Optional["CommunicationIdentifierModel"] = None, **kwargs ): super(ChatMessageContent, self).__init__(**kwargs) self.message = message self.topic = topic self.participants = participants - self.initiator = initiator + self.initiator_communication_identifier = initiator_communication_identifier class ChatMessageReadReceipt(msrest.serialization.Model): @@ -216,8 +223,12 @@ class ChatMessageReadReceipt(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sender_id: Required. Id of the participant who read the message. - :type sender_id: str + :param sender_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type sender_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param chat_message_id: Required. Id of the chat message that has been read. This id is generated by the server. :type chat_message_id: str @@ -227,13 +238,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): """ _validation = { - 'sender_id': {'required': True}, + 'sender_communication_identifier': {'required': True}, 'chat_message_id': {'required': True}, 'read_on': {'required': True}, } _attribute_map = { - 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, } @@ -241,13 +252,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): def __init__( self, *, - sender_id: str, + sender_communication_identifier: "CommunicationIdentifierModel", chat_message_id: str, read_on: datetime.datetime, **kwargs ): super(ChatMessageReadReceipt, self).__init__(**kwargs) - self.sender_id = sender_id + self.sender_communication_identifier = sender_communication_identifier self.chat_message_id = chat_message_id self.read_on = read_on @@ -327,12 +338,11 @@ class ChatParticipant(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. The id of the chat participant. - :type id: str - :param identifier: Identifies a participant in Azure Communication services. A participant is, - for example, a phone number or an Azure communication user. This model must be interpreted as a - union: Apart from rawId, at most one further property may be set. - :type identifier: ~azure.communication.chat.models.CommunicationIdentifierModel + :param communication_identifier: Required. Identifies a participant in Azure Communication + services. A participant is, for example, a phone number or an Azure communication user. This + model must be interpreted as a union: Apart from rawId, at most one further property may be + set. + :type communication_identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The @@ -341,12 +351,11 @@ class ChatParticipant(msrest.serialization.Model): """ _validation = { - 'id': {'required': True}, + 'communication_identifier': {'required': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'CommunicationIdentifierModel'}, + 'communication_identifier': {'key': 'communicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, } @@ -354,15 +363,13 @@ class ChatParticipant(msrest.serialization.Model): def __init__( self, *, - id: str, - identifier: Optional["CommunicationIdentifierModel"] = None, + communication_identifier: "CommunicationIdentifierModel", display_name: Optional[str] = None, share_history_time: Optional[datetime.datetime] = None, **kwargs ): super(ChatParticipant, self).__init__(**kwargs) - self.id = id - self.identifier = identifier + self.communication_identifier = communication_identifier self.display_name = display_name self.share_history_time = share_history_time @@ -414,8 +421,12 @@ class ChatThread(msrest.serialization.Model): :param created_on: Required. The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type created_on: ~datetime.datetime - :param created_by: Required. Id of the chat thread owner. - :type created_by: str + :param created_by_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type created_by_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime @@ -425,14 +436,14 @@ class ChatThread(msrest.serialization.Model): 'id': {'required': True}, 'topic': {'required': True}, 'created_on': {'required': True}, - 'created_by': {'required': True}, + 'created_by_communication_identifier': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, } @@ -442,7 +453,7 @@ def __init__( id: str, topic: str, created_on: datetime.datetime, - created_by: str, + created_by_communication_identifier: "CommunicationIdentifierModel", deleted_on: Optional[datetime.datetime] = None, **kwargs ): @@ -450,7 +461,7 @@ def __init__( self.id = id self.topic = topic self.created_on = created_on - self.created_by = created_by + self.created_by_communication_identifier = created_by_communication_identifier self.deleted_on = deleted_on diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py index c6c3e06c9d72..8aa4a16656e7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py @@ -60,8 +60,8 @@ def create_chat_thread( :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest :param repeatability_request_id: If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same - Repeatability-Request-ID and get back an appropriate response without the server executing the - request multiple times. The value of the Repeatability-Request-ID is an opaque string + Repeatability-Request-Id and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. :type repeatability_request_id: str @@ -80,7 +80,7 @@ def create_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -98,7 +98,7 @@ def create_chat_thread( # Construct headers header_parameters = {} # type: Dict[str, Any] if repeatability_request_id is not None: - header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['repeatability-Request-Id'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') @@ -152,7 +152,7 @@ def list_chat_threads( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -237,7 +237,7 @@ def get_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -299,7 +299,7 @@ def delete_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL 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 46c22d82b4b5..5055a11869c1 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 @@ -78,7 +78,7 @@ def list_chat_read_receipts( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -168,7 +168,7 @@ def send_chat_read_receipt( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -235,7 +235,7 @@ def send_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -309,7 +309,7 @@ def list_chat_messages( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -399,7 +399,7 @@ def get_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -468,7 +468,7 @@ def update_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" @@ -536,7 +536,7 @@ def delete_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -596,7 +596,7 @@ def send_typing_notification( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" # Construct URL @@ -661,7 +661,7 @@ def list_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" accept = "application/json" def prepare_request(next_link=None): @@ -724,7 +724,7 @@ def get_next(next_link=None): def remove_chat_participant( self, chat_thread_id, # type: str - chat_participant_id, # type: str + participant_communication_identifier, # type: "_models.CommunicationIdentifierModel" **kwargs # type: Any ): # type: (...) -> None @@ -734,8 +734,9 @@ def remove_chat_participant( :param chat_thread_id: Thread id to remove the participant from. :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 participant_communication_identifier: Id of the thread participant to remove from the + thread. + :type participant_communication_identifier: ~azure.communication.chat.models.CommunicationIdentifierModel :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 @@ -751,7 +752,8 @@ def remove_chat_participant( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -759,7 +761,6 @@ def remove_chat_participant( 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,9 +770,13 @@ 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(participant_communication_identifier, 'CommunicationIdentifierModel') + 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 @@ -782,7 +787,7 @@ def remove_chat_participant( if cls: return cls(pipeline_response, None, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:remove'} # type: ignore def add_chat_participants( self, @@ -814,7 +819,7 @@ def add_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -884,7 +889,7 @@ def update_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" + api_version = "2021-01-27-preview4" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index 5055b1c40369..ea7919ead08c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -7,6 +7,7 @@ from ._generated.models import ChatParticipant as ChatParticipantAutorest from ._shared.models import CommunicationUserIdentifier from ._generated.models import ChatMessageType +from ._utils import CommunicationUserIdentifierConverter class ChatThreadParticipant(object): """A participant of the chat thread. @@ -35,14 +36,16 @@ def __init__( @classmethod def _from_generated(cls, chat_thread_participant): return cls( - user=CommunicationUserIdentifier(chat_thread_participant.id), + user=CommunicationUserIdentifierConverter._from_identifier_model( + chat_thread_participant.communication_identifier), # pylint:disable=protected-access display_name=chat_thread_participant.display_name, share_history_time=chat_thread_participant.share_history_time ) def _to_generated(self): return ChatParticipantAutorest( - id=self.user.identifier, + communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(self.user), + # pylint:disable=protected-access display_name=self.display_name, share_history_time=self.share_history_time ) @@ -70,8 +73,8 @@ class ChatMessage(object): :ivar created_on: The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type created_on: ~datetime.datetime - :ivar sender_id: The chat message sender. - :type sender_id: CommunicationUserIdentifier + :ivar sender_communication_identifier: The chat message sender. + :type sender_communication_identifier: CommunicationUserIdentifier :ivar deleted_on: The timestamp when the chat message was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime @@ -93,7 +96,7 @@ def __init__( self.content = kwargs['content'] self.sender_display_name = kwargs['sender_display_name'] self.created_on = kwargs['created_on'] - self.sender_id = kwargs['sender_id'] + self.sender_communication_identifier = kwargs['sender_communication_identifier'] self.deleted_on = kwargs['deleted_on'] self.edited_on = kwargs['edited_on'] @@ -115,7 +118,8 @@ def _from_generated(cls, chat_message): content=ChatMessageContent._from_generated(chat_message.content), # pylint:disable=protected-access sender_display_name=chat_message.sender_display_name, created_on=chat_message.created_on, - sender_id=CommunicationUserIdentifier(chat_message.sender_id), + sender_communication_identifier=CommunicationUserIdentifierConverter._from_identifier_model( + chat_message.sender_communication_identifier), # pylint:disable=protected-access deleted_on=chat_message.deleted_on, edited_on=chat_message.edited_on ) @@ -131,9 +135,9 @@ class ChatMessageContent(object): :param participants: Chat message content for messages of types participantAdded or participantRemoved. :type participants: list[~azure.communication.chat.models.ChatParticipant] - :param initiator: Chat message content for messages of types participantAdded or + :param initiator_communication_identifier: Chat message content for messages of types participantAdded or participantRemoved. - :type initiator: str + :type initiator_communication_identifier: CommunicationUserIdentifier """ def __init__( @@ -151,14 +155,16 @@ def __init__( def _from_generated(cls, chat_message_content): participants_list = chat_message_content.participants if participants_list is not None and len(participants_list) > 0: - participants = [ChatThreadParticipant._from_generated(participant) for participant in participants_list] # pylint:disable=protected-access + participants = [ChatThreadParticipant._from_generated(participant) for participant in + participants_list] # pylint:disable=protected-access else: participants = [] return cls( message=chat_message_content.message, topic=chat_message_content.topic, participants=participants, - initiator=chat_message_content.initiator + initiator=CommunicationUserIdentifierConverter._from_identifier_model( + chat_message_content.initiator_communication_identifier) # pylint:disable=protected-access ) @@ -176,8 +182,6 @@ class ChatThread(object): :vartype created_on: ~datetime.datetime :ivar created_by: the chat thread owner. :vartype created_by: CommunicationUserIdentifier - :param participants: Chat thread participants. - :type participants: list[~azure.communication.chat.ChatThreadParticipant] """ # pylint:disable=protected-access @@ -191,7 +195,6 @@ def __init__( self.topic = kwargs.get('topic', None) self.created_on = kwargs['created_on'] self.created_by = kwargs['created_by'] - self.participants = kwargs.get('participants', None) @classmethod def _from_generated(cls, chat_thread): @@ -199,7 +202,8 @@ def _from_generated(cls, chat_thread): id=chat_thread.id, topic=chat_thread.topic, created_on=chat_thread.created_on, - created_by=CommunicationUserIdentifier(chat_thread.created_by) + created_by=CommunicationUserIdentifierConverter._from_identifier_model( + chat_thread.created_by_communication_identifier) # pylint:disable=protected-access ) @@ -230,7 +234,8 @@ def __init__( @classmethod def _from_generated(cls, read_receipt): return cls( - sender=CommunicationUserIdentifier(read_receipt.sender_id), + sender=CommunicationUserIdentifierConverter._from_identifier_model( + read_receipt.sender_communication_identifier), # pylint:disable=protected-access chat_message_id=read_receipt.chat_message_id, read_on=read_receipt.read_on ) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index 5311e8979cc3..6101fa0683cb 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -3,9 +3,42 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +from .communication_identifier_serializer import CommunicationUserIdentifierSerializer def _to_utc_datetime(value): return value.strftime('%Y-%m-%dT%H:%M:%SZ') def return_response(response, deserialized, _): # pylint: disable=unused-argument return response, deserialized + +class CommunicationUserIdentifierConverter(object): + """ + utility class to interact with CommunicationUserIdentifierSerializer + + """ + @classmethod + def _to_identifier_model(cls, communicationIdentifier): + """ + Util function to convert the Communication identifier into CommunicationIdentifierModel + + :param communicationIdentifier: Identifier object + :type communicationIdentifier: Union[CommunicationUserIdentifier, + PhoneNumberIdentifier, MicrosoftTeamsUserIdentifier, UnknownIdentifier] + :return: CommunicationIdentifierModel + :rtype: ~azure.communication.chat.CommunicationIdentifierModel + :raises Union[TypeError, ValueError] + """ + return CommunicationUserIdentifierSerializer.serialize(communicationIdentifier) + + @classmethod + def _from_identifier_model(cls, identifierModel): + """ + Util function to convert the CommunicationIdentifierModel into Communication Identifier + + :param identifierModel: CommunicationIdentifierModel + :type identifierModel: CommunicationIdentifierModel + :return: Union[CommunicationUserIdentifier, CommunicationPhoneNumberIdentifier] + :rtype: Union[CommunicationUserIdentifier, CommunicationPhoneNumberIdentifier] + :rasies: ValueError + """ + return CommunicationUserIdentifierSerializer.deserialize(identifierModel) \ No newline at end of file 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 aa057f11dd6f..367009cf43c1 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 @@ -35,7 +35,7 @@ ChatMessageReadReceipt ) from .._shared.models import CommunicationUserIdentifier -from .._utils import _to_utc_datetime # pylint: disable=unused-import +from .._utils import _to_utc_datetime, CommunicationUserIdentifierConverter # pylint: disable=unused-import from .._version import SDK_MONIKER @@ -559,7 +559,8 @@ async def remove_participant( return await self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, - chat_participant_id=user.identifier, + participant_communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(user), + # pylint:disable=protected-access **kwargs) async def close(self) -> None: diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py index 2dcd11236147..e794daa0b1c6 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py @@ -83,11 +83,10 @@ def update_topic(self): def send_message(self): from azure.communication.chat import ChatThreadClient from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatMessageType refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) # [START send_message] - from azure.communication.chat import ChatMessagePriority - content = 'hello world' sender_display_name = 'sender name' diff --git a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md index 655be82ec88a..5bb778b2210f 100644 --- a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md @@ -15,7 +15,7 @@ autorest SWAGGER.md ### Settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json +input-file: https://int.chatgateway.trafficmanager.net/swagger/2021-01-27-preview4/swagger.json output-folder: ../azure/communication/chat/_generated namespace: azure.communication.chat no-namespace-folders: true diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_client.py index 4c6d5e2affd3..bd4e31f61328 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -137,8 +137,10 @@ def test_get_chat_thread(self): def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "id": thread_id, - "created_by": "8:acs:resource_user", - "participants": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] + "topic": "Lunch Chat thread", + "createdOn": "2020-10-30T10:50:50Z", + "deletedOn": "2020-10-30T10:50:50Z", + "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} }) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index e76a0810ca56..40376270aed2 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py @@ -127,8 +127,10 @@ async def test_get_chat_thread(): async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "id": thread_id, - "created_by": "8:acs:resource_user", - "participants": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] + "topic": "Lunch Chat thread", + "createdOn": "2020-10-30T10:50:50Z", + "deletedOn": "2020-10-30T10:50:50Z", + "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} }) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send)) 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 c4778586c2cc..ec8ea2974dee 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 @@ -168,16 +168,21 @@ def mock_send(*_, **__): "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) @@ -196,21 +201,36 @@ def mock_send(*_, **__): def test_list_messages(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" message_id='1596823919339' + message_str = "Hi I am Bob." raised = False def mock_send(*_, **__): return mock_response(status_code=200, json_payload={"value": [{ - "id": message_id, - "type": "text", - "sequenceId": "3", - "version": message_id, - "content": { - "message": "Hi I am Bob." - }, - "senderDisplayName": "Bob", - "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" - }]}) + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": message_str, + "topic": "Lunch Chat thread", + "participants": [ + { + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" + }]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) chat_messages = None @@ -229,6 +249,7 @@ def test_list_messages_with_start_time(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" raised = False message_id = '1596823919339' + message_str = "Hi I am Bob." def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ @@ -236,14 +257,28 @@ def mock_send(*_, **__): { "id": message_id, "type": "text", - "sequenceId": "3", + "sequenceId": "2", "version": message_id, "content": { - "message": "Hi I am Bob." + "message": message_str, + "topic": "Lunch Chat thread", + "participants": [ + { + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }, { "id": message_id, @@ -251,20 +286,25 @@ def mock_send(*_, **__): "sequenceId": "3", "version": message_id, "content": { - "message": "Come one guys, lets go for lunch together.", + "message": message_str, "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" } ]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) @@ -321,7 +361,18 @@ def test_list_participants(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": participant_id}]}) + return mock_response(status_code=200, json_payload={"value": [ + { + "communicationIdentifier": { + "rawId": participant_id, + "communicationUser": { + "id": participant_id + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) chat_thread_participants = None @@ -345,8 +396,26 @@ def test_list_participants_with_results_per_page(self): def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"id": participant_id_1}, - {"id": participant_id_2} + { + "communicationIdentifier": { + "rawId": participant_id_1, + "communicationUser": { + "id": participant_id_1 + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + }, + { + "communicationIdentifier": { + "rawId": participant_id_2, + "communicationUser": { + "id": participant_id_2 + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } ]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, @@ -459,7 +528,19 @@ def test_list_read_receipts(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"chatMessageId": message_id}]}) + return mock_response(status_code=200, json_payload={ + "value": [ + { + "chatMessageId": message_id, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + } + ] + }) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) read_receipts = None @@ -482,8 +563,24 @@ def test_list_read_receipts_with_results_per_page(self): def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"chatMessageId": message_id_1}, - {"chatMessageId": message_id_2} + { + "chatMessageId": message_id_1, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + }, + { + "chatMessageId": message_id_2, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + } ]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) 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 bf404b459930..88bd14bbca6c 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 @@ -170,16 +170,21 @@ async def mock_send(*_, **__): "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -212,16 +217,21 @@ async def mock_send(*_, **__): "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", "createdOn": "2021-01-27T01:37:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -250,46 +260,56 @@ async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ { - "id": "message_id1", + "id": "message_id_1", "type": "text", "sequenceId": "3", - "version": "message_id1", + "version": "message_id_1", "content": { "message": "message_str", "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", - "createdOn": "2020-08-17T18:05:44Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "createdOn": "2021-01-27T01:37:33Z", + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }, { - "id": "message_id2", + "id": "message_id_2", "type": "text", "sequenceId": "3", - "version": "message_id2", + "version": "message_id_2", "content": { "message": "message_str", "topic": "Lunch Chat thread", "participants": [ { - "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "communicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, "displayName": "Bob", "shareHistoryTime": "2020-10-30T10:50:50Z" } ], - "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + "initiatorCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}} }, "senderDisplayName": "Bob", - "createdOn": "2020-08-17T23:13:33Z", - "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + "createdOn": "2021-01-27T01:37:33Z", + "senderCommunicationIdentifier": {"rawId": "string", "communicationUser": { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"}}, + "deletedOn": "2021-01-27T01:37:33Z", + "editedOn": "2021-01-27T01:37:33Z" }]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -351,7 +371,18 @@ async def test_list_participants(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": participant_id}]}) + return mock_response(status_code=200, json_payload={"value": [ + { + "communicationIdentifier": { + "rawId": participant_id, + "communicationUser": { + "id": participant_id + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) chat_thread_participants = None @@ -378,8 +409,26 @@ async def test_list_participants_with_results_per_page(): async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"id": participant_id_1}, - {"id": participant_id_2} + { + "communicationIdentifier": { + "rawId": participant_id_1, + "communicationUser": { + "id": participant_id_1 + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + }, + { + "communicationIdentifier": { + "rawId": participant_id_2, + "communicationUser": { + "id": participant_id_2 + } + }, + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -500,7 +549,17 @@ async def test_list_read_receipts(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"chatMessageId": message_id}]}) + return mock_response(status_code=200, json_payload={"value": [ + { + "chatMessageId": message_id, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + } + ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) read_receipts = None @@ -527,8 +586,24 @@ async def test_list_read_receipts_with_results_per_page(): 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, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + }, + { + "chatMessageId": message_id_2, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + } ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -555,7 +630,15 @@ async def test_list_read_receipts_with_results_per_page_and_skip(): async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"chatMessageId": message_id_1} + { + "chatMessageId": message_id_1, + "senderCommunicationIdentifier": { + "rawId": "string", + "communicationUser": { + "id": "string" + } + } + } ]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) From 181af3a6355d73741f2cfa5ad91c8eebb1f69783 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 24 Feb 2021 01:59:04 -0800 Subject: [PATCH 04/16] Chat - preview4 changes - CommunicationUserIdentifier models added - create_chat_thread - returns CreateChatThreadResult instead of ChatThreadClient - add_participant - docstring update AddChatParticipantsResult instead of None - add_participants - docstring update AddChatParticipantsResult instead of None --- .../azure/communication/chat/__init__.py | 15 +- .../azure/communication/chat/_chat_client.py | 17 +- .../communication/chat/_chat_thread_client.py | 12 +- .../azure/communication/chat/_models.py | 37 ++- .../azure/communication/chat/aio/__init__.py | 6 +- .../chat/aio/_chat_client_async.py | 15 +- .../chat/aio/_chat_thread_client_async.py | 15 +- .../samples/chat_client_sample.py | 14 +- .../samples/chat_client_sample_async.py | 10 +- ...at_client_e2e.test_create_chat_thread.yaml | 80 +++--- ...hat_thread_w_repeatability_request_id.yaml | 100 ++++---- ...at_client_e2e.test_delete_chat_thread.yaml | 88 ++++--- ..._chat_client_e2e.test_get_chat_thread.yaml | 93 ++++--- ...hat_client_e2e.test_get_thread_client.yaml | 80 +++--- ...hat_client_e2e.test_list_chat_threads.yaml | 86 ++++--- ...e_async.test_create_chat_thread_async.yaml | 84 ++++--- ...read_w_repeatability_request_id_async.yaml | 106 ++++---- ...ent_e2e_async.test_delete_chat_thread.yaml | 94 +++---- ...client_e2e_async.test_get_chat_thread.yaml | 99 ++++---- ...ient_e2e_async.test_get_thread_client.yaml | 84 ++++--- ...ient_e2e_async.test_list_chat_threads.yaml | 94 +++---- ...hread_client_e2e.test_add_participant.yaml | 142 ++++++----- ...read_client_e2e.test_add_participants.yaml | 142 ++++++----- ...thread_client_e2e.test_delete_message.yaml | 148 ++++++----- ...at_thread_client_e2e.test_get_message.yaml | 153 +++++++----- ..._thread_client_e2e.test_list_messages.yaml | 168 +++++++------ ...ead_client_e2e.test_list_participants.yaml | 146 ++++++----- ...ad_client_e2e.test_list_read_receipts.yaml | 210 +++++++++------- ...ad_client_e2e.test_remove_participant.yaml | 158 +++++++----- ...t_thread_client_e2e.test_send_message.yaml | 140 ++++++----- ...ead_client_e2e.test_send_read_receipt.yaml | 144 ++++++----- ...ent_e2e.test_send_typing_notification.yaml | 140 ++++++----- ...thread_client_e2e.test_update_message.yaml | 148 ++++++----- ...t_thread_client_e2e.test_update_topic.yaml | 140 ++++++----- ...client_e2e_async.test_add_participant.yaml | 148 ++++++----- ...lient_e2e_async.test_add_participants.yaml | 148 ++++++----- ..._client_e2e_async.test_delete_message.yaml | 156 +++++++----- ...ead_client_e2e_async.test_get_message.yaml | 161 ++++++------ ...d_client_e2e_async.test_list_messages.yaml | 186 +++++++------- ...ient_e2e_async.test_list_participants.yaml | 158 ++++++------ ...ent_e2e_async.test_list_read_receipts.yaml | 236 ++++++++++-------- ...ent_e2e_async.test_remove_participant.yaml | 166 ++++++------ ...ad_client_e2e_async.test_send_message.yaml | 146 ++++++----- ...ient_e2e_async.test_send_read_receipt.yaml | 154 +++++++----- ...e_async.test_send_typing_notification.yaml | 146 ++++++----- ..._client_e2e_async.test_update_message.yaml | 156 +++++++----- ...ad_client_e2e_async.test_update_topic.yaml | 146 ++++++----- .../tests/test_chat_client.py | 18 +- .../tests/test_chat_client_async.py | 13 +- .../tests/test_chat_client_e2e.py | 8 +- .../tests/test_chat_client_e2e_async.py | 10 +- .../tests/test_chat_thread_client.py | 7 +- .../tests/test_chat_thread_client_async.py | 4 +- .../tests/test_chat_thread_client_e2e.py | 10 +- .../test_chat_thread_client_e2e_async.py | 12 +- 55 files changed, 3010 insertions(+), 2387 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py index b96a16e4aff7..d2be3e6596ce 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -4,10 +4,11 @@ from ._generated.models import ( SendChatMessageResult, ChatThreadInfo, - ChatMessageType + ChatMessageType, + CreateChatThreadResult, + AddChatParticipantsResult ) -from ._shared.user_credential import CommunicationTokenCredential -from ._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from ._models import ( ChatThreadParticipant, ChatMessage, @@ -15,7 +16,6 @@ ChatMessageReadReceipt, ChatMessageContent ) -from ._shared.models import CommunicationUserIdentifier __all__ = [ 'ChatClient', @@ -26,10 +26,9 @@ 'SendChatMessageResult', 'ChatThread', 'ChatThreadInfo', - 'CommunicationTokenCredential', - 'CommunicationTokenRefreshOptions', - 'CommunicationUserIdentifier', 'ChatThreadParticipant', - 'ChatMessageType' + 'ChatMessageType', + 'CreateChatThreadResult', + 'AddChatParticipantsResult' ] __version__ = VERSION diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index af1ad4f897a2..61a936787c1d 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -123,7 +123,7 @@ def create_chat_thread( repeatability_request_id=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> ChatThreadClient + # type: (...) -> CreateChatThreadResult """Creates a chat thread. :param topic: Required. The thread topic. @@ -137,8 +137,8 @@ def create_chat_thread( representing a client-generated, globally unique for all time, identifier for the request. If not specified, a new unique id would be generated. :type repeatability_request_id: str - :return: ChatThreadClient - :rtype: ~azure.communication.chat.ChatThreadClient + :return: CreateChatThreadResult + :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -148,7 +148,7 @@ def create_chat_thread( :end-before: [END create_thread] :language: python :dedent: 8 - :caption: Creating ChatThreadClient by creating a new chat thread. + :caption: Creating ChatThread by creating a new chat thread. """ if not topic: raise ValueError("topic cannot be None.") @@ -174,13 +174,8 @@ def create_chat_thread( errors.append('participant ' + participant.target + ' failed to join thread due to: ' + participant.message) raise RuntimeError(errors) - thread_id = create_chat_thread_result.chat_thread.id - return ChatThreadClient( - endpoint=self._endpoint, - credential=self._credential, - thread_id=thread_id, - **kwargs - ) + + return create_chat_thread_result @distributed_trace def get_chat_thread( 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 0ac50b171f59..875eaebcb8b5 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 @@ -479,14 +479,14 @@ def add_participant( thread_participant, # type: ChatThreadParticipant **kwargs # type: Any ): - # type: (...) -> None + # type: (...) -> AddChatParticipantsResult """Adds single thread participant to a thread. If participant already exist, no change occurs. :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant :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.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -515,14 +515,14 @@ def add_participants( thread_participants, # type: list[ChatThreadParticipant] **kwargs # type: Any ): - # type: (...) -> None + # type: (...) -> AddChatParticipantsResult """Adds thread participants to a thread. If participants already exist, no change occurs. :param thread_participants: Required. Thread participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :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.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index ea7919ead08c..8cc6ca330fcf 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -110,6 +110,12 @@ def _get_message_type(cls, chat_message_type): @classmethod def _from_generated(cls, chat_message): + + sender_communication_identifier = chat_message.sender_communication_identifier + if sender_communication_identifier is not None: + sender_communication_identifier = CommunicationUserIdentifierConverter._from_identifier_model( + chat_message.sender_communication_identifier) # pylint:disable=protected-access + return cls( id=chat_message.id, type=cls._get_message_type(chat_message.type), @@ -118,8 +124,7 @@ def _from_generated(cls, chat_message): content=ChatMessageContent._from_generated(chat_message.content), # pylint:disable=protected-access sender_display_name=chat_message.sender_display_name, created_on=chat_message.created_on, - sender_communication_identifier=CommunicationUserIdentifierConverter._from_identifier_model( - chat_message.sender_communication_identifier), # pylint:disable=protected-access + sender_communication_identifier=sender_communication_identifier, deleted_on=chat_message.deleted_on, edited_on=chat_message.edited_on ) @@ -159,12 +164,18 @@ def _from_generated(cls, chat_message_content): participants_list] # pylint:disable=protected-access else: participants = [] + + initiator = chat_message_content.initiator_communication_identifier + # check if initiator is populated + if initiator is not None: + initiator = CommunicationUserIdentifierConverter._from_identifier_model( + chat_message_content.initiator_communication_identifier) # pylint:disable=protected-access + return cls( message=chat_message_content.message, topic=chat_message_content.topic, participants=participants, - initiator=CommunicationUserIdentifierConverter._from_identifier_model( - chat_message_content.initiator_communication_identifier) # pylint:disable=protected-access + initiator=initiator ) @@ -198,12 +209,17 @@ def __init__( @classmethod def _from_generated(cls, chat_thread): + + created_by = chat_thread.created_by_communication_identifier + if created_by is not None: + created_by = CommunicationUserIdentifierConverter._from_identifier_model( + chat_thread.created_by_communication_identifier) # pylint:disable=protected-access + return cls( id=chat_thread.id, topic=chat_thread.topic, created_on=chat_thread.created_on, - created_by=CommunicationUserIdentifierConverter._from_identifier_model( - chat_thread.created_by_communication_identifier) # pylint:disable=protected-access + created_by=created_by ) @@ -233,9 +249,14 @@ def __init__( @classmethod def _from_generated(cls, read_receipt): + + sender = read_receipt.sender_communication_identifier + if sender is not None: + sender = CommunicationUserIdentifierConverter._from_identifier_model( + read_receipt.sender_communication_identifier) # pylint:disable=protected-access + return cls( - sender=CommunicationUserIdentifierConverter._from_identifier_model( - read_receipt.sender_communication_identifier), # pylint:disable=protected-access + sender=sender, chat_message_id=read_receipt.chat_message_id, read_on=read_receipt.read_on ) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py index 0cdbb1f11b3c..40356a5edc3a 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py @@ -4,12 +4,8 @@ # ------------------------------------ from ._chat_client_async import ChatClient from ._chat_thread_client_async import ChatThreadClient -from .._shared.user_credential_async import CommunicationTokenCredential -from .._shared.user_token_refresh_options import CommunicationTokenRefreshOptions __all__ = [ "ChatClient", - "ChatThreadClient", - "CommunicationTokenCredential", - "CommunicationTokenRefreshOptions" + "ChatThreadClient" ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index afd984be57ff..3d0c7f8438ec 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -128,7 +128,7 @@ async def create_chat_thread( **kwargs ) -> ChatThreadClient: - # type: (...) -> ChatThreadClient + # type: (...) -> CreateChatThreadResult """Creates a chat thread. @@ -143,8 +143,8 @@ async def create_chat_thread( representing a client-generated, globally unique for all time, identifier for the request. If not specified, a new unique id would be generated. :type repeatability_request_id: str - :return: ChatThreadClient - :rtype: ~azure.communication.chat.aio.ChatThreadClient + :return: CreateChatThreadResult + :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -180,13 +180,8 @@ async def create_chat_thread( errors.append('participant ' + participant.target + ' failed to join thread due to: ' + participant.message) raise RuntimeError(errors) - thread_id = create_chat_thread_result.chat_thread.id - return ChatThreadClient( - endpoint=self._endpoint, - credential=self._credential, - thread_id=thread_id, - **kwargs - ) + + return create_chat_thread_result @distributed_trace_async async def get_chat_thread( 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 367009cf43c1..f922c541e467 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 @@ -27,7 +27,8 @@ UpdateChatMessageRequest, UpdateChatThreadRequest, SendChatMessageResult, - ChatMessageType + ChatMessageType, + AddChatParticipantsResult ) from .._models import ( ChatThreadParticipant, @@ -465,14 +466,14 @@ async def add_participant( self, thread_participant: ChatThreadParticipant, **kwargs - ) -> None: + ) -> AddChatParticipantsResult: """Adds single thread participant to a thread. If participant already exist, no change occurs. :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant :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.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -500,14 +501,14 @@ async def add_participants( self, thread_participants: List[ChatThreadParticipant], **kwargs - ) -> None: + ) -> AddChatParticipantsResult: """Adds thread participants to a thread. If participants already exist, no change occurs. :param thread_participants: Required. Thread participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :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.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py index c5884f31a035..a622dfbe5088 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -53,11 +53,13 @@ def create_chat_client(self): def create_thread(self): # [START create_thread] from datetime import datetime + + from azure.communication.identity import CommunicationUserIdentifier + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.identity._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat import( ChatClient, - CommunicationUserIdentifier, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions ChatThreadParticipant ) @@ -72,16 +74,16 @@ def create_thread(self): )] # creates a new chat_thread everytime - chat_thread_client = chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = chat_client.create_chat_thread(topic, participants) # creates a new chat_thread if not exists repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier - chat_thread_client_w_repeatability_id = chat_client.create_chat_thread(topic, + create_chat_thread_result_w_repeatability_id = chat_client.create_chat_thread(topic, participants, repeatability_request_id) # [END create_thread] - self._thread_id = chat_thread_client.thread_id + self._thread_id = create_chat_thread_result.chat_thread.id print("thread created, id: " + self._thread_id) def get_chat_thread_client(self): diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py index f9d7503fa098..4acdcb1a9eae 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py @@ -54,7 +54,9 @@ def create_chat_client(self): async def create_thread_async(self): from datetime import datetime - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier refresh_options = CommunicationTokenRefreshOptions(self.token) @@ -68,16 +70,16 @@ async def create_thread_async(self): share_history_time=datetime.utcnow() )] # creates a new chat_thread everytime - chat_thread_client = await chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await chat_client.create_chat_thread(topic, participants) # creates a new chat_thread if not exists repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier - chat_thread_client_w_repeatability_id = await chat_client.create_chat_thread(topic, + create_chat_thread_result_w_repeatability_id = await chat_client.create_chat_thread(topic, participants, repeatability_request_id) # [END create_thread] - self._thread_id = chat_thread_client.thread_id + self._thread_id = create_chat_thread_result.chat_thread.id print("thread created, id: " + self._thread_id) def get_chat_thread_client(self): 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 53597211f34c..9e66e0524db1 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:05:51 GMT + - Wed, 24 Feb 2021 07:54:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:05:49 GMT + - Wed, 24 Feb 2021 07:54:35 GMT ms-cv: - - ZnvUuj0XsUmdCSvrKAuq/Q.0 + - y67NAbnaZkyYXnBQlIDCgg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 83ms + - 72ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:05:51 GMT + - Wed, 24 Feb 2021 07:54:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:05:49.906379+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:54:35.2336409+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:05:50 GMT + - Wed, 24 Feb 2021 07:54:37 GMT ms-cv: - - cCElD8gOXkyn78SC7PR2xA.0 + - 3DC7ufFI9k6OD4pvHdEJFg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 133ms + - 289ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - ee5399fe-a8b4-4f81-b022-eb5271820855 + repeatability-Request-Id: + - 102e2ff1-7991-4229-9220-d81abdc61910 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:1DwYpmFor6fm6d9B-KPvnaKt1GDCbGkphgtJGLw6qMY1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:05:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffb9-ff5a-1655-373a0d0025bf"}}' + body: '{"chatThread": {"id": "19:loG42He_Lmoq8RD55TPwcdcPf8iOGJIkMBNBXnAu6g41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:54:37Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:05:52 GMT + - Wed, 24 Feb 2021 07:54:38 GMT ms-cv: - - TO71ajX/1EiaJuJJQ5vqJw.0 + - WUTb1tBH9kae4GWRP088Vw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1318ms + - 1190ms status: code: 201 message: Created @@ -123,7 +131,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -131,13 +139,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:05:53 GMT + - Wed, 24 Feb 2021 07:54:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -145,13 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:06:09 GMT + - Wed, 24 Feb 2021 07:54:54 GMT ms-cv: - - w8dY644PGkyY7+bBkOXYHQ.0 + - Y2qLxqeR5EyZeRNdd8/wTw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16808ms + - 16761ms status: code: 204 message: No Content @@ -169,7 +179,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -177,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:06:09 GMT + - Wed, 24 Feb 2021 07:54:55 GMT ms-cv: - - qsobGe1ye0iPmeq6xTNEXA.0 + - LnjFuieB2UG/9f+e+hMx/g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 345ms + - 344ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml index d6ea61b26cd2..1364bc2e0c9e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:06:10 GMT + - Wed, 24 Feb 2021 07:54:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:09 GMT + - Wed, 24 Feb 2021 07:54:55 GMT ms-cv: - - 8aH3ZE1jlUSY/zW87XGWVg.0 + - 5p2bpEjETkKUKN6kvVRJSQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 36ms + - 62ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:06:10 GMT + - Wed, 24 Feb 2021 07:54:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:09.4122919+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:54:55.2250571+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:09 GMT + - Wed, 24 Feb 2021 07:54:55 GMT ms-cv: - - FlQlge6m9E699iT/tDaOfQ.0 + - 3e0cig2GqE+vD62D+HILig.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 89ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 3226b945-d88e-4c7e-abee-7468608ec067 + repeatability-Request-Id: + - d18062f3-d450-4099-bf4e-181252cc3f0c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:x5mqfZ2VXhexu1xRl38J_IthJWFc78uWfSJ7_fQ49qs1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:06:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-4adc-1db7-3a3a0d002ba2"}}' + body: '{"chatThread": {"id": "19:9Xd3awR4PuDEUm2_fE1hZdjg72Ng4iEwfi3ZsHUdjqQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:54:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:10 GMT + - Wed, 24 Feb 2021 07:54:57 GMT ms-cv: - - BQidqaje0kytcwLvtImyhw.0 + - f+KSTd1cRU2UQGAidLNL4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 913ms + - 909ms status: code: 201 message: Created @@ -129,33 +137,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 3226b945-d88e-4c7e-abee-7468608ec067 + repeatability-Request-Id: + - d18062f3-d450-4099-bf4e-181252cc3f0c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:x5mqfZ2VXhexu1xRl38J_IthJWFc78uWfSJ7_fQ49qs1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:06:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-4adc-1db7-3a3a0d002ba2"}}' + body: '{"chatThread": {"id": "19:9Xd3awR4PuDEUm2_fE1hZdjg72Ng4iEwfi3ZsHUdjqQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:54:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:11 GMT + - Wed, 24 Feb 2021 07:54:57 GMT ms-cv: - - QzgDF9PqIUOb1VmJ/WDwBQ.0 + - ZaHnzAGTWEa9Y1xs/pb/FQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 731ms + - 704ms status: code: 201 message: Created @@ -163,7 +173,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -171,13 +181,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:06:13 GMT + - Wed, 24 Feb 2021 07:54:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -185,13 +195,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:06:28 GMT + - Wed, 24 Feb 2021 07:55:14 GMT ms-cv: - - HRni64wz5EG6rPYVVX/BvA.0 + - QLh/Ju+c1EOoTGt41A0/Gg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16015ms + - 16436ms status: code: 204 message: No Content @@ -209,7 +221,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -217,13 +229,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:06:27 GMT + - Wed, 24 Feb 2021 07:55:14 GMT ms-cv: - - 9/q+DwwLaky0HTNC9m/YSw.0 + - w/3GpiXd8ECaXe5Pw7ECyw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 313ms + - 290ms 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 d41a415a6555..4c3cd5cf1674 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:06:29 GMT + - Wed, 24 Feb 2021 07:55:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:28 GMT + - Wed, 24 Feb 2021 07:55:14 GMT ms-cv: - - +o8WsDMOs0uqL5EJG1EhCA.0 + - bMB7217Nc0GAW7cz6Mf0CQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 269ms + - 36ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:06:30 GMT + - Wed, 24 Feb 2021 07:55:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:28.6577603+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:14.3367454+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:29 GMT + - Wed, 24 Feb 2021 07:55:14 GMT ms-cv: - - NXs+b7gabkGQbpFj6Ob9jw.0 + - 2n84ZcCiLkK3dTPXcjz1xQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 162ms + - 88ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - e249507a-f040-419b-b197-3e2585182bc0 + repeatability-Request-Id: + - e2d9f7f5-09ac-4bad-bdf3-5e4b470ef8ad method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:j9pZbUVFcG0UIKClamuE8fPBzDr7o2szKbPsuRRuH6M1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:06:30Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-95de-1655-373a0d0025c3"}}' + body: '{"chatThread": {"id": "19:miEkRbGP_VXWbZj4KbDrRX5KGaQtMwYYPT6B-hlhZkE1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:15Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:30 GMT + - Wed, 24 Feb 2021 07:55:15 GMT ms-cv: - - OtyGkQBz0k+TjFJiC9qciw.0 + - saovXszKWEKjVgWXdEUBCw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 919ms + - 893ms status: code: 201 message: Created @@ -133,7 +141,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -141,13 +149,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:06:31 GMT + - Wed, 24 Feb 2021 07:55:16 GMT ms-cv: - - mQ+gq8vICEGXJsrvlW4nNw.0 + - RcKVggzdGkSSusaTr71j6w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 338ms + - 425ms status: code: 204 message: No Content @@ -155,7 +163,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -163,13 +171,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:06:32 GMT + - Wed, 24 Feb 2021 07:55:18 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -177,13 +185,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:06:47 GMT + - Wed, 24 Feb 2021 07:55:33 GMT ms-cv: - - jgtU2RpRuECz0gcDM385Lw.0 + - ZPKs5GPSpEOL4KE1NXDMrg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16385ms + - 16898ms status: code: 204 message: No Content @@ -201,7 +211,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -209,13 +219,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:06:47 GMT + - Wed, 24 Feb 2021 07:55:34 GMT ms-cv: - - vXn1GQn/UkO+84loyHanjQ.0 + - qRIcXoOweEOlx02Tx/gVqQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 262ms + - 323ms 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 1dcfd729d18e..c552bf1ee86d 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:06:48 GMT + - Wed, 24 Feb 2021 07:55:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:47 GMT + - Wed, 24 Feb 2021 07:55:34 GMT ms-cv: - - UQWpMrfQB0uptNVSVeWXWg.0 + - gvGN3+cEekiGvb6JbrXyfg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 76ms + - 114ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:06:49 GMT + - Wed, 24 Feb 2021 07:55:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:47.4035307+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:33.7701311+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:47 GMT + - Wed, 24 Feb 2021 07:55:34 GMT ms-cv: - - tOyEJ/wQQE6lS3vi6YLgkg.0 + - E9kcLqUdOkGSz5NKEo/V3w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 96ms + - 90ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 8967dc15-d604-4257-bb87-44d8058b01a6 + repeatability-Request-Id: + - fe3924e9-155c-4b9d-acb9-a67ab638e24d method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:iAnuf61IaCSlEJsC8O3VbYqM-AMHX8L_wUgpMocRTHs1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:06:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-e02e-9c58-373a0d002dd6"}}' + body: '{"chatThread": {"id": "19:cIDts23OQ1cZLYeN2_LwTTnK1Nrsqr2V0qmGZUO9vM41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:35Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:48 GMT + - Wed, 24 Feb 2021 07:55:35 GMT ms-cv: - - /X7nkGa+NUmOrDElQS1Bvw.0 + - BxNBI10fYkGHj28qZqEehg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 899ms + - 905ms status: code: 201 message: Created @@ -131,25 +139,26 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-01T23:06:48Z", - "createdBy": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-24T07:55:35Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:06:49 GMT + - Wed, 24 Feb 2021 07:55:36 GMT ms-cv: - - LLJhSl5tYEaCJ4F/58GCqQ.0 + - ZKRdmazlLk2WTyXsl8lNfA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 264ms + - 249ms status: code: 200 message: OK @@ -157,7 +166,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -165,13 +174,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:06:50 GMT + - Wed, 24 Feb 2021 07:55:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -179,13 +188,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:07:05 GMT + - Wed, 24 Feb 2021 07:55:52 GMT ms-cv: - - xsILKS7K+0yTmDu48f13FQ.0 + - U4DJaAfIr0eFI7t11v0/8w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16893ms + - 16369ms status: code: 204 message: No Content @@ -203,7 +214,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -211,13 +222,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:07:06 GMT + - Wed, 24 Feb 2021 07:55:52 GMT ms-cv: - - RtDlEf0Z3k6b2K0CyU/63Q.0 + - GHXoS6+gzkevUp9xia5Dsg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 310ms + - 295ms 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 3b1b97458bd3..23494bb9f680 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:07:08 GMT + - Wed, 24 Feb 2021 07:55:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:06 GMT + - Wed, 24 Feb 2021 07:55:52 GMT ms-cv: - - ZU5arxpcBkuN+tm5herHCg.0 + - zdojK2LSLkmLh82tqD9CDQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 29ms + - 22ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:07:08 GMT + - Wed, 24 Feb 2021 07:55:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:06.4449462+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:52.7422665+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:06 GMT + - Wed, 24 Feb 2021 07:55:52 GMT ms-cv: - - lzLWBxG1nEeff221x5eFDQ.0 + - A3nJchu6BEijgGuSpcf3oQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 100ms + - 92ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - c6bb2f2d-0896-4cb7-86b5-00d9d5761055 + repeatability-Request-Id: + - f32a5fbd-7334-483e-9b4d-4a2a44291678 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Uiuh6FNzmfVS0c2HNkr_QCX0gEk1FFjcr-zn-VrTnhc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:07:07Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-2aa0-1db7-3a3a0d002ba6"}}' + body: '{"chatThread": {"id": "19:f6Pa_NZ7TulJzYQozCtksM2iVjDFK-PVQh_9Mhftlhg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:54Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:08 GMT + - Wed, 24 Feb 2021 07:55:54 GMT ms-cv: - - U0QyAn/ugU6H0ZxvqbdNDg.0 + - RLaOPTGnY0SdiGs4Ttc5yg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 862ms + - 818ms status: code: 201 message: Created @@ -123,7 +131,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -131,13 +139,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:07:09 GMT + - Wed, 24 Feb 2021 07:55:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -145,13 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:07:25 GMT + - Wed, 24 Feb 2021 07:56:10 GMT ms-cv: - - XHNTij4AikOzSly2DQRMZg.0 + - 8OJjAKXaYUGW3e+m2GUm0g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16828ms + - 16585ms status: code: 204 message: No Content @@ -169,7 +179,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -177,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:07:25 GMT + - Wed, 24 Feb 2021 07:56:11 GMT ms-cv: - - GrF9Je9SjE+2uzKFZKSfRg.0 + - wy9GwgrgXkiUMJT5Pi6WSg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 303ms + - 290ms 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 6040674e2923..43e39504ed37 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:07:26 GMT + - Wed, 24 Feb 2021 07:56:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:25 GMT + - Wed, 24 Feb 2021 07:56:11 GMT ms-cv: - - ZBImGh7ZAESko20q+2GvXg.0 + - MWfCZM+dt0qgFeS3BxiYkA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 11ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:07:26 GMT + - Wed, 24 Feb 2021 07:56:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:25.0879986+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:11.0755852+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:25 GMT + - Wed, 24 Feb 2021 07:56:11 GMT ms-cv: - - 31MYXxPAMEexuRXuhapk4w.0 + - RbTHex7+v0yQCWAkjLmwRg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 102ms + - 85ms status: code: 200 message: OK @@ -89,33 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - ca9c6cf2-f753-45b3-9a76-d7d86a6f318f + repeatability-Request-Id: + - 118a4409-f065-40f3-a18e-8fc72ba8f96a method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:bl8DP2LGHPRhk7ZPZ9GAlUpS4szKweh-3VPudlijLUg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:07:26Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-7371-1655-373a0d0025c4"}}' + body: '{"chatThread": {"id": "19:SmFK8STz8CxCf25ry2VWGQy73AKATo6fXS7lUEAnrZY1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:56:12Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:27 GMT + - Wed, 24 Feb 2021 07:56:12 GMT ms-cv: - - VqZOxX2c4kqTFVEHLa77Fw.0 + - llmfkZZvmkqhZJxtAUsPfw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1038ms + - 922ms status: code: 201 message: Created @@ -131,7 +139,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -140,9 +148,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:29 GMT + - Wed, 24 Feb 2021 07:56:14 GMT ms-cv: - - gFdW35Os30Guz6FRRnR6Qg.0 + - /VFnVqA+aEWGlLIvx6u9DQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -156,7 +164,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -164,13 +172,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:07:30 GMT + - Wed, 24 Feb 2021 07:56:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -178,13 +186,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:07:45 GMT + - Wed, 24 Feb 2021 07:56:31 GMT ms-cv: - - tZLG0lJIv0C4eg3da882Bw.0 + - Yrs37boKfkW4QC9WvI0iew.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16461ms + - 16334ms status: code: 204 message: No Content @@ -202,7 +212,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -210,13 +220,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:07:46 GMT + - Wed, 24 Feb 2021 07:56:32 GMT ms-cv: - - YuU0xKQrIU6+YkzfDMRpgQ.0 + - Yaq/lNpCkUOIV/9H2dfiIQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 303ms + - 332ms 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 d42052238e76..771fa353caf8 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:07:47 GMT + - Wed, 24 Feb 2021 07:55:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:46 GMT + - Wed, 24 Feb 2021 07:55:39 GMT ms-cv: - - J++BLQqKNkWICPCA+9xZ5A.0 + - C25aVtCMD0ifo5AUfyOXkQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 46ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:07:47 GMT + - Wed, 24 Feb 2021 07:55:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:47.0289732+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:38.9150846+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:07:47 GMT + - Wed, 24 Feb 2021 07:55:39 GMT ms-cv: - - 5pAZRPWRe0i48Hg8Jb+jrQ.0 + - gxU+3Tzux0mIAqmSrRq1GQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 926ms + - 87ms status: code: 200 message: OK @@ -85,30 +91,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 3d1ef516-d70b-44ca-9923-fbb0a98f85ce + repeatability-Request-Id: + - e789f034-77e9-4d65-9aca-dc0ee4cd69cd method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:yt2KMiiytdERIiWZQFH0bAjzO6rOwAPinaLi0mrDGb01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:07:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-c5cc-b0b7-3a3a0d002fc4"}}' + body: '{"chatThread": {"id": "19:bn9p-SCFbRL3v_QF2ve7_sCBn8nmXA7FfC3Q984OSf41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:40Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:07:48 GMT - ms-cv: mJTbpNZw80uaQIaKPqktTw.0 + date: Wed, 24 Feb 2021 07:55:39 GMT + ms-cv: XPxmQ6Ria0eyZd9ChL4rRA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 851ms + x-processing-time: 827ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -117,25 +125,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:07:48 GMT - ms-cv: gVvHOsLZu0K6aBGua2aZbQ.0 + date: Wed, 24 Feb 2021 07:55:41 GMT + ms-cv: qulBuJJZ/Eugsx3PeyZxJA.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 346ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -143,13 +151,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:07:50 GMT + - Wed, 24 Feb 2021 07:55:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -157,13 +165,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:08:04 GMT + - Wed, 24 Feb 2021 07:55:58 GMT ms-cv: - - QCpe+2PiPE2cp9pwMDjx+w.0 + - iRpAUpZvDE248VkiiO9hww.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16313ms + - 16719ms 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_w_repeatability_request_id_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml index 0c3d8a323d7a..b531558e5767 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:08:06 GMT + - Wed, 24 Feb 2021 07:55:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:05 GMT + - Wed, 24 Feb 2021 07:55:57 GMT ms-cv: - - BmO2rJliKkacnw64wuz7Qg.0 + - FB9d5JBNakm4a+vJYgipnQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 31ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:08:06 GMT + - Wed, 24 Feb 2021 07:56:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:05.2241522+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:57.5703776+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:05 GMT + - Wed, 24 Feb 2021 07:55:58 GMT ms-cv: - - lXr3PgaBu0ukIDdpT998MQ.0 + - puVoKzJoSEyN1/v7p1BzeA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 109ms + - 88ms status: code: 200 message: OK @@ -85,60 +91,64 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - d22a1da5-d171-48c2-b7cb-b4454a7213dd + repeatability-Request-Id: + - 16cca50e-e970-483c-b0e7-8946a643e6ac method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:pxayKUZkmv_fcL_6rAq9aBuZpsJDHOxMmT6t0uTv8pU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:08:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-101f-1655-373a0d0025c6"}}' + body: '{"chatThread": {"id": "19:a0dfadho4KbZKVmAC9XoDk6QuRGJkqf0Hm91G7AHTMA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:58Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:08:07 GMT - ms-cv: Z6uZ+gz1OkmUVgLK+F5oUw.0 + date: Wed, 24 Feb 2021 07:55:58 GMT + ms-cv: G1ncmSJ5ZkKk+t14YZ3Xcw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 845ms + x-processing-time: 821ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - d22a1da5-d171-48c2-b7cb-b4454a7213dd + repeatability-Request-Id: + - 16cca50e-e970-483c-b0e7-8946a643e6ac method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:pxayKUZkmv_fcL_6rAq9aBuZpsJDHOxMmT6t0uTv8pU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:08:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-101f-1655-373a0d0025c6"}}' + body: '{"chatThread": {"id": "19:a0dfadho4KbZKVmAC9XoDk6QuRGJkqf0Hm91G7AHTMA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:55:58Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:08:07 GMT - ms-cv: 2HnWsHW3e0O7piyoPIQ+hw.0 + date: Wed, 24 Feb 2021 07:55:59 GMT + ms-cv: tWKmcz+L90+uTgPUNI+BFA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 668ms + x-processing-time: 712ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -147,25 +157,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:08:08 GMT - ms-cv: sTmUo3kaV0KXVzuFhaOF6g.0 + date: Wed, 24 Feb 2021 07:55:59 GMT + ms-cv: 2DtA+zVCCki76430W0pwow.0 strict-transport-security: max-age=2592000 - x-processing-time: 295ms + x-processing-time: 287ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -173,13 +183,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:08:09 GMT + - Wed, 24 Feb 2021 07:56:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -187,13 +197,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:08:23 GMT + - Wed, 24 Feb 2021 07:56:16 GMT ms-cv: - - 6qXDz5fHa0yRI9HIVUTylQ.0 + - qimMYL2GxUuWm5kl0Q2OGQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15711ms + - 16621ms 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 7aed4a167227..8f8c24444db8 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:08:25 GMT + - Wed, 24 Feb 2021 07:56:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:24 GMT + - Wed, 24 Feb 2021 07:56:17 GMT ms-cv: - - AmpnCZx48EeezdIwB3zhpg.0 + - Dqxlw8aEVkisIekj6O792Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 17ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:08:25 GMT + - Wed, 24 Feb 2021 07:56:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:23.5482813+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:16.6500841+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:24 GMT + - Wed, 24 Feb 2021 07:56:17 GMT ms-cv: - - T5Q0LnhnQ0mohxkku8vP7A.0 + - iSVjN0sJ/UO2CLNkRZ2GsA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 99ms + - 94ms status: code: 200 message: OK @@ -85,30 +91,32 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 16c202bb-5dd3-4daf-b26b-b63f9aa04882 + repeatability-Request-Id: + - 7a842071-eed9-4d26-92fc-5c9de34eea06 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:d7OEHcAwW1jzyloZ0VWwSrhuUVhBbQmt_ywPGPE9RLc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:08:24Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-57cb-1655-373a0d0025c7"}}' + body: '{"chatThread": {"id": "19:Fs_Ey5JxNpKtq3IYU8J62ulWAnHNc-oK34dDC-83QT81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:56:17Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:08:25 GMT - ms-cv: lgrgiV1N4k6IBhGbDZcUlQ.0 + date: Wed, 24 Feb 2021 07:56:17 GMT + ms-cv: FeqovMJ6s0qoo2MTEh8P6w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1153ms + x-processing-time: 914ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -117,20 +125,20 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:08:25 GMT - ms-cv: kcGpQt5nZUKT0JqV1KNlog.0 + date: Wed, 24 Feb 2021 07:56:18 GMT + ms-cv: xjU6X3bi2k+I2m5qOSUcPQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 326ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: @@ -139,25 +147,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:08:26 GMT - ms-cv: eJfhBClL/0OOCTRfYO+rPQ.0 + date: Wed, 24 Feb 2021 07:56:18 GMT + ms-cv: LM0NSotGuECrJnI0VWLMtA.0 strict-transport-security: max-age=2592000 - x-processing-time: 259ms + x-processing-time: 249ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -165,13 +173,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:08:27 GMT + - Wed, 24 Feb 2021 07:56:21 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -179,13 +187,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:08:42 GMT + - Wed, 24 Feb 2021 07:56:35 GMT ms-cv: - - A5I5fzDO+0uC5mmCzYlPSg.0 + - jLBfIDOD5EiBcVvpMUgBzQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16432ms + - 16380ms 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 80c0f4e673ab..6fb55ef56ab2 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:08:43 GMT + - Wed, 24 Feb 2021 07:56:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:43 GMT + - Wed, 24 Feb 2021 07:56:35 GMT ms-cv: - - N2xJrSbqm0KEwZJcYEFSKw.0 + - Ryj/qA6IRk+7+DvtEFX8KQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:08:44 GMT + - Wed, 24 Feb 2021 07:56:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:42.3776314+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:35.21962+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:08:43 GMT + - Wed, 24 Feb 2021 07:56:35 GMT ms-cv: - - SauqYXgsqUGA1REpr0qJ/Q.0 + - NjfirAR+UUeYV7Y3AtrNRg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 106ms + - 85ms status: code: 200 message: OK @@ -85,30 +91,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 51e80716-553e-416f-ab88-ca2ae1385f19 + repeatability-Request-Id: + - 617741f6-feb9-4fee-85e3-61a4b53f46b2 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:EQXoydWlPLxGgkYqZp4tqWuhxAwLbEnnf2E_h58XqtQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:08:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-a155-9c58-373a0d002dd8"}}' + body: '{"chatThread": {"id": "19:38P49YjVERV0kD7rPvplJK7STiWwoLQMtq5M3JHJxP01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:56:36Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:08:45 GMT - ms-cv: OVJtV5UbHE2/2zFrj6wpQA.0 + date: Wed, 24 Feb 2021 07:56:37 GMT + ms-cv: qEMT/tG9R0amGOx0fWzNag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1616ms + x-processing-time: 844ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -117,22 +125,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-01T23:08:44Z", - "createdBy": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-24T07:56:36Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:08:45 GMT - ms-cv: WA+vAGOIwUWpGifBnrlzsA.0 + date: Wed, 24 Feb 2021 07:56:37 GMT + ms-cv: pltL232zP06axW/9xcIqNg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 257ms + x-processing-time: 254ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: @@ -141,25 +150,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:08:46 GMT - ms-cv: jBgMdj97NUePvbeakFOeJg.0 + date: Wed, 24 Feb 2021 07:56:37 GMT + ms-cv: m06/fB5SkUCSZQgWhaVbng.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 291ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -167,13 +176,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:08:47 GMT + - Wed, 24 Feb 2021 07:56:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -181,13 +190,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:09:01 GMT + - Wed, 24 Feb 2021 07:56:53 GMT ms-cv: - - T9QT5+k0kka/dj9zVpdDiA.0 + - rWu2rHBtsk+FYHQAoN5QnA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15968ms + - 15746ms 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 0d5423613171..4cfc83ca2a31 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:09:03 GMT + - Wed, 24 Feb 2021 07:56:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:02 GMT + - Wed, 24 Feb 2021 07:56:53 GMT ms-cv: - - YM8icpnay0K7KP/XVMKYDA.0 + - nHkzwBOlVUSMbRe0swHuQQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 70ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:09:03 GMT + - Wed, 24 Feb 2021 07:56:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:01.7993412+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:53.103136+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:02 GMT + - Wed, 24 Feb 2021 07:56:53 GMT ms-cv: - - AsBe+PS7pkSntXxIXRC3dw.0 + - +lTYRM1lhUm1J8enfqH55g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 102ms + - 91ms status: code: 200 message: OK @@ -85,30 +91,32 @@ interactions: Accept: - application/json Content-Length: - - '203' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 94e5888e-3f56-4368-ab96-048141497269 + repeatability-Request-Id: + - 316ab6fc-3ae8-4531-a68e-325f5e8c5034 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Sk-2ikAf1aYAs5MIdC2t_ErQdkR5_lMEEca7q57mY4s1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:09:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-ed34-1655-373a0d0025c8"}}' + body: '{"chatThread": {"id": "19:QaK-7ndJM8dEatpCbYUQtofmic1_V_ca2mO1zs3OC8c1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:56:54Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:09:03 GMT - ms-cv: EdWDWRBkg0mOtjPozclZOA.0 + date: Wed, 24 Feb 2021 07:56:54 GMT + ms-cv: GfhbPeAnmECHSpY15VEklA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1101ms + x-processing-time: 1115ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -117,25 +125,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:09:04 GMT - ms-cv: AtFPBYlxXUuxBgHl/KzW0w.0 + date: Wed, 24 Feb 2021 07:56:54 GMT + ms-cv: HyFkwvEJIUiNWJYkbXfuJA.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -143,13 +151,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:09:05 GMT + - Wed, 24 Feb 2021 07:56:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -157,13 +165,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:09:20 GMT + - Wed, 24 Feb 2021 07:57:11 GMT ms-cv: - - 4bLlDL2gOEy1RxPNZZQJFA.0 + - LX2GhRD4HUqLnDQt16E7Ng.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16561ms + - 16040ms 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 46a1988cb526..66474674f646 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:09:22 GMT + - Wed, 24 Feb 2021 07:57:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:20 GMT + - Wed, 24 Feb 2021 07:57:11 GMT ms-cv: - - 2ytELSchtUOns4PQf5VYpg.0 + - 3iBof6Fbi06eZYUJmR1q6g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,30 +56,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:09:22 GMT + - Wed, 24 Feb 2021 07:57:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:20.4937887+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:57:11.3079481+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:20 GMT + - Wed, 24 Feb 2021 07:57:11 GMT ms-cv: - - 2+VKkuNu7ECuTx736cL1mg.0 + - tbjg0acCSUivcCv7fbh+UQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 89ms status: code: 200 message: OK @@ -85,30 +91,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 6476c094-a85d-48b1-abbf-698215352a79 + repeatability-Request-Id: + - ffe0508e-3e19-44df-96b9-fb86e32730ca method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:BRQy_EyPZ9vT_-b0HaF9oeQBo3yzuo8CzWuAfziqakU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:09:22Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbd-3640-1655-373a0d0025cb"}}' + body: '{"chatThread": {"id": "19:oIH0rW8f_osIPc11vZHcEjrnJvM3IM-JPuB-XRU4pbc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T07:57:12Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:09:22 GMT - ms-cv: Ckm0ytRMXEmyDhevDxPr3Q.0 + date: Wed, 24 Feb 2021 07:57:13 GMT + ms-cv: 9bix2Xvac0qD/dkXRD3Hig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1296ms + x-processing-time: 892ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -117,21 +125,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:09:24 GMT - ms-cv: zE0P4+XPxkCOPdXe7HaI2w.0 + date: Wed, 24 Feb 2021 07:57:15 GMT + ms-cv: ANEnBgrmJ0mL9h6WpfWsGQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 327ms + x-processing-time: 319ms status: code: 200 message: OK - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -140,25 +148,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:09:24 GMT - ms-cv: IEQc0iCyH0O6clHor+VS2A.0 + date: Wed, 24 Feb 2021 07:57:16 GMT + ms-cv: NlMwUDEeU0CWgsrTWqv6Mg.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 325ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -166,13 +174,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:09:26 GMT + - Wed, 24 Feb 2021 07:57:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -180,13 +188,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:09:41 GMT + - Wed, 24 Feb 2021 07:57:32 GMT ms-cv: - - 5tsI71dnaUim68qiB9QwjQ.0 + - Ykkl7PP0FEWVHKqq7YcJPQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16117ms + - 16702ms 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 11cd2528dab9..ac9c6871f819 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:56 GMT ms-cv: - - 2c7RaiilYEKo/QBxlOa6/A.0 + - yFYy4VZqYk6Fv6/4vh9GwQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 32ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:09:43 GMT + - Wed, 24 Feb 2021 09:39:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:41.4212749+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:39:56.3481478+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:56 GMT ms-cv: - - 1havVHtCV0yHbpuESV588Q.0 + - WdRan3BEG0a4z05IBvCv2g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 99ms + - 95ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:09:43 GMT + - Wed, 24 Feb 2021 09:39:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-7361-1db7-3a3a0d007598"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:56 GMT ms-cv: - - /M2sVMEVAUWnORXdkKQOXw.0 + - SwSQFq1xnEKLWrROeAGfbw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 11ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:09:43 GMT + - Wed, 24 Feb 2021 09:39:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:41.6322038+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:39:56.5411925+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:56 GMT ms-cv: - - KTOc0xa2fkGcuoYlBMXEvA.0 + - t5t5dU107UKIqamzuqlLvg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 90ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 7e90ce67-21ed-42cc-bf70-003c2085c634 + repeatability-Request-Id: + - 026cf31d-d30b-4e6e-a61b-548971911c34 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:_WtuTI_rGzHlkgbImP27Kb8Uab-pnuHZgheUB-bv5lc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:09:43Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbd-87fb-b0b7-3a3a0d002fc8"}}' + body: '{"chatThread": {"id": "19:AVjdri2b-EwtDJVqeUepJQZejaMLsnpJkjNx9DHTjuU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:39:57Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:42 GMT + - Wed, 24 Feb 2021 09:39:58 GMT ms-cv: - - aW7nLTKynEm/mwhkshfxpA.0 + - tjpnhthwXkCNNQfF+Cdo/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 843ms + - 914ms status: code: 201 message: Created @@ -209,13 +223,13 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: @@ -224,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:09:44 GMT + - Wed, 24 Feb 2021 09:39:59 GMT ms-cv: - - b/eV8VUWJUWJQ7AbCfiYPQ.0 + - xCABMGD4SkioG5EB7Ku4vg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 947ms + - 852ms status: code: 201 message: Created @@ -240,7 +254,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -248,13 +262,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:09:45 GMT + - Wed, 24 Feb 2021 09:40:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -262,13 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:10:01 GMT + - Wed, 24 Feb 2021 09:40:16 GMT ms-cv: - - 9DcGZ6EiiUW1Zpm/1eVRsw.0 + - l0VhZn5yTUWejgock+mCxw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17040ms + - 16650ms status: code: 204 message: No Content @@ -276,7 +292,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -284,13 +300,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:10:02 GMT + - Wed, 24 Feb 2021 09:40:18 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -298,13 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:10:17 GMT + - Wed, 24 Feb 2021 09:40:32 GMT ms-cv: - - Lz9BP2/4P02Ec0l+GwE0Ow.0 + - Rya61DzLI0mk/sOoSiQZgw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16112ms + - 16108ms status: code: 204 message: No Content @@ -322,7 +340,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -330,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:10:18 GMT + - Wed, 24 Feb 2021 09:40:33 GMT ms-cv: - - rgDG1g19qU6WrLCSOHrZ/g.0 + - LfQsAIDlmU+U4Q25/HelgA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 363ms 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 2ff85ba3988c..77429f19445c 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:10:19 GMT + - Wed, 24 Feb 2021 09:40:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:18 GMT + - Wed, 24 Feb 2021 09:40:32 GMT ms-cv: - - vnzmRKwuUUu1xgU9C2ezJQ.0 + - 5oS4RsuSXUGyboRKXJGJMQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 132ms + - 38ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:10:20 GMT + - Wed, 24 Feb 2021 09:40:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:18.2618513+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:32.5284468+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:18 GMT + - Wed, 24 Feb 2021 09:40:32 GMT ms-cv: - - Fe4oLYvJCkm5Ee1bjG/Bwg.0 + - T9llP2/eWEGYLVaQH1g8dQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 98ms + - 93ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:10:20 GMT + - Wed, 24 Feb 2021 09:40:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-00be-b0b7-3a3a0d007453"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:18 GMT + - Wed, 24 Feb 2021 09:40:32 GMT ms-cv: - - /FONHcKKiE2oHcBiUWbxsg.0 + - tnPVNxSPvU+Jq1gU8kNOgw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 50ms + - 12ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:10:20 GMT + - Wed, 24 Feb 2021 09:40:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:18.5020576+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:32.7322868+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:18 GMT + - Wed, 24 Feb 2021 09:40:32 GMT ms-cv: - - AcDUKjvclE2JBfuYphiGaQ.0 + - 0jTSLX9npEaC9m2gdmx2kg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 101ms + - 90ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 14285cb5-b1f8-4bad-ad13-0891f94d4aea + repeatability-Request-Id: + - dc9fc12f-5a27-40d4-b3f5-2ae2508d5892 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:n3cu_jYMVs8O4UZUxccMnQLv0W0E7M-JSHy8a4EmPqU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:10:19Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbe-17e9-1db7-3a3a0d002bab"}}' + body: '{"chatThread": {"id": "19:QSOo6M05cwziJ6F07WwlELURrnc-4ZQuiM4q8mq8yho1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:40:34Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:20 GMT + - Wed, 24 Feb 2021 09:40:34 GMT ms-cv: - - uZB4rB4UW0GUpZR04jf0dg.0 + - to+oszUeLUiRe29QR7hupA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 859ms + - 995ms status: code: 201 message: Created @@ -209,13 +223,13 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: @@ -224,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:20 GMT + - Wed, 24 Feb 2021 09:40:35 GMT ms-cv: - - gc3qX2jTCk6ZMnH3AbdYHA.0 + - ArzYl+N1e06ZXW1eOgzyCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 401ms + - 949ms status: code: 201 message: Created @@ -240,7 +254,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -248,13 +262,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:10:21 GMT + - Wed, 24 Feb 2021 09:40:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -262,13 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:10:38 GMT + - Wed, 24 Feb 2021 09:40:52 GMT ms-cv: - - T3lD6L81kEO42dkUQwlsiQ.0 + - RhIk79JahUWEOwcQfSkptA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17069ms + - 16506ms status: code: 204 message: No Content @@ -276,7 +292,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -284,13 +300,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:10:39 GMT + - Wed, 24 Feb 2021 09:40:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -298,13 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:10:53 GMT + - Wed, 24 Feb 2021 09:41:08 GMT ms-cv: - - cEBOvK1OT0Wm2DQoII6g8g.0 + - fcI5i85ypUufZgpP93uf1w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15783ms + - 16544ms status: code: 204 message: No Content @@ -322,7 +340,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -330,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:10:53 GMT + - Wed, 24 Feb 2021 09:41:09 GMT ms-cv: - - t2qznUOa5km2Fzbh1vp9EA.0 + - 6CUDuJbdA0eot04bvls4Vw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 309ms + - 299ms 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 fe14a30d334c..1f79f3f2fce7 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:10:55 GMT + - Wed, 24 Feb 2021 09:41:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:54 GMT + - Wed, 24 Feb 2021 09:41:09 GMT ms-cv: - - Y5yKxdi/pEWTDIC1tIcd1A.0 + - qBvsFQbvoUqrbpN3QnHBkQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 58ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:10:55 GMT + - Wed, 24 Feb 2021 09:41:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:53.6424333+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:08.0575571+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:54 GMT + - Wed, 24 Feb 2021 09:41:09 GMT ms-cv: - - N96mc7wlvkOqhmk40buU9g.0 + - E+49+7IACkCoPJetYi5dhA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 94ms + - 97ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:10:55 GMT + - Wed, 24 Feb 2021 09:41:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8f65-1655-373a0d0070e2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:54 GMT + - Wed, 24 Feb 2021 09:41:09 GMT ms-cv: - - G0rrJaH1hEaiBCtU03c0cA.0 + - cmEJ0AMjeECZAdqiUlrH6A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:10:55 GMT + - Wed, 24 Feb 2021 09:41:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:53.869524+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:09.2863109+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:54 GMT + - Wed, 24 Feb 2021 09:41:10 GMT ms-cv: - - Ls8LRrez3kOUSj8ID/Bjjg.0 + - NrPjCuWXPE6pXHBFIEfTog.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 108ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - c2bdbe6c-1c1f-4643-82d2-9dc9ecdf9e70 + repeatability-Request-Id: + - 310c68a1-3d3d-48e2-87b0-e5937e25e177 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:CQMbb5qBbsYoqTG4zXgK40nGmD3XxvbtL8kE1IJc0oM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:10:55Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbe-a225-1655-373a0d0025d2"}}' + body: '{"chatThread": {"id": "19:rKjsMf-S9LMtckGy6_ZzAT3TEKvFWFqJB9oFrOcAJbk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:41:10Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:55 GMT + - Wed, 24 Feb 2021 09:41:10 GMT ms-cv: - - 1A3OuOir9Uix9v+YFAycdA.0 + - ykzeekTTq0aRbtICUpV9oQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 832ms + - 816ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:10:56 GMT + - Wed, 24 Feb 2021 09:41:10 GMT ms-cv: - - CDgQSn5I2ECFyxmOTxQs1w.0 + - iFZJMDTNCUutTD/mtRnp7A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 370ms + - 359ms status: code: 201 message: Created @@ -251,7 +265,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' @@ -259,13 +273,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:10:56 GMT + - Wed, 24 Feb 2021 09:41:11 GMT ms-cv: - - xbXo/aeDukOL02oLhahF0g.0 + - /ugsStWHu0q8LutS99F0Mw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 420ms + - 382ms status: code: 204 message: No Content @@ -273,7 +287,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -281,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:10:57 GMT + - Wed, 24 Feb 2021 09:41:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -295,13 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:11:12 GMT + - Wed, 24 Feb 2021 09:41:27 GMT ms-cv: - - CBsVjaIEnU2H6p8B4eDqWA.0 + - MHiAOxrDbES4G5sUGGif3A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16445ms + - 15994ms status: code: 204 message: No Content @@ -309,7 +325,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -317,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:11:14 GMT + - Wed, 24 Feb 2021 09:41:30 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -331,13 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:11:28 GMT + - Wed, 24 Feb 2021 09:41:43 GMT ms-cv: - - eoZnGb1h0USW14/XPmmdNA.0 + - kYrZoAwa/E2Dv70v35q8LQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15983ms + - 15946ms status: code: 204 message: No Content @@ -355,7 +373,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -363,13 +381,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:11:29 GMT + - Wed, 24 Feb 2021 09:41:44 GMT ms-cv: - - iq/zfgeleUa5YgulN7LQWg.0 + - fdN21UUkgEutSZAe4bWQYA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 331ms + - 289ms 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 eb451dc038aa..86e2c93bd903 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:11:30 GMT + - Wed, 24 Feb 2021 09:41:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:29 GMT + - Wed, 24 Feb 2021 09:41:44 GMT ms-cv: - - lZuK0EZcm0Wwy5U0VdV7Sw.0 + - i8xO6S8GyUSnEqLmuQg9xA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:11:31 GMT + - Wed, 24 Feb 2021 09:41:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:11:29.2886281+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:43.9840253+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:29 GMT + - Wed, 24 Feb 2021 09:41:44 GMT ms-cv: - - 6NkyAQX4uUew4rCbVgZFPw.0 + - iU1Z9PwuCkW+6exjWlrVgg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 94ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:11:31 GMT + - Wed, 24 Feb 2021 09:41:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-17d0-1db7-3a3a0d0075a7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:29 GMT + - Wed, 24 Feb 2021 09:41:44 GMT ms-cv: - - zhnlFrwTK0uTglkFRWdGTQ.0 + - vfmhsmV4JUypyUKo9jaooA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:11:31 GMT + - Wed, 24 Feb 2021 09:41:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:11:29.4909482+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:44.1800765+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:29 GMT + - Wed, 24 Feb 2021 09:41:44 GMT ms-cv: - - e+z0oVH/HUORsypwrRor1g.0 + - UrC8dnEG/kWkCA2cju1ZYg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 94ms + - 96ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 830a9723-1096-457b-9f39-d010d9f63ea3 + repeatability-Request-Id: + - 9deed7aa-5690-490c-8665-11073815fb1c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:ahNeeGqZrXgnPY919SOdVpRk0s5o8Ry7ko7igr6YGVk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:11:30Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbf-2d5f-1655-373a0d0025d6"}}' + body: '{"chatThread": {"id": "19:_ZH80JzTHM7XscIXI6IWnAnYCPF1GWTULlNRaLBYj5o1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:41:45Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:30 GMT + - Wed, 24 Feb 2021 09:41:45 GMT ms-cv: - - P43c9Lc7tEeOLnAY8G+3mg.0 + - 3fQ5lmqPfkS9j9M23CBXyA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 857ms + - 824ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:31 GMT + - Wed, 24 Feb 2021 09:41:46 GMT ms-cv: - - Np4p+Sh6Z0iUMg49MZ5h+w.0 + - T0z/nD9epEuXCuqoqm2aGg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 376ms + - 361ms status: code: 201 message: Created @@ -249,26 +263,27 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1612221091980", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614159706556", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-01T23:11:31Z", "senderId": "sanitized"}' + "2021-02-24T09:41:46Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:11:32 GMT + - Wed, 24 Feb 2021 09:41:46 GMT ms-cv: - - 7h18nFkBjUGxMSdJls5/yA.0 + - 9NHocfQeJkqY/VS3Hjp66w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 261ms + - 251ms status: code: 200 message: OK @@ -276,7 +291,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -284,13 +299,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:11:33 GMT + - Wed, 24 Feb 2021 09:41:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -298,13 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:11:49 GMT + - Wed, 24 Feb 2021 09:42:03 GMT ms-cv: - - BG9bH+KKnUKVYv606zg7lw.0 + - ZH9/XXGCwEySLPZODgzhaQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16675ms + - 16108ms status: code: 204 message: No Content @@ -312,7 +329,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -320,13 +337,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:11:50 GMT + - Wed, 24 Feb 2021 09:42:05 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -334,13 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:12:05 GMT + - Wed, 24 Feb 2021 09:42:18 GMT ms-cv: - - PtxnGmASLE29V1z+TTQKIQ.0 + - WwtrJVvf2Uuq8C1IQuvk0w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16754ms + - 16461ms status: code: 204 message: No Content @@ -358,7 +377,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -366,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:12:06 GMT + - Wed, 24 Feb 2021 09:42:19 GMT ms-cv: - - ujHEeveqfUSyStNeUhdt2g.0 + - uxp0ZFPFtUW9loLiRKBDqw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 291ms + - 349ms 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 15297c7be324..2fc78d718cf5 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:12:07 GMT + - Wed, 24 Feb 2021 09:42:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:06 GMT + - Wed, 24 Feb 2021 09:42:20 GMT ms-cv: - - Sj7h3LbAl0i9hyvAE6L6RA.0 + - //OHHyNfUUmY6n2w+uBhtw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 56ms + - 19ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:12:07 GMT + - Wed, 24 Feb 2021 09:42:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:05.9542699+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:19.5634988+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:06 GMT + - Wed, 24 Feb 2021 09:42:20 GMT ms-cv: - - K235FSgb1kidl5278N5ziw.0 + - UWgUpwwAeEKfT48u5hdl3A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 96ms + - 93ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:12:07 GMT + - Wed, 24 Feb 2021 09:42:23 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a2dd-1db7-3a3a0d0075ab"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:06 GMT + - Wed, 24 Feb 2021 09:42:20 GMT ms-cv: - - w2/fYfVxi0mPbtHuAWLq7A.0 + - v8MIc8joWkaaw0HaSXTmVg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:12:07 GMT + - Wed, 24 Feb 2021 09:42:23 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:06.153305+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:19.7721483+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:06 GMT + - Wed, 24 Feb 2021 09:42:20 GMT ms-cv: - - CLtEXxBHgkyvn1tnNFijoA.0 + - DCOoNoZIOUa9rAJEdxnV7w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 92ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 15be76a1-7003-4647-a1fc-cc05d462a289 + repeatability-Request-Id: + - 5ed46979-6e49-4f45-9d18-f22fd287b4f4 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QiwZiY15O_F3chKHC9waSQP57ESVljAUkKeEW-yoQx41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:12:07Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbf-bc7b-b0b7-3a3a0d002fd1"}}' + body: '{"chatThread": {"id": "19:zFCcvRvbCpFYPDAKOyrNeVPh_SEjETRMAlIqcCbju1A1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:42:21Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:07 GMT + - Wed, 24 Feb 2021 09:42:21 GMT ms-cv: - - jsCsMRBiPkiHEwSVHT+osA.0 + - c71YVL8R+0i+GNyiZevf0Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 828ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:08 GMT + - Wed, 24 Feb 2021 09:42:21 GMT ms-cv: - - d7I+ZkOHlkS5dLbp580JqQ.0 + - HLSbS2zTiUqGHCwMjzOjog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 837ms + - 366ms status: code: 201 message: Created @@ -249,7 +263,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -258,15 +272,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:09 GMT + - Wed, 24 Feb 2021 09:42:21 GMT ms-cv: - - c0gVf1/fTEya3/2+70xxkQ.0 + - e83kUyEjik6UTBGMorMYVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 289ms + - 269ms status: code: 200 message: OK @@ -282,7 +296,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -291,9 +305,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:09 GMT + - Wed, 24 Feb 2021 09:42:22 GMT ms-cv: - - vNK5whUAeUmf4w+/X8el2A.0 + - vc8Y6e3A102j/QOrxLC0gg.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -315,7 +329,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -324,9 +338,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:09 GMT + - Wed, 24 Feb 2021 09:42:22 GMT ms-cv: - - tF3JqAjl+kSWPNp3V0MwPQ.0 + - bBOthhVj20aeBQJNE+bI6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -348,7 +362,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -357,15 +371,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:10 GMT + - Wed, 24 Feb 2021 09:42:22 GMT ms-cv: - - p9xt/RFcfE+scTMdUQInhA.0 + - ZfAY1uwkSkiI8s3h5zleAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 359ms + - 364ms status: code: 200 message: OK @@ -373,7 +387,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -381,13 +395,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:12:11 GMT + - Wed, 24 Feb 2021 09:42:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -395,13 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:12:26 GMT + - Wed, 24 Feb 2021 09:42:39 GMT ms-cv: - - qlR3Xdmn5Uekc2Jr1WkZVg.0 + - JhVl3JWuxEi+NL+SIu5LxA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16116ms + - 16285ms status: code: 204 message: No Content @@ -409,7 +425,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -417,13 +433,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:12:27 GMT + - Wed, 24 Feb 2021 09:42:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -431,13 +447,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:12:42 GMT + - Wed, 24 Feb 2021 09:42:56 GMT ms-cv: - - vk/5JNIo7UmqX8dnj969ng.0 + - TJzwr4hnqkKqlXQW8GzHpw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15951ms + - 16466ms status: code: 204 message: No Content @@ -455,7 +473,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -463,13 +481,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:12:43 GMT + - Wed, 24 Feb 2021 09:42:56 GMT ms-cv: - - BiUEsvuFh0G9dHU3dkZv7w.0 + - 60V2hI4oCkW7ee4QWSB+Gw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 291ms + - 348ms 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 4c25a1c4bfc2..a0e75e0f3857 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:12:44 GMT + - Wed, 24 Feb 2021 09:42:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:42 GMT + - Wed, 24 Feb 2021 09:42:57 GMT ms-cv: - - kIbPaGMRjkmQka1S4ARAUw.0 + - TUXkmpR0t0aNRwTkHvAggg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:12:44 GMT + - Wed, 24 Feb 2021 09:42:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:42.7369269+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:56.6433991+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:42 GMT + - Wed, 24 Feb 2021 09:42:57 GMT ms-cv: - - i8Cy1HDlcECm+g75iVPGrg.0 + - 2Gt7GK1t5UOZSbvDX55CUA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 93ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:12:44 GMT + - Wed, 24 Feb 2021 09:43:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-33a6-1655-373a0d0070ed"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:43 GMT + - Wed, 24 Feb 2021 09:42:57 GMT ms-cv: - - 50WUMurQfUG8dsRwwthCFw.0 + - c3yJMa77K0KzZ8o9HwLe4Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,24 +142,26 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:12:44 GMT + - Wed, 24 Feb 2021 09:43:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:42.9313819+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:56.8445691+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:43 GMT + - Wed, 24 Feb 2021 09:42:57 GMT ms-cv: - - hDlObaBR30SimCm+AhSwTg.0 + - yi7qZJ3hmU+ajHgCUUhJwg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 7b0b36b3-3d23-4101-a02c-6a053a88b3d7 + repeatability-Request-Id: + - a4778af3-9cd1-4449-87f7-692c6ba174c6 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:PvBn6mixYhQtG3hwCn7KwxcVy1X5r-28IHnpnh-nbdI1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:12:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc0-4c3c-1655-373a0d0025d9"}}' + body: '{"chatThread": {"id": "19:qCBKex-mF9Zsw4J6qLD6SJEXfkFKLNel3E_VrzcOPxg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:42:58Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:44 GMT + - Wed, 24 Feb 2021 09:42:58 GMT ms-cv: - - SMzZYWyKtkOfdw2y8m9RXg.0 + - FWYRDQMEUESH5z2j8V035Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 834ms + - 839ms status: code: 201 message: Created @@ -209,13 +223,13 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: @@ -224,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:45 GMT + - Wed, 24 Feb 2021 09:42:58 GMT ms-cv: - - gUsyB6vyQkCaNrJIUn0rtQ.0 + - N++1QPPVDUqDNfDc3G+bjg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 943ms + - 454ms status: code: 201 message: Created @@ -248,7 +262,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -257,15 +271,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:12:45 GMT + - Wed, 24 Feb 2021 09:42:59 GMT ms-cv: - - t55a2NIJUkmUufTeg5kiDw.0 + - XHmchry+NEOa5O8Pwa2DGA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 269ms + - 266ms status: code: 200 message: OK @@ -273,7 +287,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -281,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:12:47 GMT + - Wed, 24 Feb 2021 09:43:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -295,13 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:13:03 GMT + - Wed, 24 Feb 2021 09:43:16 GMT ms-cv: - - APzhq35/xEe6tGdAjTFtzw.0 + - M2Po/WxX60qLbtQ/zUTSrg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16705ms + - 16479ms status: code: 204 message: No Content @@ -309,7 +325,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -317,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:13:04 GMT + - Wed, 24 Feb 2021 09:43:18 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -331,13 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:13:19 GMT + - Wed, 24 Feb 2021 09:43:31 GMT ms-cv: - - 0y4kz4W45kqOIc0iDXED/w.0 + - OJGlKr/q9kmPVkJ+UVeJxw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16310ms + - 15843ms status: code: 204 message: No Content @@ -355,7 +373,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -363,9 +381,9 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:13:19 GMT + - Wed, 24 Feb 2021 09:43:32 GMT ms-cv: - - c4S5WfoS6U2LnxE7igMe/w.0 + - Yag2yTPrJUeYO8GV2UrlgA.0 strict-transport-security: - max-age=2592000 x-processing-time: 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 3fb3bb1c4a20..233e818b7fe5 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:13:20 GMT + - Wed, 24 Feb 2021 09:43:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:20 GMT + - Wed, 24 Feb 2021 09:43:32 GMT ms-cv: - - n0qQns0Hsk+5aIGutsAdxg.0 + - Bs1ZdEftjUWurHFxq3cpvA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 32ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:13:21 GMT + - Wed, 24 Feb 2021 09:43:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:13:19.501485+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:32.2515944+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:20 GMT + - Wed, 24 Feb 2021 09:43:32 GMT ms-cv: - - jZvlWXnZR0iUs4jC/0/vnQ.0 + - x/PVD3WLy027h9fp+ZSdPQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 89ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:13:21 GMT + - Wed, 24 Feb 2021 09:43:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-beba-9c58-373a0d0070ea"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:20 GMT + - Wed, 24 Feb 2021 09:43:32 GMT ms-cv: - - 6XqwUaeyhkS76K9l5V3Ylg.0 + - pQO88SEj9kiKQtRgr830GA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 49ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:13:21 GMT + - Wed, 24 Feb 2021 09:43:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:13:19.7825279+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:32.4375975+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:20 GMT + - Wed, 24 Feb 2021 09:43:33 GMT ms-cv: - - Igp/5UmZjEi/byP4MnXjZA.0 + - FExspzXssUOe88DVVArJKA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 110ms + - 89ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '371' + - '475' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 25ee9edf-3c7c-45ec-bf01-65eaed8b9fbb + repeatability-Request-Id: + - 97d0b8d4-a261-486e-8ca8-75ab0a7d9d0f method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:OPtWDy6R6cNXXozGaPaBAVysKRxa6er8SZ2o6lOTEIw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:13:21Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc0-db3c-b0b7-3a3a0d002fd5"}}' + body: '{"chatThread": {"id": "19:1Stv3fOVJ1cGTkepCbKQzJQKSx0y2TjFv2Kdeaiyh5s1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:43:33Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:21 GMT + - Wed, 24 Feb 2021 09:43:34 GMT ms-cv: - - 1OkOyIraVkmYNurO83SfGw.0 + - kQt0oIdAaEmqVqEgvIeZPA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 850ms + - 899ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:21 GMT + - Wed, 24 Feb 2021 09:43:34 GMT ms-cv: - - bYxpzFv6N0KkUdUjZdVlCg.0 + - /Zr5JHmk1USfDaNgSqWr9w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 373ms + - 392ms status: code: 201 message: Created @@ -253,7 +267,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' @@ -263,13 +277,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Feb 2021 23:13:22 GMT + - Wed, 24 Feb 2021 09:43:36 GMT ms-cv: - - T6MjZ2ekxEinUStlOzfaXg.0 + - cv5+6QVRcEu5HM1eiBeryw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 898ms + - 956ms status: code: 200 message: OK @@ -285,7 +299,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -294,15 +308,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:23 GMT + - Wed, 24 Feb 2021 09:43:35 GMT ms-cv: - - opHZex5MWESNjsY80GUijg.0 + - grPOlASp9kSGcWiA7v5Bjg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 260ms + - 268ms status: code: 200 message: OK @@ -323,7 +337,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -332,15 +346,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:23 GMT + - Wed, 24 Feb 2021 09:43:36 GMT ms-cv: - - yqZuC3B260GKgRFW7OaWfA.0 + - 3bb3TD3DB0mEs6I7TrTXew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 384ms + - 385ms status: code: 201 message: Created @@ -360,7 +374,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' @@ -370,13 +384,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Feb 2021 23:13:23 GMT + - Wed, 24 Feb 2021 09:43:37 GMT ms-cv: - - gXjY7VV/8kmcPf0nJ8mVWg.0 + - Z0KQDeFXx0CqcrlArHryxw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 498ms + - 458ms status: code: 200 message: OK @@ -392,7 +406,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -401,15 +415,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:25 GMT + - Wed, 24 Feb 2021 09:43:37 GMT ms-cv: - - 9K0uoDIxJE2fdvj7B03SIw.0 + - CKNLGrzy3k65CQwEVtV0cg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 694ms + - 247ms status: code: 200 message: OK @@ -430,7 +444,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -439,15 +453,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:25 GMT + - Wed, 24 Feb 2021 09:43:38 GMT ms-cv: - - LwIYTspikEiHp9s/opWxYg.0 + - 8DPx0q/ZoUeuqv7fphtqFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 368ms + - 397ms status: code: 201 message: Created @@ -467,7 +481,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' @@ -477,13 +491,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Feb 2021 23:13:25 GMT + - Wed, 24 Feb 2021 09:43:38 GMT ms-cv: - - 1Zh447p3CEmKerITJM7JbA.0 + - 0MMNyqJS0E2S8DHLW2Tvag.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 474ms + - 456ms status: code: 200 message: OK @@ -499,7 +513,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -508,9 +522,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:26 GMT + - Wed, 24 Feb 2021 09:43:38 GMT ms-cv: - - Cwy2WeHt4EK+saImRu94aA.0 + - hJec8DhczUSqyLjPOfYHng.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -532,7 +546,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: @@ -541,15 +555,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:13:26 GMT + - Wed, 24 Feb 2021 09:43:39 GMT ms-cv: - - i4qQAKxMvkGrCKeSzyI0Pw.0 + - KSUTPvYEIkGVQxLCK8mvxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 261ms + - 249ms status: code: 200 message: OK @@ -557,7 +571,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -565,13 +579,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:13:28 GMT + - Wed, 24 Feb 2021 09:43:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -579,13 +593,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:13:43 GMT + - Wed, 24 Feb 2021 09:43:54 GMT ms-cv: - - seA/Ib8X5EOcHNn4mUD/xw.0 + - QQ31R7DR5kyl65MBWeldkw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16722ms + - 15800ms status: code: 204 message: No Content @@ -593,7 +609,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -601,13 +617,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:13:45 GMT + - Wed, 24 Feb 2021 09:43:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -615,13 +631,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:13:59 GMT + - Wed, 24 Feb 2021 09:44:11 GMT ms-cv: - - eg5Zna69MUelcOMGYB9PoA.0 + - pimdFBKY902ypjluLmw0BA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15933ms + - 15985ms status: code: 204 message: No Content @@ -639,7 +657,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -647,13 +665,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:14:00 GMT + - Wed, 24 Feb 2021 09:44:11 GMT ms-cv: - - c3gjQEc5w0q/9/MG90WUxQ.0 + - qgwf3Bqg9k+qsoH8AS2Zvw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 349ms 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 770e66674e0b..a1fcf53d43b7 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:14:01 GMT + - Wed, 24 Feb 2021 09:44:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:00 GMT + - Wed, 24 Feb 2021 09:44:11 GMT ms-cv: - - EZm4ZV97KEm0bmO5QoCf5A.0 + - RGGkY8TXf02ymr0HDqShuA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 38ms + - 16ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:14:01 GMT + - Wed, 24 Feb 2021 09:44:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:00.2599102+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:11.204326+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:00 GMT + - Wed, 24 Feb 2021 09:44:11 GMT ms-cv: - - U+n9c5UM90OQyXf+d0GRyg.0 + - RKgqdsimJE+01NzqAJvUuQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 115ms + - 98ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:14:02 GMT + - Wed, 24 Feb 2021 09:44:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-56e3-1655-373a0d0070f1"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:00 GMT + - Wed, 24 Feb 2021 09:44:12 GMT ms-cv: - - iwwv12Y4QkqWRRqH0P3zQA.0 + - sz2n/j/l1k2pEkI4dBMWOA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:14:02 GMT + - Wed, 24 Feb 2021 09:44:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:00.4581206+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:11.3913918+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:00 GMT + - Wed, 24 Feb 2021 09:44:12 GMT ms-cv: - - /bW3cAQSkU+YKFSZdCQC4A.0 + - jDCHJ6yngUi+3Rm9doRWhQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - e99db6c4-bef1-481d-8e92-528e8a290d0b + repeatability-Request-Id: + - dfcd653d-1023-4fdd-a574-0571599e6db2 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:4E8s1hIQeP0NL5a4RI5MHuFwoSUNhnLIm84cb-6qJtk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:14:01Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc1-7abd-b0b7-3a3a0d002fd9"}}' + body: '{"chatThread": {"id": "19:dYeLEaq0SIu99-K9bJjdl2vQullpKBED3FVxw199jO41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:44:12Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:02 GMT + - Wed, 24 Feb 2021 09:44:12 GMT ms-cv: - - 7RNEOUTHk0GR//bh61Mcwg.0 + - APFDWDngcUSJ027RwURA6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 849ms + - 917ms status: code: 201 message: Created @@ -209,13 +223,13 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: @@ -224,20 +238,20 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:02 GMT + - Wed, 24 Feb 2021 09:44:14 GMT ms-cv: - - WTe/ZJvW/UW+XLlyxEnIRQ.0 + - dOBJce/fYUe6MdgNs+gIZw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 405ms + - 446ms status: code: 201 message: Created - request: - body: null + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-56e3-1655-373a0d0070f1"}}' headers: Accept: - application/json @@ -246,11 +260,13 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '112' + Content-Type: + - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc1-7be5-b0b7-3a3a0d002fda?api-version=2020-11-01-preview3 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 response: body: string: '' @@ -258,13 +274,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:14:03 GMT + - Wed, 24 Feb 2021 09:44:14 GMT ms-cv: - - jkB6wPDKmUeaim9wAvflbg.0 + - 2lESLBIEekmkD5mw8TC4oA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 452ms + - 489ms status: code: 204 message: No Content @@ -272,7 +288,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -280,13 +296,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:14:04 GMT + - Wed, 24 Feb 2021 09:44:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -294,13 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:14:19 GMT + - Wed, 24 Feb 2021 09:44:29 GMT ms-cv: - - oT4lJ//RSUahLSYWY6yTWw.0 + - 5udG/U48sUWLBhFdjxwmJQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16000ms + - 15746ms status: code: 204 message: No Content @@ -308,7 +326,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -316,13 +334,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:14:20 GMT + - Wed, 24 Feb 2021 09:44:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -330,13 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:14:35 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - qg30GEqn+EWOdc+u9Nf7Ow.0 + - VZawrKSxG0u8zCNPIsfikg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16565ms + - 17031ms status: code: 204 message: No Content @@ -354,7 +374,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -362,13 +382,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:14:36 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - lDW3jg3eiEqYxIvtlsTOxg.0 + - TFwhDOHOpE6Rogykk6qMFg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 329ms + - 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 669aba8894b2..30c4ace35c06 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:14:37 GMT + - Wed, 24 Feb 2021 09:44:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:36 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - PUk9KXg0hkO+CkCLwWzbdg.0 + - 9+R+NifC5E2iwqHQ9gO9iw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 87ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:14:38 GMT + - Wed, 24 Feb 2021 09:44:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:36.2310025+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:47.4479834+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:36 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - i7Qr/LEEekyNydS6xC4pZg.0 + - sRrJX/bg10CiO8gME2xAgA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 130ms + - 95ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:14:38 GMT + - Wed, 24 Feb 2021 09:44:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e474-1db7-3a3a0d0075b5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:36 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - Ww2NQm7lVESaKwXycU5e5w.0 + - VptEY7ku/U2+monk9zPntA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 12ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:14:38 GMT + - Wed, 24 Feb 2021 09:44:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:36.4924069+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:47.6373027+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:36 GMT + - Wed, 24 Feb 2021 09:44:47 GMT ms-cv: - - rNpbJx8+3U6OUrimTrsi2A.0 + - Ghf1h03QDkadLJaI1IUFkg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 143ms + - 92ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 40db38f0-3b14-4697-9513-4ab0d5de5bb0 + repeatability-Request-Id: + - 97b61c23-e27f-4755-90b0-76ed00320f46 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:2L9d8Kv3-nhipybg6fHvSKVtRcXPcmdDbTF4fi7fQP01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:14:37Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc2-077b-1db7-3a3a0d002bb5"}}' + body: '{"chatThread": {"id": "19:pMQvMgNqArCC8bC89T5b21h4h9LyD00TXJKU1Z4ApTw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:44:48Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:37 GMT + - Wed, 24 Feb 2021 09:44:49 GMT ms-cv: - - uWe3kVXQ6UOGBYAnbGxrqQ.0 + - BT6+WcnZUkGjlXhhd7maVw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 834ms + - 907ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:14:39 GMT + - Wed, 24 Feb 2021 09:44:49 GMT ms-cv: - - IJrEaNKVAkOUChnJIeg1jg.0 + - 6/CWqohWWU+HX1Ex/Acp+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 370ms + - 390ms status: code: 201 message: Created @@ -241,7 +255,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -249,13 +263,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:14:40 GMT + - Wed, 24 Feb 2021 09:44:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -263,13 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:14:55 GMT + - Wed, 24 Feb 2021 09:45:06 GMT ms-cv: - - YfMJXVUq90mBonU+4Kqmmg.0 + - IRgrt6IV0k+sXYtZM0C0/w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16170ms + - 16269ms status: code: 204 message: No Content @@ -277,7 +293,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -285,13 +301,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:14:56 GMT + - Wed, 24 Feb 2021 09:45:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -299,13 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:15:10 GMT + - Wed, 24 Feb 2021 09:45:22 GMT ms-cv: - - QygpUV62dU2p3dQH1i9EFw.0 + - TpLmmTzKpk2+tV8SSVPcHw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15771ms + - 15823ms status: code: 204 message: No Content @@ -323,7 +341,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -331,13 +349,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:15:11 GMT + - Wed, 24 Feb 2021 09:45:22 GMT ms-cv: - - SLGQK/S7UUiOyxLecoVsvg.0 + - 97xRRz8LR0CG5ryFxQ20bQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 296ms + - 306ms 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 5e4eb0b092dc..f708429a7768 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:15:12 GMT + - Wed, 24 Feb 2021 09:45:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:11 GMT + - Wed, 24 Feb 2021 09:45:23 GMT ms-cv: - - tSA9Uj5DZUW3a9cE/9Mf/Q.0 + - JMr5cP2q6ESRs70rdETSsg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,24 +56,26 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:15:12 GMT + - Wed, 24 Feb 2021 09:45:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:11.1099766+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:22.3058923+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:11 GMT + - Wed, 24 Feb 2021 09:45:23 GMT ms-cv: - - VgBXYbYf9UurxmT5dzATFg.0 + - gZmQXShFlkSdHa5LxuTI+A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: @@ -80,7 +86,7 @@ interactions: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:15:13 GMT + - Wed, 24 Feb 2021 09:45:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6ca1-9c58-373a0d0070f6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:11 GMT + - Wed, 24 Feb 2021 09:45:23 GMT ms-cv: - - DbJCn67mX0aWj8C6ortl0A.0 + - XmDouzkOG0CzH82CDko3KQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:15:13 GMT + - Wed, 24 Feb 2021 09:45:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:11.320505+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:22.4948538+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:11 GMT + - Wed, 24 Feb 2021 09:45:23 GMT ms-cv: - - zjn4ayBwyke1loffvhkcKA.0 + - JslQYXRAb0qr7ZGd4cR0tQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 91ms status: code: 200 message: OK @@ -169,27 +181,29 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '256' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 474491e3-6187-4de9-9d8a-28f6d540d871 + repeatability-Request-Id: + - 75f90ec8-65b1-41f6-b586-09467759a350 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:t_E0OeuCTWPldGmzOPeMP1S_mSN6F6VTus185SOfXhM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:15:12Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc2-8fe4-1db7-3a3a0d002bb7"}}' + body: '{"chatThread": {"id": "19:NGkpqUZeRdK5AXx0F1BePzMdg-z1CNTGOGLRzbIHYM81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:45:23Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:13 GMT + - Wed, 24 Feb 2021 09:45:23 GMT ms-cv: - - r9Rq5GDG70a4hFfGeGY4Pg.0 + - AiXYXhcYVE+jfMMIZOAYLQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:13 GMT + - Wed, 24 Feb 2021 09:45:24 GMT ms-cv: - - PWZQZDAcBkCuAJZAkO8FGQ.0 + - DLaI2SzT2kCJDbJ8Lqj+sA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 371ms + - 362ms status: code: 201 message: Created @@ -253,7 +267,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' @@ -263,13 +277,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Feb 2021 23:15:14 GMT + - Wed, 24 Feb 2021 09:45:25 GMT ms-cv: - - Dmex4TI3t0KRUU5gjpnk0A.0 + - CXKLnCL7sU23PIa5FUL4Tg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 474ms + - 450ms status: code: 200 message: OK @@ -277,7 +291,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -285,13 +299,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:15:15 GMT + - Wed, 24 Feb 2021 09:45:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -299,13 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:15:30 GMT + - Wed, 24 Feb 2021 09:45:40 GMT ms-cv: - - SmoIgTczqk2E5claXN641g.0 + - tN2lgXA5G02jWWbUVOExRw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16560ms + - 15929ms status: code: 204 message: No Content @@ -313,7 +329,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -321,13 +337,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:15:32 GMT + - Wed, 24 Feb 2021 09:45:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -335,13 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:15:47 GMT + - Wed, 24 Feb 2021 09:45:57 GMT ms-cv: - - Y6csz9/irk6fnMs7V1j1kQ.0 + - MDlqHVEOJ0iG/y0VoYhwgQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16651ms + - 16436ms status: code: 204 message: No Content @@ -359,7 +377,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -367,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:15:47 GMT + - Wed, 24 Feb 2021 09:45:58 GMT ms-cv: - - vCDX2DXOBkalGHB9+mXItQ.0 + - tbEi70/T00yq8QlQARRpwQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 325ms 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 4f03008f9db2..5e95da4b5a17 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:47 GMT + - Wed, 24 Feb 2021 09:45:58 GMT ms-cv: - - XwHJSNWA7UqNR7ibkb9bbA.0 + - Oreg1rddMUaRgacrEa0AbA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 31ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:47.7123057+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:58.0834003+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:47 GMT + - Wed, 24 Feb 2021 09:45:58 GMT ms-cv: - - REHPP3i3bUSlTyS+tP9MWQ.0 + - hR2Cj1Y4+keX0hZtTh+ZDA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 93ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f861-1db7-3a3a0d0075c2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:47 GMT + - Wed, 24 Feb 2021 09:45:58 GMT ms-cv: - - 1wfO7BOee0etC6vNcd4TbQ.0 + - DBGWSzWnMEGeRgxCbXNItA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:47.9042925+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:58.2714691+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:48 GMT + - Wed, 24 Feb 2021 09:45:58 GMT ms-cv: - - VAMXZsDHB0KnHjUxlKLzsg.0 + - 9ZRdzdoik0aiWK/++lk/aQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 84ms + - 92ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 332f1d84-d70a-41c9-896f-06ce225c9800 + repeatability-Request-Id: + - 113c76f2-7fce-4f2b-a8d8-1820ba146274 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Fx3tz3AWBkwB0rNJLdwYEp93BWn9LDnjENQr-r6Q1tc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:15:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc3-1ede-1db7-3a3a0d002bbb"}}' + body: '{"chatThread": {"id": "19:N5O_-TLlNciytSDVF-adnnHNDEn4QikJwB1TvTI3tBg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:45:59Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:45:59 GMT ms-cv: - - 2ibp7R9uik+hT85AQshldw.0 + - +H39sB7TN06eTO5ozOrYAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 835ms + - 836ms status: code: 201 message: Created @@ -213,7 +227,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' @@ -223,13 +237,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Feb 2021 23:15:49 GMT + - Wed, 24 Feb 2021 09:46:00 GMT ms-cv: - - 0206Ij0Tk02wqj686Ri0bw.0 + - iQJE+R1D1EifSi+gIHcuOw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 380ms + - 348ms status: code: 200 message: OK @@ -237,7 +251,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -245,13 +259,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:15:51 GMT + - Wed, 24 Feb 2021 09:46:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -259,13 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:16:06 GMT + - Wed, 24 Feb 2021 09:46:17 GMT ms-cv: - - N6ZajPTp80iFBwopP6HvJw.0 + - co7gPnxJA06nrStD1Kj0zA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16195ms + - 16594ms status: code: 204 message: No Content @@ -273,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -281,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:16:07 GMT + - Wed, 24 Feb 2021 09:46:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -295,13 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:16:22 GMT + - Wed, 24 Feb 2021 09:46:32 GMT ms-cv: - - NgU0httyhECRLttIx+ALRg.0 + - aBXefF4Ib0Oakt+4f3jUJw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16433ms + - 16036ms status: code: 204 message: No Content @@ -319,7 +337,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -327,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:16:22 GMT + - Wed, 24 Feb 2021 09:46:33 GMT ms-cv: - - r/yFRd7inkO5ZrdEaxelHQ.0 + - I7ZuDKmuOUaMY3dR6UwN6w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 324ms 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 dec30f9dcf65..e1ac1ce011ab 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:16:24 GMT + - Wed, 24 Feb 2021 09:46:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:23 GMT + - Wed, 24 Feb 2021 09:46:33 GMT ms-cv: - - 2MymiP7VJ0OXSvRRMY2dyw.0 + - +AjabBx8FkW9Q7eZT1ZUow.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 68ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:16:24 GMT + - Wed, 24 Feb 2021 09:46:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:16:23.1422355+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:33.4291026+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:23 GMT + - Wed, 24 Feb 2021 09:46:33 GMT ms-cv: - - 465Iq26z10GzxzZc6yHNwA.0 + - qicnSeXIUEuzI8KU1X6EgQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 104ms + - 99ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:16:25 GMT + - Wed, 24 Feb 2021 09:46:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-8273-1655-373a0d0070f9"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:23 GMT + - Wed, 24 Feb 2021 09:46:33 GMT ms-cv: - - JRpcxWLlK0yMKlUHiEFbMw.0 + - yFPxWiGdY0W6IQ7VZv2vsA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:16:25 GMT + - Wed, 24 Feb 2021 09:46:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:16:23.3432968+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:33.6231281+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:23 GMT + - Wed, 24 Feb 2021 09:46:33 GMT ms-cv: - - xhPcqG0KFUyk3F3rjxjZ0w.0 + - Pt0f3icjiE+MO9I73fzsSg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 92ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 7fc2e51d-55b0-40b2-a245-3c2dc6ceedc5 + repeatability-Request-Id: + - f053d37a-eb99-48f7-aca4-2beb842f4c86 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:3x3XmwNlVkuiiXHmbSCmYuQ8JxeiRazrEShqq-oR3To1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:16:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc3-a929-9c58-373a0d002de1"}}' + body: '{"chatThread": {"id": "19:0IJlOsgFVaEvLMWoFwmZR6pesuYm-xXDBsU37zaoSAc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:46:35Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:26 GMT + - Wed, 24 Feb 2021 09:46:35 GMT ms-cv: - - yu7GP5ErZ0yDgI2tJvJ7aA.0 + - /BW2dzhAnUOF3rjpaO3JWQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 848ms + - 889ms status: code: 201 message: Created @@ -216,7 +230,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: @@ -225,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:16:27 GMT + - Wed, 24 Feb 2021 09:46:36 GMT ms-cv: - - OdIc18bb8kigrXOy5U4LKg.0 + - PRvNpgDotUiS8M8NqvKjLw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 666ms + - 362ms status: code: 201 message: Created @@ -253,7 +267,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' @@ -261,13 +275,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:16:27 GMT + - Wed, 24 Feb 2021 09:46:36 GMT ms-cv: - - LPkc4PDmrkaytAz03cTGBg.0 + - AwDr+i9V8kGVPwBpmt3ylQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 755ms + - 643ms status: code: 204 message: No Content @@ -275,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -283,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:16:28 GMT + - Wed, 24 Feb 2021 09:46:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -297,13 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:16:43 GMT + - Wed, 24 Feb 2021 09:46:53 GMT ms-cv: - - tasO5sWXeEK9zfka3B0tyg.0 + - lLMEFD9Iw0elCgQs9rH8dQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16485ms + - 16589ms status: code: 204 message: No Content @@ -311,7 +327,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -319,13 +335,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:16:45 GMT + - Wed, 24 Feb 2021 09:46:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -333,13 +349,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:17:00 GMT + - Wed, 24 Feb 2021 09:47:09 GMT ms-cv: - - QV0+4+sWg0O2D5wOmS9L2g.0 + - m61ZsW//0kqYe3yoaS5WBw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16183ms + - 16558ms status: code: 204 message: No Content @@ -357,7 +375,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -365,13 +383,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:17:00 GMT + - Wed, 24 Feb 2021 09:47:09 GMT ms-cv: - - tBMt51eRjkW0VBp/PLpN/A.0 + - VRi0+Er/SUi3Ik/zz1Ya4g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 322ms 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 ef81731f6a30..dfec569e19f0 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:17:02 GMT + - Wed, 24 Feb 2021 09:47:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:01 GMT + - Wed, 24 Feb 2021 09:47:10 GMT ms-cv: - - 4k4KwAmJEEWEHj0zcLzq6g.0 + - 932Jmus/BE6z00XiY2wyTA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 60ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:17:02 GMT + - Wed, 24 Feb 2021 09:47:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:00.8453508+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:09.9071852+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:01 GMT + - Wed, 24 Feb 2021 09:47:10 GMT ms-cv: - - rObRoGlwDUeiFVukiGVOqw.0 + - Jp9Aj6wK10KIzTplIp7WZw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 103ms + - 91ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:17:02 GMT + - Wed, 24 Feb 2021 09:47:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-10f2-dbb7-3a3a0d0074e0"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:01 GMT + - Wed, 24 Feb 2021 09:47:10 GMT ms-cv: - - pFkPISUMA0q49e0tmLJH7w.0 + - ARmT86q/BkSHMhRxjjSq5A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:17:02 GMT + - Wed, 24 Feb 2021 09:47:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:00.0712662+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:10.098275+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:01 GMT + - Wed, 24 Feb 2021 09:47:10 GMT ms-cv: - - sP2KdfioK0mo8hlWKGtfCA.0 + - RJ6RImw2LEKbrOXWeqpkwg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 93ms status: code: 200 message: OK @@ -169,33 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 21dee0d5-0f45-4e22-8e21-ff7a831076ee + repeatability-Request-Id: + - b8be8e46-eb71-4ae5-8276-466b7506eeee method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:MYM8rFp9eERFM1j8IRDD7gCnk7B0fmgKBh0GgAxYouU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:17:02Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc4-3c30-9c58-373a0d002de3"}}' + body: '{"chatThread": {"id": "19:sEQwKlZI1I1QY9YVGAg_7jE6_b_OnXzFYpE9xFEsFQo1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:47:11Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:02 GMT + - Wed, 24 Feb 2021 09:47:11 GMT ms-cv: - - mSXw7JSS2kqOtiKUIwWUIA.0 + - mA+AxVCsLkG0SD62EeH0cw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 875ms + - 879ms status: code: 201 message: Created @@ -215,7 +229,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -223,13 +237,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:17:03 GMT + - Wed, 24 Feb 2021 09:47:12 GMT ms-cv: - - 15a+lb6U6EiowJbUL4xxpg.0 + - nbdC8uV6CEKXD0WJ1v//VA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 387ms + - 390ms status: code: 204 message: No Content @@ -237,7 +251,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -245,13 +259,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:17:04 GMT + - Wed, 24 Feb 2021 09:47:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -259,13 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:17:20 GMT + - Wed, 24 Feb 2021 09:47:28 GMT ms-cv: - - 7G+YH3zbsEiZiQC6pR+q9w.0 + - I5uJguLXDkKXeoTyZ6M6dg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17151ms + - 16207ms status: code: 204 message: No Content @@ -273,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -281,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:17:21 GMT + - Wed, 24 Feb 2021 09:47:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -295,13 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:17:36 GMT + - Wed, 24 Feb 2021 09:47:45 GMT ms-cv: - - xguohH3MNUSNItwjGBWWXA.0 + - SjLFl38DEky35eo8drVeXw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16713ms + - 16228ms status: code: 204 message: No Content @@ -319,7 +337,7 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' @@ -327,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 01 Feb 2021 23:17:37 GMT + - Wed, 24 Feb 2021 09:47:45 GMT ms-cv: - - y7AhM8HUi0md4+LXkmghqw.0 + - l/kz8WYtuUaUklGyip2Sfw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 338ms + - 328ms 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 b2bd1b1654c0..d9f1f514efe4 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:17:38 GMT + - Wed, 24 Feb 2021 09:40:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:37 GMT + - Wed, 24 Feb 2021 09:40:05 GMT ms-cv: - - wiJNOcMEe0y2M7VRao265A.0 + - AtVvqM2GNkaBy649ndomXw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:17:39 GMT + - Wed, 24 Feb 2021 09:40:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:37.4364651+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:04.6631196+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:37 GMT + - Wed, 24 Feb 2021 09:40:05 GMT ms-cv: - - 7jJJuoxd7ESniv5K0rURVw.0 + - OVryUHlTBECYW/8rnZn8sQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 89ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:17:39 GMT + - Wed, 24 Feb 2021 09:40:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-93d8-1db7-3a3a0d00759e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:37 GMT + - Wed, 24 Feb 2021 09:40:05 GMT ms-cv: - - 0aYZgAfC30agjwajckap0Q.0 + - lbKtWPyYZUm07HRlDZJYvA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:17:39 GMT + - Wed, 24 Feb 2021 09:40:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:37.6483825+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:04.8703094+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:17:38 GMT + - Wed, 24 Feb 2021 09:40:05 GMT ms-cv: - - WZi9Z5P+mkmIXTZm+QF2Qg.0 + - dWO8+INCOUaHNSTMD6mECQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 89ms status: code: 200 message: OK @@ -165,57 +177,59 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 8c32fba3-7d4e-4fc7-b934-9cc05e49c3ed + repeatability-Request-Id: + - 42154290-820d-4782-8322-3abb00820f23 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:aJmsyuJMYvoVvmtOiLuUT5R6rkKFRZvli7ahPU-bJaU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:17:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc4-cb7b-9c58-373a0d002de5"}}' + body: '{"chatThread": {"id": "19:4DcAQgZbUGn64fZ1FYVw0Md8DXvEnVPyPk51Uoqug_A1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:40:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:17:39 GMT - ms-cv: ERPPmkWQc0SxCaIDt7lYNw.0 + date: Wed, 24 Feb 2021 09:40:06 GMT + ms-cv: JTXbVIGqSUaD0YcZpG3DCg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 836ms + x-processing-time: 1026ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:17:40 GMT - ms-cv: +e5us/5vjUOFTQKkdfzraQ.0 + date: Wed, 24 Feb 2021 09:40:06 GMT + ms-cv: puRbBuxzMUWoAY/royhiNw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 842ms + x-processing-time: 457ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: body: null headers: @@ -224,25 +238,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:17:40 GMT - ms-cv: ExECFOZRLkSrucWivvZvBw.0 + date: Wed, 24 Feb 2021 09:40:07 GMT + ms-cv: xyuoCMnZak+oa/BknfpfxQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 309ms + x-processing-time: 362ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -250,13 +264,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:17:41 GMT + - Wed, 24 Feb 2021 09:40:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -264,13 +278,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:17:57 GMT + - Wed, 24 Feb 2021 09:40:25 GMT ms-cv: - - pCklXNjJmEKS1gEqsrPa3A.0 + - kW7CNbNNP0qKsjfDomjGRA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16640ms + - 17351ms status: code: 204 message: No Content @@ -278,7 +294,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -286,13 +302,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:17:58 GMT + - Wed, 24 Feb 2021 09:40:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -300,13 +316,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:18:14 GMT + - Wed, 24 Feb 2021 09:40:40 GMT ms-cv: - - 2GSUOVKyNkudmSv9EM2ibA.0 + - HD8nt9mhp0m6HgGCKdOjzg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16693ms + - 16098ms 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 893d7f5b0fdc..07d88a0c26fd 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:18:15 GMT + - Wed, 24 Feb 2021 09:40:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:13 GMT + - Wed, 24 Feb 2021 09:40:41 GMT ms-cv: - - cuNmsy7nv0G1p/9GsngMgA.0 + - i1L8tJLgk0GOAKD5yur6Qw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 26ms + - 55ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:18:15 GMT + - Wed, 24 Feb 2021 09:40:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:13.8878372+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:41.1544313+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:14 GMT + - Wed, 24 Feb 2021 09:40:42 GMT ms-cv: - - tog85bh5u0aSJG6kumCQJg.0 + - Vzeve4cCw0u/ri5Lj6dIhA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 104ms + - 100ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:18:15 GMT + - Wed, 24 Feb 2021 09:40:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2265-9c58-373a0d0070ca"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:14 GMT + - Wed, 24 Feb 2021 09:40:42 GMT ms-cv: - - 1zN9zRgwr0KAcqCHZ2BMJQ.0 + - 5aUYgG8so0e1u5CEORlSbQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:18:15 GMT + - Wed, 24 Feb 2021 09:40:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:14.0825193+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:41.3581238+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:14 GMT + - Wed, 24 Feb 2021 09:40:42 GMT ms-cv: - - kblWrQzk+U6GNVsVxya2pA.0 + - 0X4Pf0uLtEyOmYCLU3gkAQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 94ms status: code: 200 message: OK @@ -165,57 +177,59 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 3ad78fb8-0e55-4ace-b55b-445e910f95dd + repeatability-Request-Id: + - da23cf07-9051-4b25-aaa9-b14a404371a0 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:dY2LFZUfMSYMlUgFHOBK6JL5YCBEnV_7z6C1T5DyfvE1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:18:15Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc5-59cd-dbb7-3a3a0d002e3d"}}' + body: '{"chatThread": {"id": "19:QTUHicbwVZ1NtFwQZft1tP_nfpnmvBvWSZnJZjIEnaw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:40:42Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:18:15 GMT - ms-cv: EpZGMSKCI027wfbMuz2U0w.0 + date: Wed, 24 Feb 2021 09:40:43 GMT + ms-cv: HUY4HIiLCkyT62VCcEmQQA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 840ms + x-processing-time: 1008ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:18:16 GMT - ms-cv: wrwsS4U4RkOTn7KepcXvdw.0 + date: Wed, 24 Feb 2021 09:40:44 GMT + ms-cv: lKicCu+YKU2Ij32NtFf64g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 867ms + x-processing-time: 432ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: body: null headers: @@ -224,25 +238,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:18:16 GMT - ms-cv: XST1go/ahU6EyGpm+A2sXQ.0 + date: Wed, 24 Feb 2021 09:40:44 GMT + ms-cv: d/uObfs630Guj755g5x/rw.0 strict-transport-security: max-age=2592000 - x-processing-time: 344ms + x-processing-time: 357ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -250,13 +264,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:18:18 GMT + - Wed, 24 Feb 2021 09:40:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -264,13 +278,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:18:33 GMT + - Wed, 24 Feb 2021 09:41:00 GMT ms-cv: - - I1E/tzvZYUuzELOe3JTxLQ.0 + - i3Qfdc59pEK32zXl9MqXeQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16410ms + - 16940ms status: code: 204 message: No Content @@ -278,7 +294,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -286,13 +302,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:18:34 GMT + - Wed, 24 Feb 2021 09:41:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -300,13 +316,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:18:49 GMT + - Wed, 24 Feb 2021 09:41:17 GMT ms-cv: - - RzK4RXdR3EWzhN+5jVzmcA.0 + - 1ZuxFUJ/U0aOFe0sYYaQpA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15990ms + - 16678ms 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 4038781d3dcc..400b5c659a49 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:18:50 GMT + - Wed, 24 Feb 2021 09:41:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:49 GMT + - Wed, 24 Feb 2021 09:41:17 GMT ms-cv: - - 31OWtmSn3EiOkJXY25BbiQ.0 + - Lm2p2GdUpk6hEU8GGSXJdw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:18:51 GMT + - Wed, 24 Feb 2021 09:41:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:49.4008201+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:17.6340677+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:49 GMT + - Wed, 24 Feb 2021 09:41:17 GMT ms-cv: - - nHqbbboWNUGZB8iLXcDEJA.0 + - WW6Mar1QLEaDoND9z4mwSw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 84ms + - 89ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:18:51 GMT + - Wed, 24 Feb 2021 09:41:21 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b0f3-1db7-3a3a0d0075a3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:50 GMT + - Wed, 24 Feb 2021 09:41:17 GMT ms-cv: - - wXZ/WKcf4k2NFRHHTQD5Sw.0 + - EJh+qfVxzUKr20xqQONgmA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 105ms + - 12ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:18:51 GMT + - Wed, 24 Feb 2021 09:41:21 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:49.7426359+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:17.8424624+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:18:50 GMT + - Wed, 24 Feb 2021 09:41:17 GMT ms-cv: - - yUabNjFxEkSSBdprrS/EVw.0 + - ksBLVUCnbkW8ymA3GQU9Og.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 123ms + - 90ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 11076cec-3eed-4e04-a50a-7de1f5fa86cf + repeatability-Request-Id: + - 9d0adcf4-1a5d-4ac3-8ca8-c09201de433c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:hmrEwhvqrMyzs4L4bmVEFpa02a2DGHP3nK-1lIVbDgk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:18:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc5-e49b-dbb7-3a3a0d002e42"}}' + body: '{"chatThread": {"id": "19:9QMCj3NMuG061wduI5g1FOkyzRuTBf8Zhl8MvSn7Gd81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:41:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:18:51 GMT - ms-cv: /D11Li2mXUePQ+ea7zB/4A.0 + date: Wed, 24 Feb 2021 09:41:19 GMT + ms-cv: xZT+C6O31Eio22jYf7hwCw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1301ms + x-processing-time: 1117ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:18:52 GMT - ms-cv: 0Rab5ME8YU+cr/32hQOi4g.0 + date: Wed, 24 Feb 2021 09:41:20 GMT + ms-cv: ptBFckx4PE+/LSgz5bCafw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 839ms + x-processing-time: 365ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -225,20 +239,20 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:18:52 GMT - ms-cv: VuWN90lDMUSIprmudU5tfw.0 + date: Wed, 24 Feb 2021 09:41:20 GMT + ms-cv: rm570IXvwkWaLSTGOxNBBg.0 strict-transport-security: max-age=2592000 - x-processing-time: 413ms + x-processing-time: 393ms status: code: 204 message: No Content - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -247,25 +261,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:18:53 GMT - ms-cv: As0acV4b/k2CWp8oO6NWnA.0 + date: Wed, 24 Feb 2021 09:41:21 GMT + ms-cv: l+JLygZOOEqEVVU05/OAgg.0 strict-transport-security: max-age=2592000 - x-processing-time: 296ms + x-processing-time: 288ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -273,13 +287,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:18:54 GMT + - Wed, 24 Feb 2021 09:41:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -287,13 +301,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:19:08 GMT + - Wed, 24 Feb 2021 09:41:37 GMT ms-cv: - - 3TV+emzQ70KIiKWt3yytEg.0 + - Qwi227gtu0qIvgWVO5HPww.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15749ms + - 16261ms status: code: 204 message: No Content @@ -301,7 +317,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -309,13 +325,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:19:10 GMT + - Wed, 24 Feb 2021 09:41:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -323,13 +339,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:19:25 GMT + - Wed, 24 Feb 2021 09:41:54 GMT ms-cv: - - 1txET329UkqLiKnywtlx+Q.0 + - ltoBfHQn6U+Q+a47tLrzhA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16088ms + - 17260ms 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 4ae3fc2723f6..10c234362796 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:19:26 GMT + - Wed, 24 Feb 2021 09:41:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:19:25 GMT + - Wed, 24 Feb 2021 09:41:54 GMT ms-cv: - - V2iZBGO0mkSTbnFTez9x4g.0 + - Xrk1NrQJeUyszd+OzvQveA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:19:27 GMT + - Wed, 24 Feb 2021 09:41:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:19:25.7173945+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:54.5945844+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:19:26 GMT + - Wed, 24 Feb 2021 09:41:55 GMT ms-cv: - - so9sekwPGE2NMvzGzqVRNw.0 + - eA9O+SA9R0qV/njjuHiC/Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 471ms + - 105ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:19:27 GMT + - Wed, 24 Feb 2021 09:41:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4141-1655-373a0d0070eb"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:19:26 GMT + - Wed, 24 Feb 2021 09:41:55 GMT ms-cv: - - clPvopIe3UesWCd2Wj25sw.0 + - Q2Ux3n2HPEWE91kZPH8ONQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:19:27 GMT + - Wed, 24 Feb 2021 09:41:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:19:25.9587324+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:54.7884476+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:19:26 GMT + - Wed, 24 Feb 2021 09:41:55 GMT ms-cv: - - d58oeSyc6UmvhH2AX50Srg.0 + - pG6HTZP6Ek+NqVC7pDCfeg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 123ms + - 95ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - e2efabfd-9369-47bd-ba13-97a39cfe8dda + repeatability-Request-Id: + - a72281bb-1268-4ed2-a642-74efaead899f method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:sT4EAyNNsPFIlxwKDRvELElOjSy031rfHMJ9uDfCF1M1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:19:27Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc6-70f4-dbb7-3a3a0d002e44"}}' + body: '{"chatThread": {"id": "19:uQsVR8vG1Thm6GdF7P72to3J99xqmbKLz7Upr9T8vWo1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:41:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:19:27 GMT - ms-cv: oCcekLH9MkqjgXrV83zVsQ.0 + date: Wed, 24 Feb 2021 09:41:56 GMT + ms-cv: DaPg2t7ph0KLHR/y6VsEFA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 887ms + x-processing-time: 823ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:19:27 GMT - ms-cv: 8MxAY6OdU06P126LeQNbmA.0 + date: Wed, 24 Feb 2021 09:41:56 GMT + ms-cv: kTg3o5Fz9UKYOfMitq4opA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 386ms + x-processing-time: 412ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -225,23 +239,24 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1612221568314", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614159717119", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-01T23:19:28Z", "senderId": "sanitized"}' + "2021-02-24T09:41:57Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:19:27 GMT - ms-cv: fAu0ovNwVUSs4266LM03ow.0 + date: Wed, 24 Feb 2021 09:41:56 GMT + ms-cv: A0YZJCu010y5SK0eRcwLug.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 252ms + x-processing-time: 250ms status: code: 200 message: OK - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -250,25 +265,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:19:28 GMT - ms-cv: Dm1GewpLpkCW3li1QTQmew.0 + date: Wed, 24 Feb 2021 09:41:57 GMT + ms-cv: CyeSfPRsJEmD8+CwPPslZQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 287ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -276,13 +291,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:19:30 GMT + - Wed, 24 Feb 2021 09:42:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -290,13 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:19:44 GMT + - Wed, 24 Feb 2021 09:42:15 GMT ms-cv: - - fPF+rtnel0uXE6gx+3Ygcg.0 + - /kWHz1nbaUyvmasgStqr+w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16405ms + - 17235ms status: code: 204 message: No Content @@ -304,7 +321,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -312,13 +329,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:19:46 GMT + - Wed, 24 Feb 2021 09:42:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -326,13 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:20:01 GMT + - Wed, 24 Feb 2021 09:42:30 GMT ms-cv: - - s8cK09kHJkGx8kD54uNCug.0 + - E3rkR+loU06LarLHtDaE6A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16382ms + - 15883ms 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 aaf00437b769..1f233af8a6ee 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:20:02 GMT + - Wed, 24 Feb 2021 09:42:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:02 GMT + - Wed, 24 Feb 2021 09:42:31 GMT ms-cv: - - HbOjX7CMD0yIeSBDX2zgNQ.0 + - I/ZVMXLCEUG4dUYPAQiUrQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 47ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:20:03 GMT + - Wed, 24 Feb 2021 09:42:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:01.5625672+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:30.4410358+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:02 GMT + - Wed, 24 Feb 2021 09:42:31 GMT ms-cv: - - hQOqUjNxi0Odwu9Ddv6Ikw.0 + - kYtCTwqDz0iTcX4detvsqg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 125ms + - 92ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:20:03 GMT + - Wed, 24 Feb 2021 09:42:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cd46-1db7-3a3a0d0075ad"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:02 GMT + - Wed, 24 Feb 2021 09:42:31 GMT ms-cv: - - D1V4moi670yS3GAi9fxS0Q.0 + - dFl1hcHd70SBnotTPchbow.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 37ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:20:03 GMT + - Wed, 24 Feb 2021 09:42:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:01.798267+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:30.6306328+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:02 GMT + - Wed, 24 Feb 2021 09:42:31 GMT ms-cv: - - Kpvd90J+E0ahUbg1233i/A.0 + - sDnM4alHzEa8lgzUKy8DYg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 94ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - ffed4204-b2d0-4c79-a2b9-167ea6ec6675 + repeatability-Request-Id: + - 64529e74-a9cb-428b-a173-c2b086e5f1e8 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:HAql5yFMs-s5ggcoC6lvfy4lMfV3CLDj02pJz5siXgM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:20:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc6-fe3e-1db7-3a3a0d002bbe"}}' + body: '{"chatThread": {"id": "19:3IyWQqPH3ozNqi4VV_DM7WXrQpn4Ww5rhKT_47foAmQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:42:31Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:03 GMT - ms-cv: /DgfnofHcUSj7KMGEjtVVw.0 + date: Wed, 24 Feb 2021 09:42:31 GMT + ms-cv: bCXbGvYIMkW4I+K+UT7fdA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 878ms + x-processing-time: 933ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:03 GMT - ms-cv: l7iB83AiV0m0NcpVNhUF9w.0 + date: Wed, 24 Feb 2021 09:42:33 GMT + ms-cv: cX+YnvTcSESw9ZkAd5tHZA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 401ms + x-processing-time: 404ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -225,21 +239,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:04 GMT - ms-cv: mUgKEDWKiUqzo52QfMm3Ig.0 + date: Wed, 24 Feb 2021 09:42:33 GMT + ms-cv: LC5o2zO/QEiiDhK1u1ef+A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 266ms + x-processing-time: 260ms status: code: 200 message: OK - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -248,21 +262,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:04 GMT - ms-cv: zGVUvEodWUW6VGCXzhsssQ.0 + date: Wed, 24 Feb 2021 09:42:33 GMT + ms-cv: OlqFHR0J1k6n6JTd+VSUZA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 352ms + x-processing-time: 367ms status: code: 200 message: OK - 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 + 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=2021-01-27-preview4 - request: body: null headers: @@ -271,21 +285,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:05 GMT - ms-cv: SJPKrSIwAk2eQS3jEUH62w.0 + date: Wed, 24 Feb 2021 09:42:34 GMT + ms-cv: P0yGniiFXEe7FyyJzLryBA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 362ms + x-processing-time: 365ms status: code: 200 message: OK - 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 + 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=2021-01-27-preview4 - request: body: null headers: @@ -294,21 +308,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - 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 + 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=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:05 GMT - ms-cv: zI4V2XnPNEWEc8ZMNL8EBw.0 + date: Wed, 24 Feb 2021 09:42:34 GMT + ms-cv: EWAfsiwWLkmTTcUIzuGMiA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 365ms + x-processing-time: 363ms status: code: 200 message: OK - 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 + 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=2021-01-27-preview4 - request: body: null headers: @@ -317,25 +331,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:20:05 GMT - ms-cv: ZytCWmbx2kGM8kb86OFniQ.0 + date: Wed, 24 Feb 2021 09:42:34 GMT + ms-cv: BJw7VCLPWUKmRrpwMebfCQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 353ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -343,13 +357,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:20:07 GMT + - Wed, 24 Feb 2021 09:42:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -357,13 +371,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:20:21 GMT + - Wed, 24 Feb 2021 09:42:50 GMT ms-cv: - - bBPNdiKgjEOOG4rufGohUQ.0 + - K40cofnY4kGVB3naFZtwkg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15825ms + - 16300ms status: code: 204 message: No Content @@ -371,7 +387,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -379,13 +395,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:20:23 GMT + - Wed, 24 Feb 2021 09:42:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -393,13 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:20:38 GMT + - Wed, 24 Feb 2021 09:43:07 GMT ms-cv: - - 9UV3osczJUioYNOWrKK/3w.0 + - /Bug8zzuuEyaZ0OKufBxJg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16641ms + - 16278ms 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 dec731d6e8e0..5cfb9db81806 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:20:40 GMT + - Wed, 24 Feb 2021 09:43:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:39 GMT + - Wed, 24 Feb 2021 09:43:07 GMT ms-cv: - - f4Px5pwNZk6orW3lopLZZQ.0 + - pNrmRykJ2Ual3LzBFeKwhw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 40ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:20:40 GMT + - Wed, 24 Feb 2021 09:43:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:38.5900315+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:07.213082+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:39 GMT + - Wed, 24 Feb 2021 09:43:07 GMT ms-cv: - - N2d84HZid06e2vITK6BKBA.0 + - bYVxxjZbOE6bEiu1R420Gw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 92ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:20:40 GMT + - Wed, 24 Feb 2021 09:43:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5ce8-dbb7-3a3a0d0074cd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:39 GMT + - Wed, 24 Feb 2021 09:43:07 GMT ms-cv: - - Her44Xo2o0Gmx7P7HW8t1w.0 + - Amee2WRKdEC9gJuEf+6fJw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 12ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:20:40 GMT + - Wed, 24 Feb 2021 09:43:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:38.7820752+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:07.393857+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:20:39 GMT + - Wed, 24 Feb 2021 09:43:08 GMT ms-cv: - - I6P3k0H5n0e2XRkPODLJLQ.0 + - IRt3geszUUKcwo1sn9TC7Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 86ms + - 87ms status: code: 200 message: OK @@ -165,57 +177,59 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 848b50dd-5e67-407f-8905-3e0e5b22f14b + repeatability-Request-Id: + - ca3ab0d5-9cdd-4dc4-8c8c-e9499b5b5077 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:GHb4oV86Az3F4uT726U95jqsiEAXGu7_2Ks3dXUzfPg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:20:40Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc7-8f1a-dbb7-3a3a0d002e49"}}' + body: '{"chatThread": {"id": "19:ocwoMnuScpRCx-GExVBtWF9tRtceyZsYbtjU1GtuRSU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:43:08Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:40 GMT - ms-cv: PXXBFYPP30+ZG4uFJS7zvA.0 + date: Wed, 24 Feb 2021 09:43:08 GMT + ms-cv: Fr6vRW1dbEiMnFa0pIhYIw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 899ms + x-processing-time: 897ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '183' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:41 GMT - ms-cv: Ngd8yj412UyG9R7fF3NR5g.0 + date: Wed, 24 Feb 2021 09:43:09 GMT + ms-cv: o/vauZIYGk2Zr9DOnY/Vow.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 901ms + x-processing-time: 455ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: body: null headers: @@ -224,21 +238,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:20:41 GMT - ms-cv: 7KvbKhAA50anUYAFvRsQVA.0 + date: Wed, 24 Feb 2021 09:43:10 GMT + ms-cv: gcctTagYGEC9NkE/IcO9NQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 317ms + x-processing-time: 256ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-01-27-preview4 - request: body: null headers: @@ -247,25 +261,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:20:42 GMT - ms-cv: dJqxi4yQFUKlLySz39PCwA.0 + date: Wed, 24 Feb 2021 09:43:10 GMT + ms-cv: KDfBiTFIjEOwW4hMYJaBJQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 335ms + x-processing-time: 337ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -273,13 +287,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:20:43 GMT + - Wed, 24 Feb 2021 09:43:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -287,13 +301,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:20:59 GMT + - Wed, 24 Feb 2021 09:43:26 GMT ms-cv: - - 921TROcHdkyOp7Xidgq8SQ.0 + - rkaLiw2ch0O84INzyAqmGA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16773ms + - 16480ms status: code: 204 message: No Content @@ -301,7 +317,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -309,13 +325,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:21:00 GMT + - Wed, 24 Feb 2021 09:43:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -323,13 +339,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:21:14 GMT + - Wed, 24 Feb 2021 09:43:43 GMT ms-cv: - - w4LueWX/ZE6W7/oW0oef7w.0 + - 0aGw5QMiDES1CPZyOhHkLQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16020ms + - 16709ms 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 72ea19e4dd18..08d0b362ea98 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:21:16 GMT + - Wed, 24 Feb 2021 09:43:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:15 GMT + - Wed, 24 Feb 2021 09:43:43 GMT ms-cv: - - Y73NycmljUGoS+Fw5kOCxA.0 + - 0gYyhkN6T0mtHg2QfSp96w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 11ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:21:16 GMT + - Wed, 24 Feb 2021 09:43:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:14.9303274+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:43.4401764+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:15 GMT + - Wed, 24 Feb 2021 09:43:43 GMT ms-cv: - - 8Rerr61n40O65GFy48Yfpw.0 + - Z4SZHkC180uO1NzpdN4RDw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 92ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:21:16 GMT + - Wed, 24 Feb 2021 09:43:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-ea6f-1db7-3a3a0d0075b3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:15 GMT + - Wed, 24 Feb 2021 09:43:43 GMT ms-cv: - - S1xoSIQBSka4DV2LM4DnpQ.0 + - +olGhMaKJE+aYkLvmck+Kg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 12ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:21:16 GMT + - Wed, 24 Feb 2021 09:43:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:15.1228654+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:43.6481274+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:15 GMT + - Wed, 24 Feb 2021 09:43:43 GMT ms-cv: - - iEOfTZ9KsEG2sI4FO1ga6g.0 + - r51M6ctTqkyiGo+OlnbAmw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 95ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '369' + - '475' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - c605e6a2-8215-4f6b-9d5a-fe07213ad68f + repeatability-Request-Id: + - eee34ea6-ae3c-4f3c-96c1-ccd683ebde43 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:0nqHY0ienC2Fh3pX6izGvIIr1UoHjJnLIj6kP3pNlD41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:21:16Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-1d16-dbb7-3a3a0d002e4d"}}' + body: '{"chatThread": {"id": "19:N9rfwjUmq5H_-KG1zd4m7TNi4iVY5xfDpO5cdHNMYoY1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:43:45Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:16 GMT - ms-cv: ohL958/JBkCZsObnMAC+Gg.0 + date: Wed, 24 Feb 2021 09:43:45 GMT + ms-cv: 9PVmFPqaJkah5xz65xiA4A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 924ms + x-processing-time: 1198ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:16 GMT - ms-cv: w+gQAUFmUUWPWkZ6BFJyXg.0 + date: Wed, 24 Feb 2021 09:43:46 GMT + ms-cv: InmJCw3me026xB5+S2ATuA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 381ms + x-processing-time: 826ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -229,21 +243,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 01 Feb 2021 23:21:17 GMT - ms-cv: cFA048twuE6yynApi/p7iQ.0 + date: Wed, 24 Feb 2021 09:43:46 GMT + ms-cv: SQVL9ayC60OIFl7clVjHiA.0 strict-transport-security: max-age=2592000 - x-processing-time: 485ms + x-processing-time: 445ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: null headers: @@ -252,21 +266,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:18 GMT - ms-cv: VAVsQp2XWEi13VL5yHn3OQ.0 + date: Wed, 24 Feb 2021 09:43:48 GMT + ms-cv: 5Ip4wbWNSk+FzT5t1ttL2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 721ms + x-processing-time: 734ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -280,21 +294,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:18 GMT - ms-cv: KvHKUxhRAEesoAW7DQPTvA.0 + date: Wed, 24 Feb 2021 09:43:47 GMT + ms-cv: /lhf4mE1e0+PItnYshf2Eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 389ms + x-processing-time: 396ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -307,21 +321,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 01 Feb 2021 23:21:19 GMT - ms-cv: Kb6zsCFNk0SgwzOiNN7DxQ.0 + date: Wed, 24 Feb 2021 09:43:48 GMT + ms-cv: CirrUZTeIE62obk5G5o5NQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 493ms + x-processing-time: 441ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: null headers: @@ -330,21 +344,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:20 GMT - ms-cv: pTOwHhOssEq/bgvMPw4DBA.0 + date: Wed, 24 Feb 2021 09:43:49 GMT + ms-cv: rVx4gRux1EmhRJCjdEhHuA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 735ms + x-processing-time: 545ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: '{"content": "content", "senderDisplayName": "sender_display_name", "type": "text"}' @@ -358,21 +372,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:21 GMT - ms-cv: TCjoJnr0F0ylKEzBDmJ7aw.0 + date: Wed, 24 Feb 2021 09:43:49 GMT + ms-cv: 2FsSMDLZoUGuSOF/j4dGLg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 403ms + x-processing-time: 387ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -385,21 +399,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 01 Feb 2021 23:21:22 GMT - ms-cv: UqrPfAD6mk2xLTla3gk72g.0 + date: Wed, 24 Feb 2021 09:43:50 GMT + ms-cv: +mjVt2HoO0e7jn/THwB15A.0 strict-transport-security: max-age=2592000 - x-processing-time: 1002ms + x-processing-time: 453ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: null headers: @@ -408,21 +422,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:22 GMT - ms-cv: w2knKYvDIkOg1tpARtJPPw.0 + date: Wed, 24 Feb 2021 09:43:50 GMT + ms-cv: fRz+TnTlkEWuAJTHsxxgUA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 250ms + x-processing-time: 267ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: null headers: @@ -431,21 +445,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-01-27-preview4 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:22 GMT - ms-cv: bJGKQXjTz0G0vwtPXKB4Hg.0 + date: Wed, 24 Feb 2021 09:43:50 GMT + ms-cv: CBcWaG3imUmE8HDYR1s5sw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 283ms + x-processing-time: 247ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-01-27-preview4 - request: body: null headers: @@ -454,25 +468,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:21:22 GMT - ms-cv: ACuZGQSCyEerBjQBmkDQag.0 + date: Wed, 24 Feb 2021 09:43:51 GMT + ms-cv: +d3WCFibVUCJfk3omWzfpA.0 strict-transport-security: max-age=2592000 - x-processing-time: 348ms + x-processing-time: 338ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -480,13 +494,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:21:24 GMT + - Wed, 24 Feb 2021 09:43:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -494,13 +508,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:21:40 GMT + - Wed, 24 Feb 2021 09:44:08 GMT ms-cv: - - VBZIaGGgCkaB7VHTdOjuow.0 + - H/nOW+q3BEKWS5A6GImRfA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17051ms + - 16210ms status: code: 204 message: No Content @@ -508,7 +524,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -516,13 +532,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:21:41 GMT + - Wed, 24 Feb 2021 09:44:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -530,13 +546,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:21:57 GMT + - Wed, 24 Feb 2021 09:44:23 GMT ms-cv: - - ey5vQHS020CIGdf+9PNl8A.0 + - PMkrzejgAUKcCbbVhAOfpA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16877ms + - 15763ms 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 951f045d7e04..5908b54b78e8 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:21:58 GMT + - Wed, 24 Feb 2021 09:44:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:58 GMT + - Wed, 24 Feb 2021 09:44:24 GMT ms-cv: - - IR8qAgkkJkKbpyNsfz9ZFQ.0 + - V+rAEHQPUEmnySbwK9xb2A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 43ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:21:59 GMT + - Wed, 24 Feb 2021 09:44:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:57.4850953+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:23.9713277+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:58 GMT + - Wed, 24 Feb 2021 09:44:24 GMT ms-cv: - - 6B5ozE6YiEuTvLaQmQuqcg.0 + - Uz2lwKu/vUCn+lkREZ+DVg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 253ms + - 94ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:21:59 GMT + - Wed, 24 Feb 2021 09:44:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-88de-9c58-373a0d0070f0"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:58 GMT + - Wed, 24 Feb 2021 09:44:24 GMT ms-cv: - - 4oXicPYGIEqwMQL31CyFmA.0 + - 2OZo4W6/R0KlWnMlLTQy+A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 34ms + - 19ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:21:59 GMT + - Wed, 24 Feb 2021 09:44:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:57.9083946+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:24.1961174+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:21:58 GMT + - Wed, 24 Feb 2021 09:44:24 GMT ms-cv: - - zn2JZowMz0mTvt9WTVRIQw.0 + - XanWvr4NXU2MVcDn2I6bkQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 94ms status: code: 200 message: OK @@ -165,79 +177,85 @@ interactions: Accept: - application/json Content-Length: - - '204' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 4e005603-2996-4d73-9185-054a2f9de6ec + repeatability-Request-Id: + - 239955d8-af9a-4afd-9382-657353e7c1a2 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QUVZHhXp9SwSg5OPq6PY8cBLtExh1Iy7xtkPahjchvk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:21:59Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-c2a0-dbb7-3a3a0d002e52"}}' + body: '{"chatThread": {"id": "19:pwQY2X4eeWbqlnBlOp_BBbATWRKoHA04AafUV6zrjbA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:44:25Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:59 GMT - ms-cv: 1rikER0eHk+1ImKysJ5OAA.0 + date: Wed, 24 Feb 2021 09:44:25 GMT + ms-cv: 1bzaOayQaEGkBHTXzVv/CQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 913ms + x-processing-time: 904ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '182' + - '235' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:21:59 GMT - ms-cv: /EUWgZhWNUCZxw9/fFlqcQ.0 + date: Wed, 24 Feb 2021 09:44:26 GMT + ms-cv: GfZwlKleXkmSEptIyI6tnw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 458ms + x-processing-time: 456ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: - body: null + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-88de-9c58-373a0d0070f0"}}' headers: Accept: - application/json + Content-Length: + - '112' + Content-Type: + - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-c494-b0b7-3a3a0d002fec?api-version=2020-11-01-preview3 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:22:00 GMT - ms-cv: DK6rkh0u+ESV4EeUpATcXg.0 + date: Wed, 24 Feb 2021 09:44:26 GMT + ms-cv: SdvrMyoN3kqiloxevuaWHQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 514ms + x-processing-time: 505ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-c494-b0b7-3a3a0d002fec?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 - request: body: null headers: @@ -246,25 +264,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:22:01 GMT - ms-cv: LYAa3yRCpkSle1X1IUcmhA.0 + date: Wed, 24 Feb 2021 09:44:27 GMT + ms-cv: Ag8xWwkGWk2ofn2kIJEn5w.0 strict-transport-security: max-age=2592000 - x-processing-time: 338ms + x-processing-time: 345ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -272,13 +290,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:22:02 GMT + - Wed, 24 Feb 2021 09:44:30 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -286,13 +304,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:22:18 GMT + - Wed, 24 Feb 2021 09:44:44 GMT ms-cv: - - MFVGBbxcOUGCZXhAtKIbGA.0 + - Ud1zzUsk3UaMh1/VwnSolA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16909ms + - 16606ms status: code: 204 message: No Content @@ -300,7 +320,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -308,13 +328,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:22:19 GMT + - Wed, 24 Feb 2021 09:44:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -322,13 +342,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:22:34 GMT + - Wed, 24 Feb 2021 09:44:59 GMT ms-cv: - - 3JviFuM7yUSGV0KU+tzvAw.0 + - CruKff42L0CV0jzLOrdArA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16381ms + - 16178ms 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 8536bdd64ea2..5df153dc11d4 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:22:35 GMT + - Wed, 24 Feb 2021 09:45:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:22:34 GMT + - Wed, 24 Feb 2021 09:45:00 GMT ms-cv: - - vJ5pkAVuH0+w/zW8LYsK6w.0 + - Qq5LYI9XM0GthUJR4Aibfw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:22:36 GMT + - Wed, 24 Feb 2021 09:45:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:22:34.6115112+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:00.1206033+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:22:35 GMT + - Wed, 24 Feb 2021 09:45:00 GMT ms-cv: - - LRDW4x+ecUCNLMnP9KrgQA.0 + - wxG7NZNgk0OpD6f9/IkWKQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 94ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:22:36 GMT + - Wed, 24 Feb 2021 09:45:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-15f6-1db7-3a3a0d0075b7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:22:35 GMT + - Wed, 24 Feb 2021 09:45:00 GMT ms-cv: - - pFA2WIfndUSfRe7QQEp71w.0 + - +fLLQ1wCxEiWZMrNHZN12Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:22:36 GMT + - Wed, 24 Feb 2021 09:45:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:22:34.812464+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:00.3280286+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:22:35 GMT + - Wed, 24 Feb 2021 09:45:00 GMT ms-cv: - - +CjMpFq/d0mW021QBABxVw.0 + - 1IjDiw41lEOVEYFPB7pHmQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 92ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - bc786b1c-d597-48ec-b853-a0c14973341e + repeatability-Request-Id: + - f2c06511-de9b-4d43-b9d4-235de41a150a method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:VVUbRAlWVhs2m5fmK1yxiA8-cIipUadN6HVJCSQ0X7w1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:22:36Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc9-544c-9c58-373a0d002def"}}' + body: '{"chatThread": {"id": "19:6lZIWFds5bzRuSpMEl21JyzfcinVYxlsd5Bt56bGV9Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:45:01Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:22:36 GMT - ms-cv: 2QadoNBVw0+1kmPGyToDlA.0 + date: Wed, 24 Feb 2021 09:45:01 GMT + ms-cv: Zl+9mkNLikilNt6In0S1Gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1433ms + x-processing-time: 917ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:22:37 GMT - ms-cv: uQU0u5jR6EaupuKhQI9AnA.0 + date: Wed, 24 Feb 2021 09:45:03 GMT + ms-cv: nGG6oPMZAE2qW/dD01Pijg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 385ms + x-processing-time: 869ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -225,25 +239,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:22:37 GMT - ms-cv: 3oVt89CM6EKRxcnf/8Osdw.0 + date: Wed, 24 Feb 2021 09:45:02 GMT + ms-cv: tf6HcavVnESEJjK90M0Byg.0 strict-transport-security: max-age=2592000 - x-processing-time: 353ms + x-processing-time: 342ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -251,13 +265,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:22:39 GMT + - Wed, 24 Feb 2021 09:45:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -265,13 +279,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:22:54 GMT + - Wed, 24 Feb 2021 09:45:19 GMT ms-cv: - - Bfl9O3aTg0mhInatUkltCg.0 + - xEfOdQhd60OHmP3iDtmeHA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16542ms + - 16249ms status: code: 204 message: No Content @@ -279,7 +295,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -287,13 +303,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:22:55 GMT + - Wed, 24 Feb 2021 09:45:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -301,13 +317,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:23:11 GMT + - Wed, 24 Feb 2021 09:45:35 GMT ms-cv: - - ieTBbeMSNE2DUYblodJyzA.0 + - jPxIr0DKCEO5gCuGf808Iw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16338ms + - 16538ms 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 314d10e97bb7..3941a7a095f8 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:23:12 GMT + - Wed, 24 Feb 2021 09:45:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:10 GMT + - Wed, 24 Feb 2021 09:45:36 GMT ms-cv: - - 1PQm5xA2xEaSXsV8I18+iw.0 + - q5XqyrUN8UOFWpDsaGXyMQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 16ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:23:12 GMT + - Wed, 24 Feb 2021 09:45:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:10.7955443+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:36.03274+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:10 GMT + - Wed, 24 Feb 2021 09:45:36 GMT ms-cv: - - QXZoCTJ+2k+xn7a2sjEcJg.0 + - aPhJmJfFz0K0BGWi11ZVGg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 124ms + - 90ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:23:12 GMT + - Wed, 24 Feb 2021 09:45:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a256-b0b7-3a3a0d00746a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:10 GMT + - Wed, 24 Feb 2021 09:45:36 GMT ms-cv: - - QisxI+Bpgk6Jn/2IGZPgRQ.0 + - vYIMl9MVxEKxmt15X2+5EA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,24 +142,26 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:23:12 GMT + - Wed, 24 Feb 2021 09:45:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:10.9940038+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:36.2478106+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:11 GMT + - Wed, 24 Feb 2021 09:45:36 GMT ms-cv: - - 9W15esyoC02p75dxwK8onQ.0 + - x61leGWmxEaZJD3cGts96A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 1c1f2397-e606-4f51-88c4-d4f1d8245f84 + repeatability-Request-Id: + - ec395f15-2e94-42b8-9e3c-a8e4ac0bc885 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:BgfIWLP2boNcEYEZzzLs69MML9TI7T55P8BisDSQR-Q1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:23:12Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc9-e181-9c58-373a0d002df1"}}' + body: '{"chatThread": {"id": "19:g-tXfBlWScWRF8P7pOqVLaNg0aQfCuMHFYj9VQjmC_41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:45:38Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:23:12 GMT - ms-cv: STB7amyigkKPCp3dLVeX2w.0 + date: Wed, 24 Feb 2021 09:45:37 GMT + ms-cv: wgJhVrRIuU66l5zmKHmIKA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 913ms + x-processing-time: 1330ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:23:13 GMT - ms-cv: ReCQ1NoYvkebEh2MVnaTuQ.0 + date: Wed, 24 Feb 2021 09:45:38 GMT + ms-cv: yXppVWVfb0+YnYdgFEjSPg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 740ms + x-processing-time: 360ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -229,21 +243,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 01 Feb 2021 23:23:14 GMT - ms-cv: bckuD4xjEkSVT16+MYV33w.0 + date: Wed, 24 Feb 2021 09:45:38 GMT + ms-cv: H9/IFKJAIU+RLfNTm/GXHg.0 strict-transport-security: max-age=2592000 - x-processing-time: 983ms + x-processing-time: 443ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 - request: body: null headers: @@ -252,25 +266,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:23:14 GMT - ms-cv: opHMk4nMwEWG8PnnjtulCA.0 + date: Wed, 24 Feb 2021 09:45:39 GMT + ms-cv: e1n5jnxEHUG8lq7uoRoJPA.0 strict-transport-security: max-age=2592000 - x-processing-time: 321ms + x-processing-time: 284ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -278,13 +292,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:23:16 GMT + - Wed, 24 Feb 2021 09:45:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -292,13 +306,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:23:31 GMT + - Wed, 24 Feb 2021 09:45:56 GMT ms-cv: - - kIDhxGSX1U+VB09tCJ0++w.0 + - MNc/4ivQ/kmruRdZAaOpnA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16190ms + - 16413ms status: code: 204 message: No Content @@ -306,7 +322,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -314,13 +330,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:23:32 GMT + - Wed, 24 Feb 2021 09:45:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -328,13 +344,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:23:47 GMT + - Wed, 24 Feb 2021 09:46:12 GMT ms-cv: - - fOvspotyjEO9ckTKVxfhSA.0 + - /MlwTJFugk65tp/6b13LYQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15997ms + - 15730ms 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 fc3420758429..ecef9aed98f4 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:23:48 GMT + - Wed, 24 Feb 2021 09:46:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:47 GMT + - Wed, 24 Feb 2021 09:46:11 GMT ms-cv: - - z9cXxjKO3kq2FNRq9Ut2nw.0 + - rMe5bE2sVkCTKucy+6uwlg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 15ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:23:48 GMT + - Wed, 24 Feb 2021 09:46:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:46.9704687+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:11.6619062+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:47 GMT + - Wed, 24 Feb 2021 09:46:11 GMT ms-cv: - - ZDEm3qYXdECk2ZT/OOe1Uw.0 + - c8ExkynL/UWU7VznTi9vKA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 112ms + - 93ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:23:48 GMT + - Wed, 24 Feb 2021 09:46:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2db0-b0b7-3a3a0d00746c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:47 GMT + - Wed, 24 Feb 2021 09:46:12 GMT ms-cv: - - cOJDgcuScESmBfAU8nR/KQ.0 + - xWmSk73vfEKq13b92U+laQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:23:48 GMT + - Wed, 24 Feb 2021 09:46:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:47.250249+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:11.9310508+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:23:48 GMT + - Wed, 24 Feb 2021 09:46:12 GMT ms-cv: - - p8xayfoxmUKKyCjvuAx7Ng.0 + - Nb0uemmk7EO+3f5lcdj98Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 153ms + - 90ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 7aabb880-06f2-45e1-b093-018d3df07ce0 + repeatability-Request-Id: + - 56822fd9-6800-4cc6-8f53-740073e1f84f method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:tEPkqgR1t_KWJSQMF31NKlB9SlRBgLnh3MsMO-pxdcw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:23:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffca-6edb-dbb7-3a3a0d002e56"}}' + body: '{"chatThread": {"id": "19:XkSHxUSWVm8V23GZntSheBpA1rhzZ0pLQaVT-fzhX8g1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:46:13Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:23:48 GMT - ms-cv: 7j8MQyBdkkuL/uA8vZ2J7A.0 + date: Wed, 24 Feb 2021 09:46:13 GMT + ms-cv: iZb239hSqk26zFWtBi1aCA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 882ms + x-processing-time: 1352ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: null headers: @@ -197,21 +211,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 01 Feb 2021 23:23:49 GMT - ms-cv: Krzp39HLdE20CGu8gO5XZw.0 + date: Wed, 24 Feb 2021 09:46:14 GMT + ms-cv: TYkq0G65oUK7W0luhv5F1w.0 strict-transport-security: max-age=2592000 - x-processing-time: 383ms + x-processing-time: 354ms status: code: 200 message: OK - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -220,25 +234,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:23:49 GMT - ms-cv: xeRX+l4sQ0CKg5zWWLrF0g.0 + date: Wed, 24 Feb 2021 09:46:14 GMT + ms-cv: 3Ekqw3m7l0OVJYBm9VAn/Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 327ms + x-processing-time: 322ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -246,13 +260,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:23:51 GMT + - Wed, 24 Feb 2021 09:46:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -260,13 +274,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:24:06 GMT + - Wed, 24 Feb 2021 09:46:31 GMT ms-cv: - - GF9toK+rIUOudaKkjzDpVw.0 + - tgbINdz0Q0CDPQJnikMCpw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16644ms + - 16194ms status: code: 204 message: No Content @@ -274,7 +290,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -282,13 +298,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:24:07 GMT + - Wed, 24 Feb 2021 09:46:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -296,13 +312,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:24:22 GMT + - Wed, 24 Feb 2021 09:46:46 GMT ms-cv: - - 6C5qXWa4E0WTbHl2lwG5RQ.0 + - Spi08Rc8Hk+maRtMSi2mJA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16673ms + - 15685ms 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 8f7ab1f345ea..237e7f8e6b2b 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:24:24 GMT + - Wed, 24 Feb 2021 09:46:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:24:23 GMT + - Wed, 24 Feb 2021 09:46:47 GMT ms-cv: - - NQueO+R7EkOZVyAtuON4yQ.0 + - vQmPh7Kw8UWE2aRZgmN0tg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 13ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:24:24 GMT + - Wed, 24 Feb 2021 09:46:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:22.0437936+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:46.6895898+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:24:23 GMT + - Wed, 24 Feb 2021 09:46:47 GMT ms-cv: - - vkN9GtijPUq1zJMp5XnuAw.0 + - nf4BuIZ1t0SHTZNMGyHl0A.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 91ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:24:24 GMT + - Wed, 24 Feb 2021 09:46:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b642-dbb7-3a3a0d0074de"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:24:23 GMT + - Wed, 24 Feb 2021 09:46:47 GMT ms-cv: - - a/aMXilVbEy+ubNKyuKsQA.0 + - TdKWI7S+ckuKIbmA+1YpwA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 14ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:24:25 GMT + - Wed, 24 Feb 2021 09:46:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:23.2449312+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:46.8927422+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:24:23 GMT + - Wed, 24 Feb 2021 09:46:47 GMT ms-cv: - - MnmfPeTv+Ums0E1JwYDWYg.0 + - AbRyDNxsDUqPHXNvHh0+eA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 101ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 3a6dd79b-034a-4896-8ee7-323f65ddbecd + repeatability-Request-Id: + - 6301d413-e656-4aeb-b05e-551500692a46 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:2MTI6PTB0PTcFtLheTgRhizt-Nj8t_tXmaC40HyGsUs1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:24:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffca-fbd8-9c58-373a0d002df3"}}' + body: '{"chatThread": {"id": "19:EH6dxjlt-jSqTEUm9xcbT8abAJ3W3hT5QN9XpiJTRd41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:46:48Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:24:25 GMT - ms-cv: AeoCrhUwQEm7knUWoXsJmw.0 + date: Wed, 24 Feb 2021 09:46:48 GMT + ms-cv: DN97ySZQGkKsaavLIWeP2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1348ms + x-processing-time: 859ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -202,21 +216,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:24:25 GMT - ms-cv: RaphM8ii4E62Td9Vy3tRzg.0 + date: Wed, 24 Feb 2021 09:46:48 GMT + ms-cv: VwGhU97On0u37rlk7ca/Ww.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 378ms + x-processing-time: 368ms status: code: 201 message: Created - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: '{"content": "updated message content"}' headers: @@ -229,20 +243,20 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.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=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:24:26 GMT - ms-cv: 3UNeoTGzQU2LgfF85fTEJw.0 + date: Wed, 24 Feb 2021 09:46:49 GMT + ms-cv: ZN0dA9PsxkyBebLb24pNYQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 689ms + x-processing-time: 680ms status: code: 204 message: No Content - url: https://sanitized.int.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=2021-01-27-preview4 - request: body: null headers: @@ -251,25 +265,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:24:26 GMT - ms-cv: j0yeH8iha0aYMv7WFDihbQ.0 + date: Wed, 24 Feb 2021 09:46:49 GMT + ms-cv: aPYzmlYNbE+ZjzRq86tUPg.0 strict-transport-security: max-age=2592000 - x-processing-time: 292ms + x-processing-time: 329ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -277,13 +291,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:24:28 GMT + - Wed, 24 Feb 2021 09:46:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -291,13 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:24:42 GMT + - Wed, 24 Feb 2021 09:47:05 GMT ms-cv: - - BHz24HBbQUqWOnI43uiBmA.0 + - APRei5GpB0an7stpseiXug.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16392ms + - 15692ms status: code: 204 message: No Content @@ -305,7 +321,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -313,13 +329,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:24:44 GMT + - Wed, 24 Feb 2021 09:47:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -327,13 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:25:00 GMT + - Wed, 24 Feb 2021 09:47:21 GMT ms-cv: - - T7RlBrl7pk2oGnwnOm3tgw.0 + - SzZ4ubiHNUeojgjhosh+oQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16807ms + - 16339ms 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 08d69a5868bb..4c1232890468 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 @@ -1,6 +1,6 @@ interactions: - request: - body: null + body: '{}' headers: Accept: - application/json @@ -9,35 +9,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:25:01 GMT + - Wed, 24 Feb 2021 09:47:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:25:00 GMT + - Wed, 24 Feb 2021 09:47:22 GMT ms-cv: - - 2dcZKwGztEOEKkZAsul9eQ.0 + - 3PfEFgc/lEa1/gMyRf7t/g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 114ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -52,35 +56,37 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:25:01 GMT + - Wed, 24 Feb 2021 09:47:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:59.2464733+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:22.2369833+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:25:00 GMT + - Wed, 24 Feb 2021 09:47:22 GMT ms-cv: - - fjhnvlxBckyB76BFwWBzDA.0 + - 7qineTyqD0q/n+k9i1fA2w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 313ms + - 113ms status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -89,35 +95,39 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '2' + Content-Type: + - application/json Date: - - Mon, 01 Feb 2021 23:25:02 GMT + - Wed, 24 Feb 2021 09:47:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"id": "sanitized"}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-4131-b0b7-3a3a0d007476"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:25:00 GMT + - Wed, 24 Feb 2021 09:47:22 GMT ms-cv: - - 9xbaB/WHXkKzoHd2WO9bWA.0 + - m/UtY30TjUaOf31Jn9FYAw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 35ms status: - code: 200 - message: OK + code: 201 + message: Created - request: body: '{"scopes": ["chat"]}' headers: @@ -132,30 +142,32 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Feb 2021 23:25:02 GMT + - Wed, 24 Feb 2021 09:47:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 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 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:25:00.4460578+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:22.5170859+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Feb 2021 23:25:01 GMT + - Wed, 24 Feb 2021 09:47:22 GMT ms-cv: - - S9tEyVnz6UCRoXkZtHAmJQ.0 + - L4zsOOnVoUq/S+uMczWpCA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 97ms + - 131ms status: code: 200 message: OK @@ -165,30 +177,32 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-ID: - - 5344baaa-3075-4ee4-8584-1f1266d2f48f + repeatability-Request-Id: + - 693f7b35-917b-4b33-91c6-52fdaa102059 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:c1g_oYg7_vPsF712L8A4rTSaGthY3oPMWbFopDEKJ-Q1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-01T23:25:02Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffcb-8c56-1db7-3a3a0d002bc4"}}' + body: '{"chatThread": {"id": "19:ZSmh3Qy6LNKt6CC_jGMNCoJr-WpquleubqNtILOyyYc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-24T09:47:23Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 01 Feb 2021 23:25:02 GMT - ms-cv: 8nmV+pdLDUajx3HByK3wAw.0 + date: Wed, 24 Feb 2021 09:47:24 GMT + ms-cv: /dR1EmDz5EuHivltb5UC2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1336ms + x-processing-time: 898ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - request: body: '{"topic": "update topic"}' headers: @@ -201,20 +215,20 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:25:03 GMT - ms-cv: fCHD61AmB0iauk0cKu51jA.0 + date: Wed, 24 Feb 2021 09:47:24 GMT + ms-cv: 01SKfh2oCUaJinYawoZIPQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 519ms + x-processing-time: 388ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: @@ -223,25 +237,25 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Mon, 01 Feb 2021 23:25:03 GMT - ms-cv: 622slNwA/0GD/HwYJmKGyg.0 + date: Wed, 24 Feb 2021 09:47:25 GMT + ms-cv: 03IhyRJBnUiswyCLRu29dA.0 strict-transport-security: max-age=2592000 - x-processing-time: 343ms + x-processing-time: 345ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -249,13 +263,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:25:04 GMT + - Wed, 24 Feb 2021 09:47:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -263,13 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:25:20 GMT + - Wed, 24 Feb 2021 09:47:41 GMT ms-cv: - - 425u9POIzUiVuM3AMJf4sw.0 + - m+SuOnmAr0eFxE8PUDYbow.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16594ms + - 16348ms status: code: 204 message: No Content @@ -277,7 +293,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -285,13 +301,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Feb 2021 23:25:21 GMT + - Wed, 24 Feb 2021 09:47:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -299,13 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Feb 2021 23:25:37 GMT + - Wed, 24 Feb 2021 09:47:57 GMT ms-cv: - - ooMUGjkXbkqGD3G4ZsL8tg.0 + - c5szeT4o8Eq1Mt8e0HE68Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16964ms + - 16770ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_client.py index bd4e31f61328..b99e4809186f 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -11,10 +11,12 @@ from msrest.serialization import TZ_UTC from azure.communication.chat import ( ChatClient, - ChatThreadParticipant, - CommunicationUserIdentifier, - CommunicationTokenCredential + ChatThreadParticipant ) +from azure.communication.chat._shared.models import( + CommunicationUserIdentifier +) + from unittest_helpers import mock_response from datetime import datetime @@ -26,7 +28,7 @@ class TestChatClient(unittest.TestCase): @classmethod - @patch('azure.communication.chat.CommunicationTokenCredential') + @patch('azure.communication.identity._shared.user_credential.CommunicationTokenCredential') def setUpClass(cls, credential): credential.get_token = Mock(return_value=AccessToken("some_token", datetime.now().replace(tzinfo=TZ_UTC))) TestChatClient.credential = credential @@ -56,13 +58,13 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow() )] try: - chat_thread_client = chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = chat_client.create_chat_thread(topic, participants) except: raised = True raise self.assertFalse(raised, 'Expected is no excpetion raised') - assert chat_thread_client.thread_id == thread_id + assert create_chat_thread_result.chat_thread.id == thread_id def test_create_chat_thread_w_repeatability_request_id(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -90,7 +92,7 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow() )] try: - chat_thread_client = chat_client.create_chat_thread(topic=topic, + create_chat_thread_result = chat_client.create_chat_thread(topic=topic, thread_participants=participants, repeatability_request_id=repeatability_request_id) except: @@ -98,7 +100,7 @@ def mock_send(*_, **__): raise self.assertFalse(raised, 'Expected is no excpetion raised') - assert chat_thread_client.thread_id == thread_id + assert create_chat_thread_result.chat_thread.id == thread_id def test_create_chat_thread_raises_error(self): def mock_send(*_, **__): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index 40376270aed2..97de22c2e85c 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py @@ -7,8 +7,9 @@ from azure.communication.chat.aio import ( ChatClient ) -from azure.communication.chat import ( - ChatThreadParticipant, +from azure.communication.chat import ChatThreadParticipant + +from azure.communication.chat._shared.models import( CommunicationUserIdentifier ) from unittest_helpers import mock_response @@ -49,8 +50,8 @@ async def mock_send(*_, **__): display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic, participants) - assert chat_thread_client.thread_id == thread_id + create_chat_thread_result = await chat_client.create_chat_thread(topic, participants) + assert create_chat_thread_result.chat_thread.id == thread_id @pytest.mark.asyncio async def test_create_chat_thread_w_repeatability_request_id(): @@ -75,10 +76,10 @@ async def mock_send(*_, **__): display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic=topic, + create_chat_thread_result = await chat_client.create_chat_thread(topic=topic, thread_participants=participants, repeatability_request_id=repeatability_request_id) - assert chat_thread_client.thread_id == thread_id + assert create_chat_thread_result.chat_thread.id == thread_id @pytest.mark.asyncio async def test_create_chat_thread_raises_error(): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py index 92877aa72f92..70bf5ea4d58f 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py @@ -12,10 +12,10 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient +from azure.communication.chat._shared.user_credential import CommunicationTokenCredential +from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions, ChatThreadParticipant ) from azure.communication.chat._shared.utils import parse_connection_str @@ -71,8 +71,8 @@ def _create_thread(self, repeatability_request_id=None): display_name='name', share_history_time=share_history_time )] - chat_thread_client = self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) - self.thread_id = chat_thread_client.thread_id + create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) + self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only def test_create_chat_thread(self): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py index a9af97f0a116..3fd5d6cf34d9 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py @@ -11,10 +11,10 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient +from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential +from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( - ChatClient, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions + ChatClient ) from azure.communication.chat import ( ChatThreadParticipant @@ -68,8 +68,8 @@ async def _create_thread(self, repeatability_request_id=None): display_name='name', share_history_time=share_history_time )] - chat_thread_client = await self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) - self.thread_id = chat_thread_client.thread_id + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) + self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test 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 ec8ea2974dee..4b78c0e05854 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 @@ -12,10 +12,11 @@ from azure.communication.chat import ( ChatThreadClient, ChatThreadParticipant, - CommunicationUserIdentifier, - CommunicationTokenCredential, ChatMessageType ) +from azure.communication.chat._shared.models import( + CommunicationUserIdentifier +) from unittest_helpers import mock_response try: @@ -25,7 +26,7 @@ class TestChatThreadClient(unittest.TestCase): @classmethod - @patch('azure.communication.chat.CommunicationTokenCredential') + @patch('azure.communication.identity._shared.user_credential.CommunicationTokenCredential') def setUpClass(cls, credential): credential.get_token = Mock(return_value=AccessToken("some_token", datetime.now().replace(tzinfo=TZ_UTC))) TestChatThreadClient.credential = credential 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 88bd14bbca6c..3b7fa8a88af3 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 @@ -9,9 +9,11 @@ from azure.communication.chat.aio import ChatThreadClient from azure.communication.chat import ( ChatThreadParticipant, - CommunicationUserIdentifier, ChatMessageType ) +from azure.communication.chat._shared.models import( + CommunicationUserIdentifier +) from unittest_helpers import mock_response from azure.core.exceptions import HttpResponseError 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 536267bc08fd..2ffa1c12e58a 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 @@ -11,10 +11,10 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient +from azure.communication.chat._shared.user_credential import CommunicationTokenCredential +from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions, ChatThreadParticipant, ChatMessageType ) @@ -81,7 +81,8 @@ def _create_thread( display_name='name', share_history_time=share_history_time )] - self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants) + self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id def _create_thread_w_two_users( @@ -104,7 +105,8 @@ def _create_thread_w_two_users( share_history_time=share_history_time ) ] - self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants) + self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id def _send_message(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 6245f8733702..ca4348f0b552 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 @@ -10,10 +10,10 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient +from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential +from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( - ChatClient, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions + ChatClient ) from azure.communication.chat import ( ChatThreadParticipant, @@ -80,7 +80,8 @@ async def _create_thread(self): display_name='name', share_history_time=share_history_time )] - self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants) + self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id async def _create_thread_w_two_users(self): @@ -100,7 +101,8 @@ async def _create_thread_w_two_users(self): share_history_time=share_history_time ) ] - self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants) + self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id From 0f19fdb8df9e438b4993c695d94bf722933c41eb Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 24 Feb 2021 12:01:29 -0800 Subject: [PATCH 05/16] pylint-changes --- .../communication/chat/_chat_thread_client.py | 3 +-- .../azure/communication/chat/_models.py | 27 ++++++++++--------- .../azure/communication/chat/_utils.py | 6 ++--- .../chat/aio/_chat_thread_client_async.py | 3 +-- 4 files changed, 19 insertions(+), 20 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 875eaebcb8b5..72998b64ac39 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 @@ -575,8 +575,7 @@ def remove_participant( return self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, - participant_communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(user), - # pylint:disable=protected-access + participant_communication_identifier=CommunicationUserIdentifierConverter.to_identifier_model(user), **kwargs) def close(self): diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index 8cc6ca330fcf..ef2baf193d9f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -5,10 +5,12 @@ # ------------------------------------ from ._generated.models import ChatParticipant as ChatParticipantAutorest -from ._shared.models import CommunicationUserIdentifier from ._generated.models import ChatMessageType from ._utils import CommunicationUserIdentifierConverter +# pylint: disable=unused-import,ungrouped-imports +from ._shared.models import CommunicationUserIdentifier + class ChatThreadParticipant(object): """A participant of the chat thread. @@ -36,16 +38,15 @@ def __init__( @classmethod def _from_generated(cls, chat_thread_participant): return cls( - user=CommunicationUserIdentifierConverter._from_identifier_model( - chat_thread_participant.communication_identifier), # pylint:disable=protected-access + user=CommunicationUserIdentifierConverter.from_identifier_model( + chat_thread_participant.communication_identifier), display_name=chat_thread_participant.display_name, share_history_time=chat_thread_participant.share_history_time ) def _to_generated(self): return ChatParticipantAutorest( - communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(self.user), - # pylint:disable=protected-access + communication_identifier=CommunicationUserIdentifierConverter.to_identifier_model(self.user), display_name=self.display_name, share_history_time=self.share_history_time ) @@ -113,8 +114,8 @@ def _from_generated(cls, chat_message): sender_communication_identifier = chat_message.sender_communication_identifier if sender_communication_identifier is not None: - sender_communication_identifier = CommunicationUserIdentifierConverter._from_identifier_model( - chat_message.sender_communication_identifier) # pylint:disable=protected-access + sender_communication_identifier = CommunicationUserIdentifierConverter.from_identifier_model( + chat_message.sender_communication_identifier) return cls( id=chat_message.id, @@ -168,8 +169,8 @@ def _from_generated(cls, chat_message_content): initiator = chat_message_content.initiator_communication_identifier # check if initiator is populated if initiator is not None: - initiator = CommunicationUserIdentifierConverter._from_identifier_model( - chat_message_content.initiator_communication_identifier) # pylint:disable=protected-access + initiator = CommunicationUserIdentifierConverter.from_identifier_model( + chat_message_content.initiator_communication_identifier) return cls( message=chat_message_content.message, @@ -212,8 +213,8 @@ def _from_generated(cls, chat_thread): created_by = chat_thread.created_by_communication_identifier if created_by is not None: - created_by = CommunicationUserIdentifierConverter._from_identifier_model( - chat_thread.created_by_communication_identifier) # pylint:disable=protected-access + created_by = CommunicationUserIdentifierConverter.from_identifier_model( + chat_thread.created_by_communication_identifier) return cls( id=chat_thread.id, @@ -252,8 +253,8 @@ def _from_generated(cls, read_receipt): sender = read_receipt.sender_communication_identifier if sender is not None: - sender = CommunicationUserIdentifierConverter._from_identifier_model( - read_receipt.sender_communication_identifier) # pylint:disable=protected-access + sender = CommunicationUserIdentifierConverter.from_identifier_model( + read_receipt.sender_communication_identifier) return cls( sender=sender, diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index 6101fa0683cb..b71264c1624c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -17,7 +17,7 @@ class CommunicationUserIdentifierConverter(object): """ @classmethod - def _to_identifier_model(cls, communicationIdentifier): + def to_identifier_model(cls, communicationIdentifier): """ Util function to convert the Communication identifier into CommunicationIdentifierModel @@ -31,7 +31,7 @@ def _to_identifier_model(cls, communicationIdentifier): return CommunicationUserIdentifierSerializer.serialize(communicationIdentifier) @classmethod - def _from_identifier_model(cls, identifierModel): + def from_identifier_model(cls, identifierModel): """ Util function to convert the CommunicationIdentifierModel into Communication Identifier @@ -41,4 +41,4 @@ def _from_identifier_model(cls, identifierModel): :rtype: Union[CommunicationUserIdentifier, CommunicationPhoneNumberIdentifier] :rasies: ValueError """ - return CommunicationUserIdentifierSerializer.deserialize(identifierModel) \ No newline at end of file + return CommunicationUserIdentifierSerializer.deserialize(identifierModel) 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 f922c541e467..2e3a6a2facbc 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 @@ -560,8 +560,7 @@ async def remove_participant( return await self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, - participant_communication_identifier=CommunicationUserIdentifierConverter._to_identifier_model(user), - # pylint:disable=protected-access + participant_communication_identifier=CommunicationUserIdentifierConverter.to_identifier_model(user), **kwargs) async def close(self) -> None: From 8d55449eed6afd529eec991377c23999a406ca78 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Wed, 24 Feb 2021 12:40:12 -0800 Subject: [PATCH 06/16] pylint changes --- .../azure/communication/chat/_models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index ef2baf193d9f..6aa6fb18b30b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -161,8 +161,10 @@ def __init__( def _from_generated(cls, chat_message_content): participants_list = chat_message_content.participants if participants_list is not None and len(participants_list) > 0: - participants = [ChatThreadParticipant._from_generated(participant) for participant in - participants_list] # pylint:disable=protected-access + participants = [ + ChatThreadParticipant._from_generated(participant) for participant in # pylint:disable=protected-access + participants_list + ] else: participants = [] From 717eea91d383863d7082326d51298e5b457f30af Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 25 Feb 2021 21:57:04 -0800 Subject: [PATCH 07/16] Method signature changed for add_pariticipant and add_participants - add_participant - AddChatParticipantsResult -> tuple(ChatThreadParticipant, CommunicationError) - add_participants - AddChatParticipantsResult -> list(tuple(ChatThreadParticipant, CommunicationError)) - unit tests modified as per signature change - CommunicationErrorResponseConverter added to cosolidate list(ChatThreadParticipant) and list(CommunicationError) into list(tuple(ChatThreadParticipant, CommunicationError)) - e2e tests modified as per signature change --- .../azure/communication/chat/__init__.py | 6 +- .../azure/communication/chat/_chat_client.py | 32 +++---- .../communication/chat/_chat_thread_client.py | 73 +++++++++++++--- .../azure/communication/chat/_utils.py | 47 ++++++++++ .../chat/aio/_chat_client_async.py | 10 --- .../chat/aio/_chat_thread_client_async.py | 75 +++++++++++++--- .../tests/test_chat_thread_client.py | 87 ++++++++++++++++++- .../tests/test_chat_thread_client_async.py | 82 +++++++++++++++++ .../tests/test_chat_thread_client_e2e.py | 11 ++- .../test_chat_thread_client_e2e_async.py | 10 ++- 10 files changed, 372 insertions(+), 61 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py index d2be3e6596ce..ec36455a5736 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -6,7 +6,8 @@ ChatThreadInfo, ChatMessageType, CreateChatThreadResult, - AddChatParticipantsResult + AddChatParticipantsResult, + CommunicationError ) from ._models import ( @@ -29,6 +30,7 @@ 'ChatThreadParticipant', 'ChatMessageType', 'CreateChatThreadResult', - 'AddChatParticipantsResult' + 'AddChatParticipantsResult', + 'CommunicationError' ] __version__ = VERSION diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index 61a936787c1d..162e1480c317 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -128,15 +128,16 @@ def create_chat_thread( :param topic: Required. The thread topic. :type topic: str - :param thread_participants: Required. Participants to be added to the thread. - :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :param repeatability_request_id: If specified, the client directs that the request is + :keyword thread_participants: Optional. Participants + to be added to the thread. + :paramtype thread_participants: list[~azure.communication.chat.ChatThreadParticipant] + :keyword repeatability_request_id: Optional. If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, globally unique for all time, identifier for the request. If not specified, a new unique id would be generated. - :type repeatability_request_id: str + :paramtype repeatability_request_id: str :return: CreateChatThreadResult :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -152,29 +153,22 @@ def create_chat_thread( """ if not topic: raise ValueError("topic cannot be None.") - if not thread_participants: - raise ValueError("List of ChatThreadParticipant cannot be None.") + + repeatability_request_id = kwargs.pop('repeatability_request_id', None) if repeatability_request_id is None: repeatability_request_id = str(uuid4()) - participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - create_thread_request = \ - CreateChatThreadRequest(topic=topic, participants=participants) + thread_participants = kwargs.pop('thread_participants', None) + participants = [] + if thread_participants is not None: + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + + create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) create_chat_thread_result = self._client.chat.create_chat_thread( create_chat_thread_request=create_thread_request, repeatability_request_id=repeatability_request_id, **kwargs) - if hasattr(create_chat_thread_result, 'errors') and \ - create_chat_thread_result.errors is not None: - participants = \ - create_chat_thread_result.errors.invalid_participants - errors = [] - for participant in participants: - errors.append('participant ' + participant.target + - ' failed to join thread due to: ' + participant.message) - raise RuntimeError(errors) - return create_chat_thread_result @distributed_trace 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 72998b64ac39..4d04a3f6a4cf 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 @@ -29,7 +29,11 @@ ChatMessageReadReceipt ) -from ._utils import _to_utc_datetime, CommunicationUserIdentifierConverter # pylint: disable=unused-import +from ._utils import ( # pylint: disable=unused-import + _to_utc_datetime, + CommunicationUserIdentifierConverter, + CommunicationErrorResponseConverter +) from ._version import SDK_MONIKER if TYPE_CHECKING: @@ -479,14 +483,16 @@ def add_participant( thread_participant, # type: ChatThreadParticipant **kwargs # type: Any ): - # type: (...) -> AddChatParticipantsResult + # type: (...) -> tuple(ChatThreadParticipant, CommunicationError) """Adds single thread participant to a thread. If participant already exist, no change occurs. + If participant is added successfully, a tuple of (None, None) is expected. + Failure to add participant to thread returns tuple of (chat_thread_participant, communication_error). + :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant - :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.AddChatParticipantsResult + :return: Tuple(ChatThreadParticipant, CommunicationError) + :rtype: tuple(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError) :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -497,6 +503,13 @@ def add_participant( :language: python :dedent: 8 :caption: Adding single participant to chat thread. + + .. literalinclude:: ../samples/chat_thread_client_sample.py + :start-after: [START add_participant_w_failed_participant] + :end-before: [END add_participant_w_failed_participant] + :language: python + :dedent: 8 + :caption: Retry adding participant to chat thread after initial failure. """ if not thread_participant: raise ValueError("thread_participant cannot be None.") @@ -504,26 +517,45 @@ def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.chat_thread.add_chat_participants( + add_chat_participants_result = self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) + response = [] + failed_participant = None + communication_error = None + if hasattr(add_chat_participants_result, 'errors') and \ + add_chat_participants_result.errors is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=[thread_participant], + communication_errors=add_chat_participants_result.errors.invalid_participants + ) + + if len(response) != 0: + failed_participant = response[0][0] + communication_error = response[0][1] + + return (failed_participant, communication_error) + @distributed_trace def add_participants( self, thread_participants, # type: list[ChatThreadParticipant] **kwargs # type: Any ): - # type: (...) -> AddChatParticipantsResult + # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] """Adds thread participants to a thread. If participants already exist, no change occurs. + If all participants are added successfully, then an empty list is returned; + otherwise, a list of tuple(chat_thread_participant, communincation_error) is returned, + of failed participants and its respective error + :param thread_participants: Required. Thread participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :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.AddChatParticipantsResult - :raises: ~azure.core.exceptions.HttpResponseError, ValueError + :return: List[Tuple(ChatThreadParticipant, CommunicationError)] + :rtype: list[(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)] + :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError .. admonition:: Example: @@ -533,6 +565,13 @@ def add_participants( :language: python :dedent: 8 :caption: Adding participants to chat thread. + + .. literalinclude:: ../samples/chat_thread_client_sample.py + :start-after: [START add_participants_w_failed_participants] + :end-before: [END add_participants_w_failed_participants] + :language: python + :dedent: 8 + :caption: Retry adding participants to chat thread after initial failure. """ if not thread_participants: raise ValueError("thread_participants cannot be None.") @@ -540,11 +579,21 @@ def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.chat_thread.add_chat_participants( + add_chat_participants_result = self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) + response = [] + if hasattr(add_chat_participants_result, 'errors') and \ + add_chat_participants_result.errors is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=thread_participants, + communication_errors=add_chat_participants_result.errors.invalid_participants + ) + + return response + @distributed_trace def remove_participant( self, diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index b71264c1624c..6a915affaf95 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -42,3 +42,50 @@ def from_identifier_model(cls, identifierModel): :rasies: ValueError """ return CommunicationUserIdentifierSerializer.deserialize(identifierModel) + +class CommunicationErrorResponseConverter(object): + """ + Util to convert to List[Tuple[ChatThreadParticipant, Optional[AddChatParticipantsErrors]] + + This is a one-way converter for converting the follwing: + - AddChatParticipantsResult -> List[Tuple[ChatThreadParticipant, AddChatParticipantsErrors] + - CreateChatThreadResult -> List[Tuple[ChatThreadParticipant, AddChatParticipantsErrors] + """ + + @classmethod + def _convert(cls, participants, communication_errors): + # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] + """ + Util function to convert AddChatParticipantsResult. + + Function used to consolidate List[ChatThreadParticipant] and AddChatParticipantsResult + into a list of tuples of ChatThreadParticipant -> CommunicationError. + + :param participants: Request object for adding participants to thread + :type: participants: list(~azure.communication.chat.ChatThreadParticipant) + :param communication_errors: list of CommunicationError + :type communication_errors: list[~azure.communication.chat.CommunicationError] + :return: A list of (ChatThreadParticipant, CommunicationError) + :rtype: list[(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)] + """ + def create_dict(participants): + # type: (...) -> Dict(str, ChatThreadParticipant) + """ + Create dictionary of id -> ChatThreadParticipant + """ + result = {} + for participant in participants: + result[participant.user.identifier]=participant + return result + + _thread_participants_dict = create_dict(participants=participants) + + failed_chat_thread_participants = [] + + if communication_errors is not None: + for communication_error in communication_errors: + _thread_participant = _thread_participants_dict.get(communication_error.target) + failed_chat_thread_participants.append((_thread_participant, communication_error)) + + return failed_chat_thread_participants + diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index 3d0c7f8438ec..c29c16215503 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -171,16 +171,6 @@ async def create_chat_thread( create_chat_thread_request=create_thread_request, repeatability_request_id=repeatability_request_id, **kwargs) - if hasattr(create_chat_thread_result, 'errors') \ - and create_chat_thread_result.errors is not None: - participants = \ - create_chat_thread_result.errors.invalid_participants - errors = [] - for participant in participants: - errors.append('participant ' + participant.target + - ' failed to join thread due to: ' + participant.message) - raise RuntimeError(errors) - return create_chat_thread_result @distributed_trace_async 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 2e3a6a2facbc..4d76bda1493e 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 @@ -28,7 +28,8 @@ UpdateChatThreadRequest, SendChatMessageResult, ChatMessageType, - AddChatParticipantsResult + AddChatParticipantsResult, + CommunicationError ) from .._models import ( ChatThreadParticipant, @@ -36,7 +37,11 @@ ChatMessageReadReceipt ) from .._shared.models import CommunicationUserIdentifier -from .._utils import _to_utc_datetime, CommunicationUserIdentifierConverter # pylint: disable=unused-import +from .._utils import ( # pylint: disable=unused-import + _to_utc_datetime, + CommunicationUserIdentifierConverter, + CommunicationErrorResponseConverter +) from .._version import SDK_MONIKER @@ -466,14 +471,17 @@ async def add_participant( self, thread_participant: ChatThreadParticipant, **kwargs - ) -> AddChatParticipantsResult: + ) -> (ChatThreadParticipant, CommunicationError): """Adds single thread participant to a thread. If participant already exist, no change occurs. + If participant is added successfully, a tuple of (None, None) is expected. + Failure to add participant to thread returns tuple of (thread_participant, communication_error). + :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant :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.AddChatParticipantsResult + :return: Tuple(ChatThreadParticipant, CommunicationError) + :rtype: (~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError) :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -484,6 +492,13 @@ async def add_participant( :language: python :dedent: 12 :caption: Adding single participant to chat thread. + + .. literalinclude:: ../samples/chat_thread_client_sample_async.py + :start-after: [START add_participant_w_failed_participant] + :end-before: [END add_participant_w_failed_participant] + :language: python + :dedent: 12 + :caption: Retry adding participant to chat thread after initial failure. """ if not thread_participant: raise ValueError("thread_participant cannot be None.") @@ -491,25 +506,44 @@ async def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.chat_thread.add_chat_participants( + add_chat_participants_result = await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) + response = [] + failed_participant = None + communication_error = None + if hasattr(add_chat_participants_result, 'errors') and \ + add_chat_participants_result.errors is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=[thread_participant], + communication_errors=add_chat_participants_result.errors.invalid_participants + ) + + if len(response) != 0: + failed_participant = response[0][0] + communication_error = response[0][1] + + return (failed_participant, communication_error) + @distributed_trace_async async def add_participants( self, thread_participants: List[ChatThreadParticipant], **kwargs - ) -> AddChatParticipantsResult: + ) -> list((ChatThreadParticipant, CommunicationError)): """Adds thread participants to a thread. If participants already exist, no change occurs. + If all participants are added successfully, then an empty list is returned; + otherwise, a list of tuple(chat_thread_participant, communincation_error) is returned, + of failed participants and its respective error + :param thread_participants: Required. Thread participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :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.AddChatParticipantsResult - :raises: ~azure.core.exceptions.HttpResponseError, ValueError + :return: List[(ChatThreadParticipant, CommunicationError)] + :rtype: list((~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)) + :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError .. admonition:: Example: @@ -519,6 +553,13 @@ async def add_participants( :language: python :dedent: 12 :caption: Adding participants to chat thread. + + .. literalinclude:: ../samples/chat_thread_client_sample_async.py + :start-after: [START add_participants_w_failed_participants] + :end-before: [END add_participants_w_failed_participants] + :language: python + :dedent: 12 + :caption: Retry adding participants to chat thread after initial failure. """ if not thread_participants: raise ValueError("thread_participants cannot be None.") @@ -526,11 +567,21 @@ async def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.chat_thread.add_chat_participants( + add_chat_participants_result = await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) + response = [] + if hasattr(add_chat_participants_result, 'errors') and \ + add_chat_participants_result.errors is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=thread_participants, + communication_errors=add_chat_participants_result.errors.invalid_participants + ) + + return response + @distributed_trace_async async def remove_participant( self, 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 4b78c0e05854..709beb62f0f5 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 @@ -448,11 +448,49 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - chat_thread_client.add_participant(new_participant) + result = chat_thread_client.add_participant(new_participant) except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') + self.assertTrue(len(result) == 0) + + def test_add_participant_w_failed_participants_returns_tuple(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + error_message = "some error message" + + def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={ + "errors": { + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] + } + }) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + + try: + failed_participant, communication_error = chat_thread_client.add_participant(new_participant) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + self.assertEqual(new_participant.user.identifier, failed_participant.user.identifier) + self.assertEqual(new_participant.display_name, failed_participant.display_name) + self.assertEqual(new_participant.share_history_time, failed_participant.share_history_time) + self.assertEqual(error_message, communication_error.message) def test_add_participants(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -470,11 +508,56 @@ def mock_send(*_, **__): participants = [new_participant] try: - chat_thread_client.add_participants(participants) + result = chat_thread_client.add_participants(participants) except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') + self.assertTrue(len(result) == 0) + + def test_add_participants_w_failed_participants_returns_nonempty_list(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + error_message = "some error message" + + def mock_send(*_, **__): + return mock_response(status_code=201,json_payload={ + "errors": { + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] + } + }) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + participants = [new_participant] + + try: + result = chat_thread_client.add_participants(participants) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + self.assertTrue(len(result) == 1) + + failed_participant = result[0][0] + communication_error = result[0][1] + + self.assertEqual(new_participant.user.identifier, failed_participant.user.identifier) + self.assertEqual(new_participant.display_name, failed_participant.display_name) + self.assertEqual(new_participant.share_history_time, failed_participant.share_history_time) + self.assertEqual(error_message, communication_error.message) + def test_remove_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 3b7fa8a88af3..a91b0f8c8d10 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 @@ -471,6 +471,44 @@ async def mock_send(*_, **__): assert raised == False +@pytest.mark.asyncio +async def test_add_participant_w_failed_participants_returns_tuple(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + error_message = "some error message" + + async def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={ + "errors": { + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] + } + }) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + + try: + failed_participant, communication_error = await chat_thread_client.add_participant(new_participant) + except: + raised = True + + assert raised == False + assert new_participant.user.identifier == failed_participant.user.identifier + assert new_participant.display_name == failed_participant.display_name + assert new_participant.share_history_time == failed_participant.share_history_time + assert error_message == communication_error.message + @pytest.mark.asyncio async def test_add_participants(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -494,6 +532,50 @@ async def mock_send(*_, **__): assert raised == False +@pytest.mark.asyncio +async def test_add_participants_w_failed_participants_returns_nonempty_list(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + error_message = "some error message" + + async def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={ + "errors": { + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] + } + }) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + participants = [new_participant] + + try: + result = await chat_thread_client.add_participants(participants) + except: + raised = True + + assert raised == False + assert len(result) == 1 + + failed_participant = result[0][0] + communication_error = result[0][1] + + assert new_participant.user.identifier == failed_participant.user.identifier + assert new_participant.display_name == failed_participant.display_name + assert new_participant.share_history_time == failed_participant.share_history_time + assert error_message == communication_error.message + @pytest.mark.asyncio async def test_remove_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 2ffa1c12e58a..a7d4c279c37c 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 @@ -210,7 +210,10 @@ def test_add_participant(self): display_name='name', share_history_time=share_history_time) - self.chat_thread_client.add_participant(new_participant) + participant, error = self.chat_thread_client.add_participant(new_participant) + + assert participant is None + assert error is None @pytest.mark.live_test_only def test_add_participants(self): @@ -224,7 +227,11 @@ def test_add_participants(self): share_history_time=share_history_time) participants = [new_participant] - self.chat_thread_client.add_participants(participants) + failed_participants = self.chat_thread_client.add_participants(participants) + + # no error occured while adding participants + assert len(failed_participants) == 0 + @pytest.mark.live_test_only def test_remove_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 ca4348f0b552..b9a7b9411e59 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 @@ -262,7 +262,10 @@ async def test_add_participant(self): display_name='name', share_history_time=share_history_time) - await self.chat_thread_client.add_participant(new_participant) + participant, error = await self.chat_thread_client.add_participant(new_participant) + + assert participant is None + assert error is None if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) @@ -282,7 +285,10 @@ async def test_add_participants(self): share_history_time=share_history_time) participants = [new_participant] - await self.chat_thread_client.add_participants(participants) + failed_participants = await self.chat_thread_client.add_participants(participants) + + # no error occured while adding participants + assert len(failed_participants) == 0 if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) From d5ed0cdcf7cf581473ce66cae0486c0f554b4e3c Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Fri, 26 Feb 2021 01:20:31 -0800 Subject: [PATCH 08/16] CreateChatThreadResult modified to handle partial errors in batch calls with ease - CreateChatThreadResult -> attributes changed to - chat_thread -> ChatThread (no change) - Errors -> CreateChatThreadErrors -> list(tuple(ChatThreadParticipant, CommunicationError)) - create_chat_thread -> `thread_participants` and `repeatability_request_id` changed to keyword arguments - Modify unit tests to capture method signature modifications - Modify e2e tests to capture method signature modifications --- .../azure/communication/chat/__init__.py | 4 +- .../azure/communication/chat/_chat_client.py | 31 +++++++++++--- .../azure/communication/chat/_models.py | 17 ++++++++ .../chat/aio/_chat_client_async.py | 40 ++++++++++++++----- .../tests/test_chat_client.py | 2 +- .../tests/test_chat_client_async.py | 2 +- .../tests/test_chat_client_e2e.py | 13 +++++- .../tests/test_chat_client_e2e_async.py | 19 ++++++++- .../tests/test_chat_thread_client.py | 5 ++- .../tests/test_chat_thread_client_async.py | 4 +- .../tests/test_chat_thread_client_e2e.py | 4 +- .../test_chat_thread_client_e2e_async.py | 4 +- 12 files changed, 116 insertions(+), 29 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py index ec36455a5736..5728a39476d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -5,7 +5,6 @@ SendChatMessageResult, ChatThreadInfo, ChatMessageType, - CreateChatThreadResult, AddChatParticipantsResult, CommunicationError ) @@ -15,7 +14,8 @@ ChatMessage, ChatThread, ChatMessageReadReceipt, - ChatMessageContent + ChatMessageContent, + CreateChatThreadResult ) __all__ = [ diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index 162e1480c317..b59993d2d11c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -19,9 +19,14 @@ from ._generated.models import CreateChatThreadRequest from ._models import ( ChatThread, - ChatThreadParticipant + ChatThreadParticipant, + CreateChatThreadResult +) +from ._utils import ( + _to_utc_datetime, # pylint: disable=unused-import + return_response, + CommunicationErrorResponseConverter ) -from ._utils import _to_utc_datetime, return_response # pylint: disable=unused-import from ._version import SDK_MONIKER if TYPE_CHECKING: @@ -119,8 +124,6 @@ def get_chat_thread_client( @distributed_trace def create_chat_thread( self, topic, # type: str - thread_participants, # type: list[ChatThreadParticipant] - repeatability_request_id=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> CreateChatThreadResult @@ -128,8 +131,7 @@ def create_chat_thread( :param topic: Required. The thread topic. :type topic: str - :keyword thread_participants: Optional. Participants - to be added to the thread. + :keyword thread_participants: Optional. Participants to be added to the thread. :paramtype thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :keyword repeatability_request_id: Optional. If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same @@ -169,6 +171,23 @@ def create_chat_thread( create_chat_thread_request=create_thread_request, repeatability_request_id=repeatability_request_id, **kwargs) + + errors = None + if hasattr(create_chat_thread_result, 'errors') and \ + create_chat_thread_result.errors is not None: + errors = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=[thread_participants], + communication_errors=create_chat_thread_result.errors.invalid_participants + ) + + chat_thread = ChatThread._from_generated( + create_chat_thread_result.chat_thread) # pylint:disable=protected-access + + create_chat_thread_result = CreateChatThreadResult( + chat_thread=chat_thread, + errors=errors + ) + return create_chat_thread_result @distributed_trace diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index 6aa6fb18b30b..515b89e2b834 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -263,3 +263,20 @@ def _from_generated(cls, read_receipt): chat_message_id=read_receipt.chat_message_id, read_on=read_receipt.read_on ) + +class CreateChatThreadResult(object): + """Result of the create chat thread operation. + + :param chat_thread: Chat thread. + :type chat_thread: ~azure.communication.chat.ChatThread + :param errors: Errors encountered during the creation of the chat thread. + :type errors: list((~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)) + """ + + def __init__( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.chat_thread = kwargs['chat_thread'] + self.errors = kwargs.get('errors', None) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index c29c16215503..c9c3dee6c230 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -29,7 +29,8 @@ ) from .._models import ( ChatThread, - ChatThreadParticipant + ChatThreadParticipant, + CreateChatThreadResult ) from .._utils import _to_utc_datetime, return_response # pylint: disable=unused-import from .._version import SDK_MONIKER @@ -123,8 +124,6 @@ def get_chat_thread_client( @distributed_trace_async async def create_chat_thread( self, topic: str, - thread_participants: List[ChatThreadParticipant], - repeatability_request_id: Optional[str] = None, **kwargs ) -> ChatThreadClient: @@ -134,15 +133,15 @@ async def create_chat_thread( :param topic: Required. The thread topic. :type topic: str - :param thread_participants: Required. Participants to be added to the thread. - :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :param repeatability_request_id: If specified, the client directs that the request is + :keyword thread_participants: Optional. Participants to be added to the thread. + :paramtype thread_participants: list[~azure.communication.chat.ChatThreadParticipant] + :keyword repeatability_request_id: Optional. If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, globally unique for all time, identifier for the request. If not specified, a new unique id would be generated. - :type repeatability_request_id: str + :paramtype repeatability_request_id: str :return: CreateChatThreadResult :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -158,12 +157,16 @@ async def create_chat_thread( """ if not topic: raise ValueError("topic cannot be None.") - if not thread_participants: - raise ValueError("List of ThreadParticipant cannot be None.") + + repeatability_request_id = kwargs.pop('repeatability_request_id', None) if repeatability_request_id is None: repeatability_request_id = str(uuid4()) - participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + thread_participants = kwargs.pop('thread_participants', None) + participants = [] + if thread_participants is not None: + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + create_thread_request = \ CreateChatThreadRequest(topic=topic, participants=participants) @@ -171,6 +174,23 @@ async def create_chat_thread( create_chat_thread_request=create_thread_request, repeatability_request_id=repeatability_request_id, **kwargs) + + errors = None + if hasattr(create_chat_thread_result, 'errors') and \ + create_chat_thread_result.errors is not None: + errors = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=[thread_participants], + communication_errors=create_chat_thread_result.errors.invalid_participants + ) + + chat_thread = ChatThread._from_generated( + create_chat_thread_result.chat_thread) # pylint:disable=protected-access + + create_chat_thread_result = CreateChatThreadResult( + chat_thread=chat_thread, + errors=errors + ) + return create_chat_thread_result @distributed_trace_async diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_client.py index b99e4809186f..3c9bcd0f2d34 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -58,7 +58,7 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow() )] try: - create_chat_thread_result = chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = chat_client.create_chat_thread(topic, thread_participants=participants) except: raised = True raise diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index 97de22c2e85c..482075cb50cf 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py @@ -50,7 +50,7 @@ async def mock_send(*_, **__): display_name='name', share_history_time=datetime.utcnow() )] - create_chat_thread_result = await chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await chat_client.create_chat_thread(topic, thread_participants=participants) assert create_chat_thread_result.chat_thread.id == thread_id @pytest.mark.asyncio diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py index 70bf5ea4d58f..86aece83b74a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py @@ -71,7 +71,9 @@ def _create_thread(self, repeatability_request_id=None): display_name='name', share_history_time=share_history_time )] - create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) + create_chat_thread_result = self.chat_client.create_chat_thread(topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id) self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only @@ -79,6 +81,15 @@ def test_create_chat_thread(self): self._create_thread() assert self.thread_id is not None + @pytest.mark.live_test_only + def test_create_chat_thread_w_no_participants(self): + # create chat thread + topic = "test topic" + create_chat_thread_result = self.chat_client.create_chat_thread(topic) + self.thread_id = create_chat_thread_result.chat_thread.id + assert create_chat_thread_result.chat_thread is not None + assert create_chat_thread_result.errors is None + @pytest.mark.live_test_only def test_create_chat_thread_w_repeatability_request_id(self): repeatability_request_id = str(uuid4()) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py index 3fd5d6cf34d9..9c6b71b211bf 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py @@ -68,7 +68,9 @@ async def _create_thread(self, repeatability_request_id=None): display_name='name', share_history_time=share_history_time )] - create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id) self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only @@ -82,6 +84,21 @@ async def test_create_chat_thread_async(self): if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) + @pytest.mark.live_test_only + @AsyncCommunicationTestCase.await_prepared_test + async def test_create_chat_thread_w_no_participants_async(self): + async with self.chat_client: + # create chat thread + topic = "test topic" + create_chat_thread_result = await self.chat_client.create_chat_thread(topic) + + assert create_chat_thread_result.chat_thread is not None + assert create_chat_thread_result.errors is None + + # delete created users and chat threads + if not self.is_playback(): + await self.chat_client.delete_chat_thread(create_chat_thread_result.chat_thread.id) + @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test async def test_create_chat_thread_w_repeatability_request_id_async(self): 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 709beb62f0f5..e26dbb8a2417 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 @@ -448,12 +448,13 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - result = chat_thread_client.add_participant(new_participant) + failed_participant, communication_error = chat_thread_client.add_participant(new_participant) except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - self.assertTrue(len(result) == 0) + self.assertIsNone(failed_participant) + self.assertIsNone(communication_error) def test_add_participant_w_failed_participants_returns_tuple(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 a91b0f8c8d10..f50d373f44f9 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 @@ -465,11 +465,13 @@ async def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - await chat_thread_client.add_participant(new_participant) + failed_participant, communication_error = await chat_thread_client.add_participant(new_participant) except: raised = True assert raised == False + assert failed_participant is None + assert communication_error is None @pytest.mark.asyncio async def test_add_participant_w_failed_participants_returns_tuple(): 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 a7d4c279c37c..5e340c9b1c8d 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 @@ -81,7 +81,7 @@ def _create_thread( display_name='name', share_history_time=share_history_time )] - create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = self.chat_client.create_chat_thread(topic, thread_participants=participants) self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id @@ -105,7 +105,7 @@ def _create_thread_w_two_users( share_history_time=share_history_time ) ] - create_chat_thread_result = self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = self.chat_client.create_chat_thread(topic, thread_participants=participants) self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id 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 b9a7b9411e59..22ff39c4f605 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 @@ -80,7 +80,7 @@ async def _create_thread(self): display_name='name', share_history_time=share_history_time )] - create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, thread_participants=participants) self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id @@ -101,7 +101,7 @@ async def _create_thread_w_two_users(self): share_history_time=share_history_time ) ] - create_chat_thread_result = await self.chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await self.chat_client.create_chat_thread(topic, thread_participants=participants) self.chat_thread_client = self.chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) self.thread_id = self.chat_thread_client.thread_id From b308b7d4f77c46156706b45a514c7a5e7998edbb Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Fri, 26 Feb 2021 02:05:16 -0800 Subject: [PATCH 09/16] pylint-changes --- .../azure/communication/chat/_chat_client.py | 8 ++++---- .../azure/communication/chat/_utils.py | 3 +-- .../azure/communication/chat/aio/_chat_client_async.py | 6 +++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index b59993d2d11c..d2ace09e4093 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -22,8 +22,8 @@ ChatThreadParticipant, CreateChatThreadResult ) -from ._utils import ( - _to_utc_datetime, # pylint: disable=unused-import +from ._utils import ( # pylint: disable=unused-import + _to_utc_datetime, return_response, CommunicationErrorResponseConverter ) @@ -180,8 +180,8 @@ def create_chat_thread( communication_errors=create_chat_thread_result.errors.invalid_participants ) - chat_thread = ChatThread._from_generated( - create_chat_thread_result.chat_thread) # pylint:disable=protected-access + chat_thread = ChatThread._from_generated( # pylint:disable=protected-access + create_chat_thread_result.chat_thread) create_chat_thread_result = CreateChatThreadResult( chat_thread=chat_thread, diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index 6a915affaf95..bf10eb893c50 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -75,7 +75,7 @@ def create_dict(participants): """ result = {} for participant in participants: - result[participant.user.identifier]=participant + result[participant.user.identifier] = participant return result _thread_participants_dict = create_dict(participants=participants) @@ -88,4 +88,3 @@ def create_dict(participants): failed_chat_thread_participants.append((_thread_participant, communication_error)) return failed_chat_thread_participants - diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index c9c3dee6c230..f0da77194b65 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -32,7 +32,11 @@ ChatThreadParticipant, CreateChatThreadResult ) -from .._utils import _to_utc_datetime, return_response # pylint: disable=unused-import +from .._utils import ( # pylint: disable=unused-import + _to_utc_datetime, + return_response, + CommunicationErrorResponseConverter +) from .._version import SDK_MONIKER From 077f198ef9d44ddd1dc56ee9a60ef4267d81fa21 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Fri, 26 Feb 2021 02:40:47 -0800 Subject: [PATCH 10/16] pylint fixes --- .../azure/communication/chat/aio/_chat_client_async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index f0da77194b65..0b1de86ed0fe 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -187,8 +187,8 @@ async def create_chat_thread( communication_errors=create_chat_thread_result.errors.invalid_participants ) - chat_thread = ChatThread._from_generated( - create_chat_thread_result.chat_thread) # pylint:disable=protected-access + chat_thread = ChatThread._from_generated( # pylint:disable=protected-access + create_chat_thread_result.chat_thread) create_chat_thread_result = CreateChatThreadResult( chat_thread=chat_thread, From 84eb4e2fb4794a0dfe18cfb02dc7c838ea8207ed Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Fri, 26 Feb 2021 04:01:21 -0800 Subject: [PATCH 11/16] README.md update + pylint fixes --- .../azure-communication-chat/README.md | 367 +++++++++++++----- .../azure/communication/chat/_chat_client.py | 1 - 2 files changed, 269 insertions(+), 99 deletions(-) diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index bff18e82150c..6b135425d484 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -44,10 +44,12 @@ it with this token. It is because the initiator of the create request must be in This will allow you to create, get, list or delete chat threads. ```python -from azure.communication.chat import ChatClient, CommunicationTokenCredential +from azure.communication.chat import ChatClient +from azure.communication.identity._shared.user_credential import CommunicationTokenCredential +from azure.communication.identity._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + # Your unique Azure Communication service endpoint endpoint = "https://.communcationservices.azure.com" -token = "" refresh_options = CommunicationTokenRefreshOptions(token) chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) ``` @@ -60,7 +62,8 @@ the chat thread topic, add participants to chat thread, etc. You can get it by creating a new chat thread using ChatClient: ```python -chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) +create_chat_thread_result = chat_client.create_chat_thread(topic) +chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` Additionally, the client can also direct so that the request is repeatable; that is, if the client makes the @@ -69,25 +72,34 @@ the server executing the request multiple times. The value of the Repeatability- representing a client-generated, globally unique for all time, identifier for the request. ```python -chat_thread_client = chat_client.create_chat_thread(topic, thread_participants, repeatability_request_id) +create_chat_thread_result = chat_client.create_chat_thread( + topic, + thread_participants=thread_participants, + repeatability_request_id=repeatability_request_id +) +chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` Alternatively, if you have created a chat thread before and you have its thread_id, you can create it by: ```python -chat_thread_client = chat_client.get_chat_thread_client(thread_id) +chat_thread_client = chat_client.get_chat_thread_client(thread_id) # thread_id is the id of an existing chat thread ``` # Key concepts -A chat conversation is represented by a chat thread. Each user in the thread is called a thread participant. Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. Users also get near real-time updates for when others are typing and when they have read the messages. +A chat conversation is represented by a chat thread. Each user in the thread is called a thread participant. +Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. +Users also get near real-time updates for when others are typing and when they have read the messages. Once you initialized a `ChatClient` class, you can do the following chat operations: ## Create, get, update, and delete threads +Perform CRD(Create-Read-Delete) operations on thread participants + ```Python -create_chat_thread(topic, thread_participants, **kwargs) +create_chat_thread(topic, **kwargs) get_chat_thread(thread_id, **kwargs) list_chat_threads(**kwargs) delete_chat_thread(thread_id, **kwargs) @@ -97,12 +109,16 @@ Once you initialized a `ChatThreadClient` class, you can do the following chat o ## Update thread +Perform Update operation on thread topic + ```python update_topic(topic, **kwargs) ``` ## Send, get, update, and delete messages +Perform CRUD(Create-Read-Update-Delete) operations on messages + ```Python send_message(content, **kwargs) get_message(message_id, **kwargs) @@ -113,14 +129,19 @@ delete_message(message_id, **kwargs) ## Get, add, and remove participants +Perform CRD(Create-Read-Delete) operations on thread participants + ```Python list_participants(**kwargs) +add_participant(thread_participant, **kwargs) add_participants(thread_participants, **kwargs) remove_participant(participant_id, **kwargs) ``` ## Send typing notification +Notify the service of typing notification + ```python send_typing_notification(**kwargs) ``` @@ -147,43 +168,47 @@ The following sections provide several code snippets covering some of the most c ### Create a thread -Use the `create_chat_thread` method to create a chat thread client object. +Use the `create_chat_thread` method to create a chat thread. -- Use `topic` to give a thread topic; -- Use `thread_participants` to list the `ChatThreadParticipant` to be added to the thread; -- Use `repeatability_request_id` to specify the unique identifier for the request. -- `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens - -- `display_name`, optional, is the display name for the thread participant. -- `share_history_time`, optional, time from which the chat history is shared with the participant. +- Use `topic`, required, to give a thread topic; +- Use `thread_participants`, optional, to provide a list the `ChatThreadParticipant` to be added to the thread; + - `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() + from User Access Tokens + + - `display_name`, optional, is the display name for the thread participant. + - `share_history_time`, optional, time from which the chat history is shared with the participant. +- Use `repeatability_request_id`, optional, to specify the unique identifier for the request. -`ChatThreadClient` is the result returned from creating a thread, you can use it to perform other chat operations to this chat thread -```Python -# Without repeatability_request_id +`CreateChatThreadResult` is the result returned from creating a thread, you can use it to fetch the `id` of +the chat thread that got created. This `id` can then be used to fetch a `ChatThreadClient` object using +the `get_chat_thread_client` method. `ChatThreadClient` can be used to perform other chat operations to this chat thread. -from azure.communication.chat import ChatThreadParticipant +```Python +# Without repeatability_request_id and thread_participants topic = "test topic" -thread_participants = [ChatThreadParticipant( - user='', - display_name='name', - share_history_time=datetime.utcnow() -)] - -chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) -thread_id = chat_thread_client.thread_id +create_chat_thread_result = chat_client.create_chat_thread(topic) +chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` ```Python -# With repeatability_request_id - +# With repeatability_request_id and thread_participants +from azure.communication.identity import CommunicationIdentityClient from azure.communication.chat import ChatThreadParticipant import uuid +# create an user +identity_client = CommunicationIdentityClient.from_connection_string('') +user = identity_client.create_user() + +## OR pass existing user +# from azure.communication.identity import CommunicationUserIdentifier +# user_id = 'some_user_id' +# user = CommunicationUserIdentifier(user_id) + + # modify function to implement customer logic def get_unique_identifier_for_request(**kwargs): - res = None - # implement custom logic here res = uuid.uuid4() return res @@ -194,95 +219,135 @@ thread_participants = [ChatThreadParticipant( share_history_time=datetime.utcnow() )] -chat_thread_client = chat_client.create_chat_thread(topic, thread_participants, repeatability_request_id) -thread_id = chat_thread_client.thread_id +# obtains repeatability_request_id using some customer logic +repeatability_request_id = get_unique_identifier_for_request() + +create_chat_thread_result = chat_client.create_chat_thread( + topic, + thread_participants=thread_participants, + repeatability_request_id=repeatability_request_id) +thread_id = create_chat_thread_result.chat_thread.id + +# fetch ChatThreadClient +chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) + +# Additionally, you can also check if all participants were successfully added or not +# and subsequently retry adding the failed participants again +def decide_to_retry(error, **kwargs): + """ + Insert some custom logic to decide if retry is applicable based on error + """ + return True + +retry = [thread_participant for thread_participant, error in create_chat_thread_result.errors if decide_to_retry(error)] +chat_thread_client.add_participants(retry) ``` ### Get a thread -The `get_chat_thread` method retrieves a thread from the service. -`thread_id` is the unique ID of the thread. - +Use `get_chat_thread` method retrieves a `ChatThread` from the service; `thread_id` is the unique ID of the thread. +- Use `thread_id`, required, to specify the unique ID of the thread. ```Python -thread = chat_client.get_chat_thread(thread_id) +chat_thread = chat_client.get_chat_thread(thread_id=thread_id) ``` ### List chat threads -The `list_chat_threads` method retrieves the list of created chat threads +Use `list_chat_threads` method retrieves the list of created chat threads -- `results_per_page`, optional, The maximum number of messages to be returned per page. -- `start_time`, optional, The start time where the range query. +- Use `results_per_page`, optional, The maximum number of messages to be returned per page. +- Use `start_time`, optional, The start time where the range query. An iterator of `[ChatThreadInfo]` is the response returned from listing threads ```python from datetime import datetime, timedelta -chat_client = ChatClient(self.endpoint, self.token) start_time = datetime.utcnow() - timedelta(days=2) start_time = start_time.replace(tzinfo=pytz.utc) + chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) +for chat_thread_info_page in chat_thread_infos.by_page(): + for chat_thread_info in chat_thread_info_page: + print(chat_thread_info) ``` -### Update a thread - -Use `update_chat_thread` method to update a thread's properties -`thread_id` is the unique ID of the thread. -`topic` is used to describe the change of the thread topic +### Update a thread topic +Use `update_topic` method to update a thread's properties. `topic` is used to describe the change of the thread topic - Use `topic` to give thread a new topic; ```python topic="new topic" -chat_thread_client.update_chat_thread(topic=topic) +chat_thread_client.update_topic(topic=topic) + +chat_thread = chat_client.get_chat_thread(thread_id) + +assert chat_thread.topic == topic ``` ### Delete a thread -Use `delete_chat_thread` method to delete a thread -`thread_id` is the unique ID of the thread. - +Use `delete_chat_thread` method to delete a thread; `thread_id` is the unique ID of the thread. +- Use `thread_id`, required, to specify the unique ID of the thread. ```Python -chat_client.delete_chat_thread(thread_id) +chat_client.delete_chat_thread(thread_id=thread_id) ``` ## Message Operations ### Send a message -Use `send_message` method to sends a message to a thread identified by threadId. +Use `send_message` method to sends a message to a thread identified by `thread_id`. -- Use `content` to provide the chat message content, it is required -- Use `chat_message_type` to provide the chat message type. Possible values include: `ChatMessageType.TEXT`, `ChatMessageType.HTML`, `ChatMessageType.TOPIC_UPDATED`, `ChatMessageType.PARTICIPANT_ADDED`, `ChatMessageType.PARTICIPANT_REMOVED` -- Use `sender_display_name` to specify the display name of the sender, if not specified, empty name will be set +- Use `content`, required, to provide the chat message content. +- Use `chat_message_type`, optional, to provide the chat message type. Possible values include: `ChatMessageType.TEXT`, + `ChatMessageType.HTML`, `'text'`, `'html'`; if not specified, `ChatMessageType.TEXT` will be set +- Use `sender_display_name`,optional, to specify the display name of the sender, if not specified, empty name will be set `SendChatMessageResult` is the response returned from sending a message, it contains an id, which is the unique ID of the message. ```Python -from azure.communication.chat import ChatMessagePriority +from azure.communication.chat import ChatMessageType + +topic = "test topic" +create_chat_thread_result = chat_client.create_chat_thread(topic) +thread_id = create_chat_thread_result.chat_thread.id +chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) + content='hello world' sender_display_name='sender name' - -send_message_result = chat_thread_client.send_message(content, sender_display_name=sender_display_name) +chat_message_type = ChatMessageType.TEXT + +# without specifying sender_display_name and chat_message_type +send_message_result_id = chat_thread_client.send_message(content) +print("Message sent: id: ", send_message_result_id) + +# specifying sender_display_name and chat_message_type +send_message_result_w_type_id = chat_thread_client.send_message( + content, + sender_display_name=sender_display_name, + chat_message_type=chat_message_type # equivalent to chat_message_type = 'text' +) +print("Message sent: id: ", send_message_result_w_type_id) ``` ### Get a message -The `get_message` method retrieves a message from the service. -`message_id` is the unique ID of the message. - +Use `get_message` method retrieves a message from the service; `message_id` is the unique ID of the message. +- Use `message_id`,required, to specify message id of an existing message `ChatMessage` is the response returned from getting a message, it contains an id, which is the unique ID of the message, and other fields please refer to azure.communication.chat.ChatMessage ```python -chat_message = chat_thread_client.get_message(message_id) +chat_message = chat_thread_client.get_message(message_id=send_message_result_id) +print("get_chat_message succeeded, message id:", chat_message.id, "content: ", chat_message.content) ``` -### Get messages +### List messages -The `list_messages` method retrieves messages from the service. -- `results_per_page`, optional, The maximum number of messages to be returned per page. -- `start_time`, optional, The start time where the range query. +Use `list_messages` method retrieves messages from the service. +- Use `results_per_page`, optional, The maximum number of messages to be returned per page. +- Use `start_time`, optional, The start time where the range query. An iterator of `[ChatMessage]` is the response returned from listing messages @@ -294,63 +359,157 @@ chat_messages = chat_thread_client.list_messages(results_per_page=1, start_time= for chat_message_page in chat_messages.by_page(): l = list(chat_message_page) print("page size: ", len(l)) + for chat_message in chat_message_page: + print("ChatMessage: Id=", chat_message.id, "; Content=", chat_message.content) ``` ### Update a message Use `update_message` to update a message identified by threadId and messageId. -`message_id` is the unique ID of the message. -`content` is the message content to be updated. - -- Use `content` to provide a new chat message content; +- Use `message_id`,required, is the unique ID of the message. +- Use `content`, optional, is the message content to be updated; if not specified it is assigned to be empty ```Python content = "updated message content" -chat_thread_client.update_message(message_id, content=content) +chat_thread_client.update_message(send_message_result_id, content=content) + +chat_message = chat_thread_client.get_message(message_id=send_message_result_id) + +assert chat_message.content == content ``` ### Delete a message Use `delete_message` to delete a message. -`message_Id` is the unique ID of the message. +- Use `message_id`, required, is the unique ID of the message. ```python -chat_thread_client.delete_message(message_id) +chat_thread_client.delete_message(message_id=send_message_result_id) ``` ## Thread Participant Operations -### Get thread participants +### List thread participants Use `list_participants` to retrieve the participants of the thread. +- Use `results_per_page`, optional, The maximum number of participants to be returned per page. +- Use `skip`, optional, to skips participants up to a specified position in response. An iterator of `[ChatThreadParticipant]` is the response returned from listing participants ```python 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) +for chat_thread_participant_page in chat_thread_participants.by_page(): + for chat_thread_participant in chat_thread_participant_page: + print("ChatThreadParticipant: ", chat_thread_participant) ``` +### Add single thread participant +Use `add_participant` method to add a single thread participants to the thread. + +- Use `thread_participant`, required, to specify the `ChatThreadParticipant` to be added to the thread; + - `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens + + - `display_name`, optional, is the display name for the thread participant. + - `share_history_time`, optional, time from which the chat history is shared with the participant. + +A `tuple(ChatThreadParticipant, CommunicationError)` is returned. When participant is successfully added, +`(None, None)` is expected. In case of an error encountered while adding participant, the tuple is populated +with the participant along with the error that was encountered. +```python +from azure.communication.identity import CommunicationIdentityClient +from azure.communication.chat import ChatThreadParticipant +from datetime import datetime + +# create an user +identity_client = CommunicationIdentityClient.from_connection_string('') +new_user = identity_client.create_user() + +# # conversely, you can also add an existing user to a chat thread; provided the user_id is known +# from azure.communication.identity import CommunicationUserIdentifier +# +# user_id = 'some user id' +# user_display_name = "Wilma Flinstone" +# new_user = CommunicationUserIdentifier(user_id) +# participant = ChatThreadParticipant( +# user=new_user, +# display_name=user_display_name, +# share_history_time=datetime.utcnow()) + + +participant = ChatThreadParticipant( + user=new_user, + display_name='Fred Flinstone', + share_history_time=datetime.utcnow()) + +failed_participant, error = chat_thread_client.add_participant(thread_participant=participant) + +def decide_to_retry(error, **kwargs): + """ + Insert some custom logic to decide if retry is applicable based on error + """ + return True + +# verify if user has been added successfully +if error is not None: + # error encountered while adding participant + if decide_to_retry(error): + chat_thread_client.add_participant(failed_participant) +``` ### Add thread participants Use `add_participants` method to add thread participants to the thread. -- Use `thread_participants` to list the `ChatThreadParticipant` to be added to the thread; -- `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens - -- `display_name`, optional, is the display name for the thread participant. -- `share_history_time`, optional, time from which the chat history is shared with the participant. +- Use `thread_participants`, required, to list the `ChatThreadParticipant` to be added to the thread; + - `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens + + - `display_name`, optional, is the display name for the thread participant. + - `share_history_time`, optional, time from which the chat history is shared with the participant. +A `list(tuple(ChatThreadParticipant, CommunicationError))` is returned. When participant is successfully added, +an empty list is expected. In case of an error encountered while adding participant, the list is populated +with the failed participants along with the error that was encountered. ```Python +from azure.communication.identity import CommunicationIdentityClient from azure.communication.chat import ChatThreadParticipant from datetime import datetime -participant = ChatThreadParticipant( - user='', - display_name='name', - share_history_time=datetime.utcnow()) -thread_participants = [participant] -chat_thread_client.add_participants(thread_participants) + +# create 2 users +identity_client = CommunicationIdentityClient.from_connection_string('') +new_users = [identity_client.create_user() for i in range(2)] + +# # conversely, you can also add an existing user to a chat thread; provided the user_id is known +# from azure.communication.identity import CommunicationUserIdentifier +# +# user_id = 'some user id' +# user_display_name = "Wilma Flinstone" +# new_user = CommunicationUserIdentifier(user_id) +# participant = ChatThreadParticipant( +# user=new_user, +# display_name=user_display_name, +# share_history_time=datetime.utcnow()) + +participants = [] +for _user in new_users: + chat_thread_participant = ChatThreadParticipant( + user=_user, + display_name='Fred Flinstone', + share_history_time=datetime.utcnow() + ) + participants.append(chat_thread_participant) + +response = chat_thread_client.add_participants(thread_participants=participants) + +def decide_to_retry(error, **kwargs): + """ + Insert some custom logic to decide if retry is applicable based on error + """ + return True + +# verify if all users has been successfully added or not +# in case of partial failures, you can retry to add all the failed participants +retry = [p for p, e in response if decide_to_retry(e)] +chat_thread_client.add_participants(retry) ``` ### Remove thread participant @@ -359,9 +518,16 @@ Use `remove_participant` method to remove thread participant from the thread ide `user` is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens and was added into this chat thread. - +- Use `user` to specify the `CommunicationUserIdentifier` you created ```python -chat_thread_client.remove_participant(user) +chat_thread_client.remove_participant(user=new_user) + +# # converesely you can also do the following; provided the user_id is known +# from azure.communication.identity import CommunicationUserIdentifier +# +# user_id = 'some user id' +# chat_thread_client.remove_participant(user=CommunincationUserIdentfier(new_user)) + ``` ## Events Operations @@ -377,24 +543,29 @@ chat_thread_client.send_typing_notification() ### Send read receipt Use `send_read_receipt` method to post a read receipt event to a thread, on behalf of a user. - +- Use `message_id` to specify the id of the message whose read receipt is to be sent ```python -chat_thread_client.send_read_receipt(message_id) +content='hello world' +send_message_result_id = chat_thread_client.send_message(content) +chat_thread_client.send_read_receipt(message_id=send_message_result_id) ``` -### Get read receipts +### List read receipts -`list_read_receipts` method retrieves read receipts for a thread. +Use `list_read_receipts` method retrieves read receipts for a thread. +- Use `results_per_page`, optional, The maximum number of read receipts to be returned per page. +- Use `skip`,optional, to skips read receipts up to a specified position in response. An iterator of `[ChatMessageReadReceipt]` is the response returned from listing read receipts ```python 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) - print(read_receipt.chat_message_id) - print(read_receipt.read_on) +for read_receipt_page in read_receipts.by_page(): + for read_receipt in read_receipt_page: + print(read_receipt) + print(read_receipt.sender) + print(read_receipt.chat_message_id) + print(read_receipt.read_on) ``` ## Sample Code diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index d2ace09e4093..60fda76fd77e 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -19,7 +19,6 @@ from ._generated.models import CreateChatThreadRequest from ._models import ( ChatThread, - ChatThreadParticipant, CreateChatThreadResult ) from ._utils import ( # pylint: disable=unused-import From 4c3e68466971c884ab33bf636f1ac26d2c77c6c4 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Fri, 26 Feb 2021 04:17:03 -0800 Subject: [PATCH 12/16] test recordings added --- ...at_client_e2e.test_create_chat_thread.yaml | 50 ++--- ..._create_chat_thread_w_no_participants.yaml | 200 ++++++++++++++++++ ...hat_thread_w_repeatability_request_id.yaml | 66 +++--- ...at_client_e2e.test_delete_chat_thread.yaml | 56 ++--- ..._chat_client_e2e.test_get_chat_thread.yaml | 60 +++--- ...hat_client_e2e.test_get_thread_client.yaml | 50 ++--- ...hat_client_e2e.test_list_chat_threads.yaml | 58 ++--- ...e_async.test_create_chat_thread_async.yaml | 50 ++--- ...e_chat_thread_w_no_participants_async.yaml | 180 ++++++++++++++++ ...read_w_repeatability_request_id_async.yaml | 66 +++--- ...ent_e2e_async.test_delete_chat_thread.yaml | 56 ++--- ...client_e2e_async.test_get_chat_thread.yaml | 62 +++--- ...ient_e2e_async.test_get_thread_client.yaml | 50 ++--- ...ient_e2e_async.test_list_chat_threads.yaml | 54 ++--- ...hread_client_e2e.test_add_participant.yaml | 86 ++++---- ...read_client_e2e.test_add_participants.yaml | 84 ++++---- ...thread_client_e2e.test_delete_message.yaml | 88 ++++---- ...at_thread_client_e2e.test_get_message.yaml | 96 ++++----- ..._thread_client_e2e.test_list_messages.yaml | 106 +++++----- ...ead_client_e2e.test_list_participants.yaml | 90 ++++---- ...ad_client_e2e.test_list_read_receipts.yaml | 138 ++++++------ ...ad_client_e2e.test_remove_participant.yaml | 90 ++++---- ...t_thread_client_e2e.test_send_message.yaml | 84 ++++---- ...ead_client_e2e.test_send_read_receipt.yaml | 90 ++++---- ...ent_e2e.test_send_typing_notification.yaml | 82 +++---- ...thread_client_e2e.test_update_message.yaml | 86 ++++---- ...t_thread_client_e2e.test_update_topic.yaml | 84 ++++---- ...client_e2e_async.test_add_participant.yaml | 84 ++++---- ...lient_e2e_async.test_add_participants.yaml | 82 +++---- ..._client_e2e_async.test_delete_message.yaml | 90 ++++---- ...ead_client_e2e_async.test_get_message.yaml | 98 ++++----- ...d_client_e2e_async.test_list_messages.yaml | 106 +++++----- ...ient_e2e_async.test_list_participants.yaml | 92 ++++---- ...ent_e2e_async.test_list_read_receipts.yaml | 138 ++++++------ ...ent_e2e_async.test_remove_participant.yaml | 94 ++++---- ...ad_client_e2e_async.test_send_message.yaml | 82 +++---- ...ient_e2e_async.test_send_read_receipt.yaml | 90 ++++---- ...e_async.test_send_typing_notification.yaml | 84 ++++---- ..._client_e2e_async.test_update_message.yaml | 90 ++++---- ...ad_client_e2e_async.test_update_topic.yaml | 86 ++++---- 40 files changed, 1929 insertions(+), 1549 deletions(-) create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml 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 9e66e0524db1..ac9edd8bf7ad 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:54:38 GMT + - Fri, 26 Feb 2021 11:02:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:35 GMT + - Fri, 26 Feb 2021 11:02:08 GMT ms-cv: - - y67NAbnaZkyYXnBQlIDCgg.0 + - 7cWLEnO0XkCcjQoDhXV+QQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 72ms + - 31ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:54:38 GMT + - Fri, 26 Feb 2021 11:02:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:54:35.2336409+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:08.2776869+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:37 GMT + - Fri, 26 Feb 2021 11:02:08 GMT ms-cv: - - 3DC7ufFI9k6OD4pvHdEJFg.0 + - gYlmwgTAUUqB8vJ3F2VtcA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 289ms + - 87ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 102e2ff1-7991-4229-9220-d81abdc61910 + - 071c34b7-c403-4fda-82ec-a67a99eec2c9 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:loG42He_Lmoq8RD55TPwcdcPf8iOGJIkMBNBXnAu6g41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:54:37Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-01e6-1db7-3a3a0d0073ac"}}}}' + body: '{"chatThread": {"id": "19:t1E0TNw5xsca40FN1viBVTrnd_Rg65eAcTxBRwwuyaE1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:02:09Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:38 GMT + - Fri, 26 Feb 2021 11:02:10 GMT ms-cv: - - WUTb1tBH9kae4GWRP088Vw.0 + - GLwdj/bdBkSozb1AinMEXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1190ms + - 1043ms status: code: 201 message: Created @@ -139,7 +139,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:54:40 GMT + - Fri, 26 Feb 2021 11:02:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:54:54 GMT + - Fri, 26 Feb 2021 11:02:25 GMT ms-cv: - - Y2qLxqeR5EyZeRNdd8/wTw.0 + - Ek8ywwI7Q0mFMi/VcPp3Uw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16761ms + - 16265ms status: code: 204 message: No Content @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:54:55 GMT + - Fri, 26 Feb 2021 11:02:26 GMT ms-cv: - - LnjFuieB2UG/9f+e+hMx/g.0 + - ijuiYLvLv0SpLacD0Vyavg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 344ms + - 323ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml new file mode 100644 index 000000000000..36cfbd6ba7f5 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml @@ -0,0 +1,200 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Fri, 26 Feb 2021 11:02:28 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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?api-version=2021-03-07 + response: + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 26 Feb 2021 11:02:27 GMT + ms-cv: + - 7HPabRS+rUOKhVvA7RjKtg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 113ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Fri, 26 Feb 2021 11:02:29 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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/:issueAccessToken?api-version=2021-03-07 + response: + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:26.7566267+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 26 Feb 2021 11:02:27 GMT + ms-cv: + - FGpm+DoxV0yMNfs639sE6w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 90ms + status: + code: 200 + message: OK +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-Id: + - 7bf29d0e-5f9a-4ab3-9b32-a9531d7f36d8 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + response: + body: '{"chatThread": {"id": "19:lumWjfrkyaWx5bwm7wWHDONFMzizI59LfOhAh8dcKG81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:02:28Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a"}}}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 26 Feb 2021 11:02:28 GMT + ms-cv: + - ui2/t7KTtEKKUg1zZ36hgQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 1186ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Fri, 26 Feb 2021 11:02:30 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + date: + - Fri, 26 Feb 2021 11:02:45 GMT + ms-cv: + - 07KYYdblpUi+bIqZZGROxw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 16751ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: + - Fri, 26 Feb 2021 11:02:45 GMT + ms-cv: + - vZ8uS0jeOUWFgoSsvl/gHg.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 323ms + status: + code: 204 + message: No Content +version: 1 diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml index 1364bc2e0c9e..8b14320939fe 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:54:57 GMT + - Fri, 26 Feb 2021 11:02:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:55 GMT + - Fri, 26 Feb 2021 11:02:46 GMT ms-cv: - - 5p2bpEjETkKUKN6kvVRJSQ.0 + - IdiUy3DoU0irsOkfrrtXZA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 62ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:54:57 GMT + - Fri, 26 Feb 2021 11:02:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:54:55.2250571+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:45.6463802+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:55 GMT + - Fri, 26 Feb 2021 11:02:46 GMT ms-cv: - - 3e0cig2GqE+vD62D+HILig.0 + - htUnEJgtY0ma4Q+fOl9Ueg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 90ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - d18062f3-d450-4099-bf4e-181252cc3f0c + - 0c6f6421-c625-45a7-87b1-cf943f30c40c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:9Xd3awR4PuDEUm2_fE1hZdjg72Ng4iEwfi3ZsHUdjqQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:54:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}}}' + body: '{"chatThread": {"id": "19:QSD8rhLOT0xEY6HSEeY-pjJLo9UA5hBpoHbEbIQX9qI1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:02:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:57 GMT + - Fri, 26 Feb 2021 11:02:47 GMT ms-cv: - - f+KSTd1cRU2UQGAidLNL4A.0 + - GnG3g7/+QU2kqLGKdwPc3Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 909ms + - 887ms status: code: 201 message: Created @@ -143,29 +143,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - d18062f3-d450-4099-bf4e-181252cc3f0c + - 0c6f6421-c625-45a7-87b1-cf943f30c40c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:9Xd3awR4PuDEUm2_fE1hZdjg72Ng4iEwfi3ZsHUdjqQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:54:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-4cc9-1db7-3a3a0d0073ad"}}}}' + body: '{"chatThread": {"id": "19:QSD8rhLOT0xEY6HSEeY-pjJLo9UA5hBpoHbEbIQX9qI1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:02:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:54:57 GMT + - Fri, 26 Feb 2021 11:02:48 GMT ms-cv: - - ZaHnzAGTWEa9Y1xs/pb/FQ.0 + - MXHTOleHpEeAFXf1A+NQkQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 704ms + - 644ms status: code: 201 message: Created @@ -181,7 +181,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:54:59 GMT + - Fri, 26 Feb 2021 11:02:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -195,15 +195,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:55:14 GMT + - Fri, 26 Feb 2021 11:03:04 GMT ms-cv: - - QLh/Ju+c1EOoTGt41A0/Gg.0 + - 1Z5OjOh/gkOqAJ4RJ1CRJw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16436ms + - 16536ms status: code: 204 message: No Content @@ -229,13 +229,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:55:14 GMT + - Fri, 26 Feb 2021 11:03:04 GMT ms-cv: - - w/3GpiXd8ECaXe5Pw7ECyw.0 + - p4Jod1+GoECWXnjkgujaXA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 290ms + - 320ms 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 4c3cd5cf1674..8e6c8ab31c63 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:16 GMT + - Fri, 26 Feb 2021 11:03:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:14 GMT + - Fri, 26 Feb 2021 11:03:05 GMT ms-cv: - - bMB7217Nc0GAW7cz6Mf0CQ.0 + - LxMo7TsaH0+bCvSNpluQtw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 36ms + - 21ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:16 GMT + - Fri, 26 Feb 2021 11:03:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:14.3367454+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:04.8799592+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:14 GMT + - Fri, 26 Feb 2021 11:03:05 GMT ms-cv: - - 2n84ZcCiLkK3dTPXcjz1xQ.0 + - oOQjrXNwJU+vp0v8hpqXZg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 91ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - e2d9f7f5-09ac-4bad-bdf3-5e4b470ef8ad + - 292293ec-a997-406b-895a-ca9d45ea5154 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:miEkRbGP_VXWbZj4KbDrRX5KGaQtMwYYPT6B-hlhZkE1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:15Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-9784-dbb7-3a3a0d0072a4"}}}}' + body: '{"chatThread": {"id": "19:7TMVObaDA7bwdiC3e3ybseaNpDiKly-u0q1VbzNSliM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:03:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:15 GMT + - Fri, 26 Feb 2021 11:03:06 GMT ms-cv: - - saovXszKWEKjVgWXdEUBCw.0 + - qhmyOgFUMkGNW/xMAaEeHw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 893ms + - 1199ms status: code: 201 message: Created @@ -149,13 +149,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:55:16 GMT + - Fri, 26 Feb 2021 11:03:06 GMT ms-cv: - - RcKVggzdGkSSusaTr71j6w.0 + - sApVs2CcCUm72ASgIuiYZw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 425ms + - 291ms status: code: 204 message: No Content @@ -171,7 +171,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:55:18 GMT + - Fri, 26 Feb 2021 11:03:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -185,15 +185,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:55:33 GMT + - Fri, 26 Feb 2021 11:03:23 GMT ms-cv: - - ZPKs5GPSpEOL4KE1NXDMrg.0 + - 4AzP1l+KFkyLt5SRdoStTg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16898ms + - 16683ms status: code: 204 message: No Content @@ -219,13 +219,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:55:34 GMT + - Fri, 26 Feb 2021 11:03:24 GMT ms-cv: - - qRIcXoOweEOlx02Tx/gVqQ.0 + - 1KN7dacOu0SQsVawu2/0kg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 243ms 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 c552bf1ee86d..dddc1605700b 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:36 GMT + - Fri, 26 Feb 2021 11:03:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:34 GMT + - Fri, 26 Feb 2021 11:03:24 GMT ms-cv: - - gvGN3+cEekiGvb6JbrXyfg.0 + - EuFR4wzxEEeDDMpuivE7Qw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 114ms + - 23ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:36 GMT + - Fri, 26 Feb 2021 11:03:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:33.7701311+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:23.9554234+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:34 GMT + - Fri, 26 Feb 2021 11:03:24 GMT ms-cv: - - E9kcLqUdOkGSz5NKEo/V3w.0 + - vT9yDd27DUW3fixk3wFT0Q.0 request-context: - appId= strict-transport-security: @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - fe3924e9-155c-4b9d-acb9-a67ab638e24d + - 2c966c71-7392-4eb1-ab2d-e3597ab762c9 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:cIDts23OQ1cZLYeN2_LwTTnK1Nrsqr2V0qmGZUO9vM41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:35Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}}}' + body: '{"chatThread": {"id": "19:FNka5cuFbWkJ00ln-lFQwzKJ0X1eOGcavE7cFftBNus1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:03:25Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:35 GMT + - Fri, 26 Feb 2021 11:03:25 GMT ms-cv: - - BxNBI10fYkGHj28qZqEehg.0 + - to3kCZgmPUqdHyLZOrVUtw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 905ms + - 885ms status: code: 201 message: Created @@ -141,24 +141,24 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-24T07:55:35Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-e364-b0b7-3a3a0d0072b6"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-26T11:03:25Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:36 GMT + - Fri, 26 Feb 2021 11:03:26 GMT ms-cv: - - ZKRdmazlLk2WTyXsl8lNfA.0 + - 4ND8+VBn+EyJ1xYzl8BlOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 246ms status: code: 200 message: OK @@ -174,7 +174,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:55:38 GMT + - Fri, 26 Feb 2021 11:03:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -188,15 +188,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:55:52 GMT + - Fri, 26 Feb 2021 11:03:41 GMT ms-cv: - - U4DJaAfIr0eFI7t11v0/8w.0 + - yLPGJi7UmU22aL4WFlDZtQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16369ms + - 16045ms status: code: 204 message: No Content @@ -222,13 +222,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:55:52 GMT + - Fri, 26 Feb 2021 11:03:42 GMT ms-cv: - - GHXoS6+gzkevUp9xia5Dsg.0 + - YsnX/ksyK0OCqQqaJ0yD/A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 295ms + - 326ms 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 23494bb9f680..94dc373da55b 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:55 GMT + - Fri, 26 Feb 2021 11:03:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:52 GMT + - Fri, 26 Feb 2021 11:03:42 GMT ms-cv: - - zdojK2LSLkmLh82tqD9CDQ.0 + - iW9KvlpD5k+8sCLEZRoNeA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 22ms + - 131ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:55 GMT + - Fri, 26 Feb 2021 11:03:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:52.7422665+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:42.5432824+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:52 GMT + - Fri, 26 Feb 2021 11:03:42 GMT ms-cv: - - A3nJchu6BEijgGuSpcf3oQ.0 + - aufDeEt18kajUL6mBG1D9Q.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 139ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - f32a5fbd-7334-483e-9b4d-4a2a44291678 + - d1c39182-475b-479f-bd37-68af9d09d03b method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:f6Pa_NZ7TulJzYQozCtksM2iVjDFK-PVQh_9Mhftlhg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:54Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-2d78-9c58-373a0d006f18"}}}}' + body: '{"chatThread": {"id": "19:Qg7DUjna686T-xIta1V9U3cP3DPymEj0qvmnsNNah0o1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:03:43Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:54 GMT + - Fri, 26 Feb 2021 11:03:43 GMT ms-cv: - - RLaOPTGnY0SdiGs4Ttc5yg.0 + - 9L/1zSQgBEG3nimjkUZcWg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 818ms + - 889ms status: code: 201 message: Created @@ -139,7 +139,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:55:56 GMT + - Fri, 26 Feb 2021 11:03:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:56:10 GMT + - Fri, 26 Feb 2021 11:04:01 GMT ms-cv: - - 8OJjAKXaYUGW3e+m2GUm0g.0 + - x99n8st3HkuCyUzWQ4gRIg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16585ms + - 16894ms status: code: 204 message: No Content @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:56:11 GMT + - Fri, 26 Feb 2021 11:04:01 GMT ms-cv: - - wy9GwgrgXkiUMJT5Pi6WSg.0 + - f0QJrsW2CESRrSprrJHjsg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 290ms + - 283ms 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 43e39504ed37..d1316ba323c2 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:13 GMT + - Fri, 26 Feb 2021 11:04:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:11 GMT + - Fri, 26 Feb 2021 11:04:01 GMT ms-cv: - - MWfCZM+dt0qgFeS3BxiYkA.0 + - 3iVpAk8Wqk2GSrjFFZL96Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 11ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:13 GMT + - Fri, 26 Feb 2021 11:04:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:11.0755852+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:01.4162513+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:11 GMT + - Fri, 26 Feb 2021 11:04:01 GMT ms-cv: - - RbTHex7+v0yQCWAkjLmwRg.0 + - MJtegjp//UK2w/YojN41nA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 85ms + - 92ms status: code: 200 message: OK @@ -95,35 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 118a4409-f065-40f3-a18e-8fc72ba8f96a + - 81ce1779-32a3-4fc3-8368-1d0587faa457 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:SmFK8STz8CxCf25ry2VWGQy73AKATo6fXS7lUEAnrZY1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:56:12Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-7518-b0b7-3a3a0d0072bc"}}}}' + body: '{"chatThread": {"id": "19:-s3pMWb-t2bZR34wuCegoMTVlRETYzZn6FyjhV0dWnA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:04:02Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:12 GMT + - Fri, 26 Feb 2021 11:04:03 GMT ms-cv: - - llmfkZZvmkqhZJxtAUsPfw.0 + - Mq/hiin8Fk+/e4etIh/4nw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 922ms + - 827ms status: code: 201 message: Created @@ -148,15 +148,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:14 GMT + - Fri, 26 Feb 2021 11:04:05 GMT ms-cv: - - /VFnVqA+aEWGlLIvx6u9DQ.0 + - 1B5ZYBvQTkaHDN3eut5SvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 325ms + - 387ms status: code: 200 message: OK @@ -172,7 +172,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:56:17 GMT + - Fri, 26 Feb 2021 11:04:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -186,15 +186,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:56:31 GMT + - Fri, 26 Feb 2021 11:04:21 GMT ms-cv: - - Yrs37boKfkW4QC9WvI0iew.0 + - RBT4GDXIL0G5E8f25IF+bA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16334ms + - 15937ms status: code: 204 message: No Content @@ -220,13 +220,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 07:56:32 GMT + - Fri, 26 Feb 2021 11:04:21 GMT ms-cv: - - Yaq/lNpCkUOIV/9H2dfiIQ.0 + - u8eR52kXFE2VWFIgeX5EIQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 332ms + - 325ms 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 771fa353caf8..15d704424d14 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:41 GMT + - Fri, 26 Feb 2021 11:04:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:39 GMT + - Fri, 26 Feb 2021 11:04:22 GMT ms-cv: - - C25aVtCMD0ifo5AUfyOXkQ.0 + - l7rwg3lcVEiZxHaXoWwdfA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:41 GMT + - Fri, 26 Feb 2021 11:04:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:38.9150846+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:21.7563171+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:39 GMT + - Fri, 26 Feb 2021 11:04:22 GMT ms-cv: - - gxU+3Tzux0mIAqmSrRq1GQ.0 + - 7mILm816TEuvl7n0e/O/Xw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 88ms status: code: 200 message: OK @@ -97,22 +97,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - e789f034-77e9-4d65-9aca-dc0ee4cd69cd + - e09a1b66-011f-4d48-8607-41167e142b88 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:bn9p-SCFbRL3v_QF2ve7_sCBn8nmXA7FfC3Q984OSf41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:40Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ea-f788-b0b7-3a3a0d0072b7"}}}}' + body: '{"chatThread": {"id": "19:BVj64K52gOTf2uM-Kwll2B3JZwy7vJuQPNTLBsM0ZtM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:04:23Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:55:39 GMT - ms-cv: XPxmQ6Ria0eyZd9ChL4rRA.0 + date: Fri, 26 Feb 2021 11:04:23 GMT + ms-cv: vABi/UU5Bk++GQlSQNRTPQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 827ms + x-processing-time: 835ms status: code: 201 message: Created @@ -131,10 +131,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:55:41 GMT - ms-cv: qulBuJJZ/Eugsx3PeyZxJA.0 + date: Fri, 26 Feb 2021 11:04:23 GMT + ms-cv: J6/PrQiQUU2rOvSQtiol7g.0 strict-transport-security: max-age=2592000 - x-processing-time: 346ms + x-processing-time: 333ms status: code: 204 message: No Content @@ -151,7 +151,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:55:43 GMT + - Fri, 26 Feb 2021 11:04:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -165,15 +165,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:55:58 GMT + - Fri, 26 Feb 2021 11:04:39 GMT ms-cv: - - iRpAUpZvDE248VkiiO9hww.0 + - 9r+G+FKAUU+DA+giNs6stA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16719ms + - 16539ms 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_w_no_participants_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml new file mode 100644 index 000000000000..615d6278cc2f --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml @@ -0,0 +1,180 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Fri, 26 Feb 2021 11:04:42 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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?api-version=2021-03-07 + response: + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 26 Feb 2021 11:04:40 GMT + ms-cv: + - wp13B1txLEyYh8B4idfGZg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 79ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Fri, 26 Feb 2021 11:04:42 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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/:issueAccessToken?api-version=2021-03-07 + response: + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:40.1673539+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 26 Feb 2021 11:04:40 GMT + ms-cv: + - pxDqbGcKEkKSdBQuWyaH0A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 90ms + status: + code: 200 + message: OK +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-Id: + - e278086e-8057-4738-b429-b6c9d0121cac + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + response: + body: '{"chatThread": {"id": "19:t6CwFmxS6Bod_xwtrGih3AjIwjvFD_31-_367OC6_b01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:04:41Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3"}}}}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: application/json; charset=utf-8 + date: Fri, 26 Feb 2021 11:04:41 GMT + ms-cv: e4H5CHGzUESe9PytiNDKCA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 890ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Fri, 26 Feb 2021 11:04:41 GMT + ms-cv: i2Y9a9lSZUumOMbSsZCO4w.0 + strict-transport-security: max-age=2592000 + x-processing-time: 323ms + status: + code: 204 + message: No Content + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Fri, 26 Feb 2021 11:04:44 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + date: + - Fri, 26 Feb 2021 11:04:59 GMT + ms-cv: + - vl/cgvEya0W64L2mRx3AHQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 16754ms + status: + code: 204 + message: No Content +version: 1 diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml index b531558e5767..1b8c7a5fd77e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:55:59 GMT + - Fri, 26 Feb 2021 11:05:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:57 GMT + - Fri, 26 Feb 2021 11:04:59 GMT ms-cv: - - FB9d5JBNakm4a+vJYgipnQ.0 + - LvxFxjm1l0CYtY9YTwSTOA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:00 GMT + - Fri, 26 Feb 2021 11:05:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:55:57.5703776+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:58.9152516+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:55:58 GMT + - Fri, 26 Feb 2021 11:04:59 GMT ms-cv: - - puVoKzJoSEyN1/v7p1BzeA.0 + - P4N57fkrZEqk0N6sZL0j9A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 91ms status: code: 200 message: OK @@ -97,22 +97,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 16cca50e-e970-483c-b0e7-8946a643e6ac + - feced934-a145-47d1-b123-be347c54f48b method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:a0dfadho4KbZKVmAC9XoDk6QuRGJkqf0Hm91G7AHTMA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:58Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}}}' + body: '{"chatThread": {"id": "19:c3KQn2P06KJlHyDxxsG1TyCjeMr05cI1K3vd4VqdlG01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:05:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:55:58 GMT - ms-cv: G1ncmSJ5ZkKk+t14YZ3Xcw.0 + date: Fri, 26 Feb 2021 11:05:00 GMT + ms-cv: iWYYA7qiyUiB1c3KZEb0Jw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 821ms + x-processing-time: 834ms status: code: 201 message: Created @@ -129,22 +129,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 16cca50e-e970-483c-b0e7-8946a643e6ac + - feced934-a145-47d1-b123-be347c54f48b method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:a0dfadho4KbZKVmAC9XoDk6QuRGJkqf0Hm91G7AHTMA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:55:58Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-4065-dbb7-3a3a0d0072ae"}}}}' + body: '{"chatThread": {"id": "19:c3KQn2P06KJlHyDxxsG1TyCjeMr05cI1K3vd4VqdlG01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:05:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:55:59 GMT - ms-cv: tWKmcz+L90+uTgPUNI+BFA.0 + date: Fri, 26 Feb 2021 11:05:01 GMT + ms-cv: LFw241M0zkCEfctgU7b69w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 712ms + x-processing-time: 651ms status: code: 201 message: Created @@ -163,10 +163,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:55:59 GMT - ms-cv: 2DtA+zVCCki76430W0pwow.0 + date: Fri, 26 Feb 2021 11:05:01 GMT + ms-cv: Fyy8QEnx7UajSJfx48N56w.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -183,7 +183,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:56:02 GMT + - Fri, 26 Feb 2021 11:05:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -197,15 +197,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:56:16 GMT + - Fri, 26 Feb 2021 11:05:17 GMT ms-cv: - - qimMYL2GxUuWm5kl0Q2OGQ.0 + - NW3v/1FOQ0udLrIGanhvWg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16621ms + - 16008ms 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 8f8c24444db8..6b3dbcb39d1a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:19 GMT + - Fri, 26 Feb 2021 11:05:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:17 GMT + - Fri, 26 Feb 2021 11:05:17 GMT ms-cv: - - Dqxlw8aEVkisIekj6O792Q.0 + - DoZai7/Npk+/mWeCx0lJrQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:19 GMT + - Fri, 26 Feb 2021 11:05:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:16.6500841+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:17.4368921+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:17 GMT + - Fri, 26 Feb 2021 11:05:17 GMT ms-cv: - - iSVjN0sJ/UO2CLNkRZ2GsA.0 + - uoXgBr19wU2T3qFbyIUb/w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 91ms status: code: 200 message: OK @@ -97,22 +97,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 7a842071-eed9-4d26-92fc-5c9de34eea06 + - b4f6268b-ac70-40cd-9149-d004e091e3e4 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Fs_Ey5JxNpKtq3IYU8J62ulWAnHNc-oK34dDC-83QT81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:56:17Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-8ae5-dbb7-3a3a0d0072b5"}}}}' + body: '{"chatThread": {"id": "19:HLgKubcOs1Qnpzl0-S1iszZdC0P-BBxaClONK6qcXlk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:05:18Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:56:17 GMT - ms-cv: FeqovMJ6s0qoo2MTEh8P6w.0 + date: Fri, 26 Feb 2021 11:05:18 GMT + ms-cv: VP18ZCFto0ONhxQzC06GwA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 914ms + x-processing-time: 839ms status: code: 201 message: Created @@ -131,10 +131,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:56:18 GMT - ms-cv: xjU6X3bi2k+I2m5qOSUcPQ.0 + date: Fri, 26 Feb 2021 11:05:18 GMT + ms-cv: 8AgZHqhZvEKxdz4wHknu+A.0 strict-transport-security: max-age=2592000 - x-processing-time: 326ms + x-processing-time: 293ms status: code: 204 message: No Content @@ -153,10 +153,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:56:18 GMT - ms-cv: LM0NSotGuECrJnI0VWLMtA.0 + date: Fri, 26 Feb 2021 11:05:19 GMT + ms-cv: F99/lkrl0kWnEHRTrC9/Zw.0 strict-transport-security: max-age=2592000 - x-processing-time: 249ms + x-processing-time: 252ms status: code: 204 message: No Content @@ -173,7 +173,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:56:21 GMT + - Fri, 26 Feb 2021 11:05:21 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -187,15 +187,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:56:35 GMT + - Fri, 26 Feb 2021 11:05:36 GMT ms-cv: - - jLBfIDOD5EiBcVvpMUgBzQ.0 + - 5GM0qXUBR0Gj9HKapn+K8g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16380ms + - 17137ms 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 6fb55ef56ab2..922e6799049b 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:37 GMT + - Fri, 26 Feb 2021 11:05:38 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:35 GMT + - Fri, 26 Feb 2021 11:05:37 GMT ms-cv: - - Ryj/qA6IRk+7+DvtEFX8KQ.0 + - FtIEKuc8ykqZB4p47mZhIw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:37 GMT + - Fri, 26 Feb 2021 11:05:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:35.21962+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:36.6395067+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:35 GMT + - Fri, 26 Feb 2021 11:05:37 GMT ms-cv: - - NjfirAR+UUeYV7Y3AtrNRg.0 + - G2yhEOaZ4Em/kNe9SJfuIA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 85ms + - 94ms status: code: 200 message: OK @@ -91,28 +91,28 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 617741f6-feb9-4fee-85e3-61a4b53f46b2 + - 46737d6a-a0d0-45ab-94e6-efdae1d7d8fd method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:38P49YjVERV0kD7rPvplJK7STiWwoLQMtq5M3JHJxP01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:56:36Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}}}' + body: '{"chatThread": {"id": "19:f2-j-g5DdMI_rEpU9OVmg5meVuVwjaJsw-i8o7rLe_U1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:05:38Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:56:37 GMT - ms-cv: qEMT/tG9R0amGOx0fWzNag.0 + date: Fri, 26 Feb 2021 11:05:38 GMT + ms-cv: MTaGhAZdDUSus6LRcBgU0w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 844ms + x-processing-time: 881ms status: code: 201 message: Created @@ -127,17 +127,17 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-24T07:56:36Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72eb-d375-dbb7-3a3a0d0072b6"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-26T11:05:38Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:56:37 GMT - ms-cv: pltL232zP06axW/9xcIqNg.0 + date: Fri, 26 Feb 2021 11:05:38 GMT + ms-cv: QGzTxWY4MkGTDnzz0+sMPA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 254ms + x-processing-time: 255ms status: code: 200 message: OK @@ -156,8 +156,8 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:56:37 GMT - ms-cv: m06/fB5SkUCSZQgWhaVbng.0 + date: Fri, 26 Feb 2021 11:05:39 GMT + ms-cv: hyvgpKXwvUmrWoq9fTx/zw.0 strict-transport-security: max-age=2592000 x-processing-time: 291ms status: @@ -176,7 +176,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:56:39 GMT + - Fri, 26 Feb 2021 11:05:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -190,15 +190,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:56:53 GMT + - Fri, 26 Feb 2021 11:05:54 GMT ms-cv: - - rWu2rHBtsk+FYHQAoN5QnA.0 + - +u4TEORJHkOLFoNtlO7n9A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15746ms + - 15987ms 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 4cfc83ca2a31..ffb73b014d28 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:55 GMT + - Fri, 26 Feb 2021 11:05:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:53 GMT + - Fri, 26 Feb 2021 11:05:55 GMT ms-cv: - - nHkzwBOlVUSMbRe0swHuQQ.0 + - RLO913gZSkOEho71wet5HA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 21ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:56:55 GMT + - Fri, 26 Feb 2021 11:05:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:56:53.103136+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:54.8663893+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:56:53 GMT + - Fri, 26 Feb 2021 11:05:55 GMT ms-cv: - - +lTYRM1lhUm1J8enfqH55g.0 + - of4ivAg37USKEKy1zgjYMA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 98ms status: code: 200 message: OK @@ -97,22 +97,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 316ab6fc-3ae8-4531-a68e-325f5e8c5034 + - 8e416940-142b-4024-acf6-ce6d55fa3487 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QaK-7ndJM8dEatpCbYUQtofmic1_V_ca2mO1zs3OC8c1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:56:54Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-193e-dbb7-3a3a0d0072b7"}}}}' + body: '{"chatThread": {"id": "19:2WoCuiiYSQxqIWXyh11qik24P0kSnmYgK-6A1GwBgXw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:05:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:56:54 GMT - ms-cv: GfhbPeAnmECHSpY15VEklA.0 + date: Fri, 26 Feb 2021 11:05:56 GMT + ms-cv: ++Hd3jwnOkycUz9Z4Zosow.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1115ms + x-processing-time: 820ms status: code: 201 message: Created @@ -131,10 +131,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:56:54 GMT - ms-cv: HyFkwvEJIUiNWJYkbXfuJA.0 + date: Fri, 26 Feb 2021 11:05:57 GMT + ms-cv: aovz8n2Fv0e6lPJWMSvWdg.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -151,7 +151,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:56:57 GMT + - Fri, 26 Feb 2021 11:05:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -165,15 +165,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:57:11 GMT + - Fri, 26 Feb 2021 11:06:13 GMT ms-cv: - - LX2GhRD4HUqLnDQt16E7Ng.0 + - qq2eqxg1BEGIdRFhC/6vGQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16040ms + - 16938ms 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 66474674f646..71c7cf98263e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:57:13 GMT + - Fri, 26 Feb 2021 11:06:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:57:11 GMT + - Fri, 26 Feb 2021 11:06:13 GMT ms-cv: - - 3iBof6Fbi06eZYUJmR1q6g.0 + - jKUsoBbsFkqlETRRCl9R9w.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 07:57:13 GMT + - Fri, 26 Feb 2021 11:06:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T07:57:11.3079481+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:06:13.6223807+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 07:57:11 GMT + - Fri, 26 Feb 2021 11:06:13 GMT ms-cv: - - tbjg0acCSUivcCv7fbh+UQ.0 + - 9FZfm3+870ODlf4BQ9HCLw.0 request-context: - appId= strict-transport-security: @@ -97,22 +97,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - ffe0508e-3e19-44df-96b9-fb86e32730ca + - c7b4ea98-e1a1-42d9-bdef-6ff3ec8c1b65 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:oIH0rW8f_osIPc11vZHcEjrnJvM3IM-JPuB-XRU4pbc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T07:57:12Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-72ec-6070-9c58-373a0d006f1e"}}}}' + body: '{"chatThread": {"id": "19:-PLcr1T8kUOqk31bVmnrrDoWHqmJtedh1AqIgOZOw2c1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:06:15Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:57:13 GMT - ms-cv: 9bix2Xvac0qD/dkXRD3Hig.0 + date: Fri, 26 Feb 2021 11:06:15 GMT + ms-cv: r3RJ9aVbjU6Mx9roxBsX6Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 892ms + x-processing-time: 846ms status: code: 201 message: Created @@ -131,11 +131,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 07:57:15 GMT - ms-cv: ANEnBgrmJ0mL9h6WpfWsGQ.0 + date: Fri, 26 Feb 2021 11:06:17 GMT + ms-cv: VygONvTtgEWbvpc9CuRxIQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 319ms + x-processing-time: 767ms status: code: 200 message: OK @@ -154,10 +154,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 07:57:16 GMT - ms-cv: NlMwUDEeU0CWgsrTWqv6Mg.0 + date: Fri, 26 Feb 2021 11:06:18 GMT + ms-cv: sFZiqMCrPECTQ5YVyd09LQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -174,7 +174,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 07:57:17 GMT + - Fri, 26 Feb 2021 11:06:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -188,15 +188,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 07:57:32 GMT + - Fri, 26 Feb 2021 11:06:34 GMT ms-cv: - - Ykkl7PP0FEWVHKqq7YcJPQ.0 + - zPALF/Xt/EebC6Y0aPkFLA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16702ms + - 16165ms 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 ac9c6871f819..9d09258433c4 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:39:59 GMT + - Fri, 26 Feb 2021 12:03:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:56 GMT + - Fri, 26 Feb 2021 12:03:29 GMT ms-cv: - - yFYy4VZqYk6Fv6/4vh9GwQ.0 + - +fPAQmUdhUe3iAjJGn5kkQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 32ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:39:59 GMT + - Fri, 26 Feb 2021 12:03:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:39:56.3481478+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:03:29.2571695+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:56 GMT + - Fri, 26 Feb 2021 12:03:29 GMT ms-cv: - - WdRan3BEG0a4z05IBvCv2g.0 + - +GtDmvjWREGJQUorGd83Fw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 97ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:39:59 GMT + - Fri, 26 Feb 2021 12:03:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-7361-1db7-3a3a0d007598"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-9791-dbb7-3a3a0d00a8cd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:56 GMT + - Fri, 26 Feb 2021 12:03:29 GMT ms-cv: - - SwSQFq1xnEKLWrROeAGfbw.0 + - WJ3X6knzjU+Y2xlS69m/9A.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 11ms + - 16ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:39:59 GMT + - Fri, 26 Feb 2021 12:03:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:39:56.5411925+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:03:29.4810108+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:56 GMT + - Fri, 26 Feb 2021 12:03:29 GMT ms-cv: - - t5t5dU107UKIqamzuqlLvg.0 + - ClbOzIeBc0KxnhU++HeZ1w.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 96ms status: code: 200 message: OK @@ -181,35 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 026cf31d-d30b-4e6e-a61b-548971911c34 + - 19ae4f6a-eccb-4e9b-9649-cccee9930559 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:AVjdri2b-EwtDJVqeUepJQZejaMLsnpJkjNx9DHTjuU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:39:57Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-729b-1db7-3a3a0d007597"}}}}' + body: '{"chatThread": {"id": "19:VhpzAHDL6INXGdGjQ9bnBOIxHy4YZ6kxgfJDpNV2xJQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:03:30Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:58 GMT + - Fri, 26 Feb 2021 12:03:31 GMT ms-cv: - - tjpnhthwXkCNNQfF+Cdo/w.0 + - 0VKGzICzu0+1KZhxb4ttbA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 914ms + - 843ms status: code: 201 message: Created @@ -238,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:39:59 GMT + - Fri, 26 Feb 2021 12:03:31 GMT ms-cv: - - xCABMGD4SkioG5EB7Ku4vg.0 + - KUJp/w/K20ucmiqi9tQvEA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 852ms + - 411ms status: code: 201 message: Created @@ -262,7 +262,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:02 GMT + - Fri, 26 Feb 2021 12:03:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -276,15 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:40:16 GMT + - Fri, 26 Feb 2021 12:03:48 GMT ms-cv: - - l0VhZn5yTUWejgock+mCxw.0 + - 3uE4YtbJHUGKV1HGH3GKsg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16650ms + - 16951ms status: code: 204 message: No Content @@ -300,7 +300,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:18 GMT + - Fri, 26 Feb 2021 12:03:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -314,15 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:40:32 GMT + - Fri, 26 Feb 2021 12:04:05 GMT ms-cv: - - Rya61DzLI0mk/sOoSiQZgw.0 + - VJIIQjrGZ06aZbSC6YjDew.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16108ms + - 16544ms status: code: 204 message: No Content @@ -348,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:40:33 GMT + - Fri, 26 Feb 2021 12:04:06 GMT ms-cv: - - LfQsAIDlmU+U4Q25/HelgA.0 + - A9sILcw1fU2n8S+I8lvuEg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 363ms + - 629ms 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 77429f19445c..1e2c981bca44 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:35 GMT + - Fri, 26 Feb 2021 12:04:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:32 GMT + - Fri, 26 Feb 2021 12:04:06 GMT ms-cv: - - 5oS4RsuSXUGyboRKXJGJMQ.0 + - C56QUWXJRUSvsWZBhqqoww.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 38ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:35 GMT + - Fri, 26 Feb 2021 12:04:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:32.5284468+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:06.0435011+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:32 GMT + - Fri, 26 Feb 2021 12:04:06 GMT ms-cv: - - T9llP2/eWEGYLVaQH1g8dQ.0 + - gv50/C7bIUyxfIFcqOAOlQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 96ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:36 GMT + - Fri, 26 Feb 2021 12:04:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-00be-b0b7-3a3a0d007453"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-273f-dbb7-3a3a0d00a8d6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:32 GMT + - Fri, 26 Feb 2021 12:04:06 GMT ms-cv: - - tnPVNxSPvU+Jq1gU8kNOgw.0 + - nkmCP6jD3kiTjJuhMlgS+A.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:36 GMT + - Fri, 26 Feb 2021 12:04:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:32.7322868+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:06.2483927+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:32 GMT + - Fri, 26 Feb 2021 12:04:06 GMT ms-cv: - - 0jTSLX9npEaC9m2gdmx2kg.0 + - ZwILHKYPzEGgTs5V1slC/g.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 94ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - dc9fc12f-5a27-40d4-b3f5-2ae2508d5892 + - 0a53a40f-f59d-4cb6-b767-21f47661e822 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QSOo6M05cwziJ6F07WwlELURrnc-4ZQuiM4q8mq8yho1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:40:34Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-fff1-b0b7-3a3a0d007451"}}}}' + body: '{"chatThread": {"id": "19:Cnvb9l6kZc7IES8wikp8LZ-_YzEcnH2qIDOAfYuDKdg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:04:08Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:34 GMT + - Fri, 26 Feb 2021 12:04:08 GMT ms-cv: - - to+oszUeLUiRe29QR7hupA.0 + - CyWPRioGwUq6W4omPvLcGA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 995ms + - 1285ms status: code: 201 message: Created @@ -238,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:35 GMT + - Fri, 26 Feb 2021 12:04:08 GMT ms-cv: - - ArzYl+N1e06ZXW1eOgzyCA.0 + - VbsImRzIL0CSAduCzLW6nA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 949ms + - 443ms status: code: 201 message: Created @@ -262,7 +262,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:38 GMT + - Fri, 26 Feb 2021 12:04:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -276,15 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:40:52 GMT + - Fri, 26 Feb 2021 12:04:25 GMT ms-cv: - - RhIk79JahUWEOwcQfSkptA.0 + - b11Lz65X5UuNE9W1274UoQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16506ms + - 16212ms status: code: 204 message: No Content @@ -300,7 +300,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:55 GMT + - Fri, 26 Feb 2021 12:04:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -314,15 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:08 GMT + - Fri, 26 Feb 2021 12:04:41 GMT ms-cv: - - fcI5i85ypUufZgpP93uf1w.0 + - pRZNWRra2EKhWLsjihVHpg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16544ms + - 16268ms status: code: 204 message: No Content @@ -348,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:41:09 GMT + - Fri, 26 Feb 2021 12:04:42 GMT ms-cv: - - 6CUDuJbdA0eot04bvls4Vw.0 + - zc0YVCJFcEawh3TtQwQvrA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 299ms + - 305ms 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 1f79f3f2fce7..a67455b4106a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:12 GMT + - Fri, 26 Feb 2021 12:04:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:09 GMT + - Fri, 26 Feb 2021 12:04:41 GMT ms-cv: - - qBvsFQbvoUqrbpN3QnHBkQ.0 + - gY1p5UPRYkKOQ/NMtQ2jfA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 58ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:12 GMT + - Fri, 26 Feb 2021 12:04:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:08.0575571+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:41.7963031+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:09 GMT + - Fri, 26 Feb 2021 12:04:42 GMT ms-cv: - - E+49+7IACkCoPJetYi5dhA.0 + - ydvvAoKwJUW+dhK4IfuVAA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 97ms + - 94ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:12 GMT + - Fri, 26 Feb 2021 12:04:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8f65-1655-373a0d0070e2"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b2f7-1655-373a0d00a949"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:09 GMT + - Fri, 26 Feb 2021 12:04:42 GMT ms-cv: - - cmEJ0AMjeECZAdqiUlrH6A.0 + - 7lGC123k8kCNKMZvJheCGA.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:12 GMT + - Fri, 26 Feb 2021 12:04:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:09.2863109+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:42.0070857+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:10 GMT + - Fri, 26 Feb 2021 12:04:42 GMT ms-cv: - - NrPjCuWXPE6pXHBFIEfTog.0 + - xAm9yh6nv0ufaGwTNYjurA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 108ms + - 92ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 310c68a1-3d3d-48e2-87b0-e5937e25e177 + - bb486652-e79c-406d-80d1-b449d50411f2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:rKjsMf-S9LMtckGy6_ZzAT3TEKvFWFqJB9oFrOcAJbk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:41:10Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-8e99-1655-373a0d0070e1"}}}}' + body: '{"chatThread": {"id": "19:i48tGU1xRGk4jW4Dc4Cz74VjQkp38EzhIojsbNey_P01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:04:43Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:10 GMT + - Fri, 26 Feb 2021 12:04:43 GMT ms-cv: - - ykzeekTTq0aRbtICUpV9oQ.0 + - JTruUUu0hU2+fSYcwx4eEg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 816ms + - 836ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:10 GMT + - Fri, 26 Feb 2021 12:04:44 GMT ms-cv: - - iFZJMDTNCUutTD/mtRnp7A.0 + - qv8F9Nk/Q0G1sxmqHbtBRg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 359ms + - 663ms status: code: 201 message: Created @@ -273,13 +273,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:41:11 GMT + - Fri, 26 Feb 2021 12:04:45 GMT ms-cv: - - /ugsStWHu0q8LutS99F0Mw.0 + - 4ETl4yZti0W8K8NPcvE3qQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 382ms + - 391ms status: code: 204 message: No Content @@ -295,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:14 GMT + - Fri, 26 Feb 2021 12:04:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:27 GMT + - Fri, 26 Feb 2021 12:05:01 GMT ms-cv: - - MHiAOxrDbES4G5sUGGif3A.0 + - exa+9nQUJE6/7t7o+XCaKg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15994ms + - 15871ms status: code: 204 message: No Content @@ -333,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:30 GMT + - Fri, 26 Feb 2021 12:05:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:43 GMT + - Fri, 26 Feb 2021 12:05:16 GMT ms-cv: - - kYrZoAwa/E2Dv70v35q8LQ.0 + - PitDGcQuHU6miK+jJGAbsQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15946ms + - 16047ms status: code: 204 message: No Content @@ -381,13 +381,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:41:44 GMT + - Fri, 26 Feb 2021 12:05:16 GMT ms-cv: - - fdN21UUkgEutSZAe4bWQYA.0 + - dZchSrcysES/tCrCfzW9OQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 298ms 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 86e2c93bd903..4b8c4b48c996 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:47 GMT + - Fri, 26 Feb 2021 12:05:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:44 GMT + - Fri, 26 Feb 2021 12:05:17 GMT ms-cv: - - i8xO6S8GyUSnEqLmuQg9xA.0 + - CMjpfrs5bUWt1La66YOR9w.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 78ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:47 GMT + - Fri, 26 Feb 2021 12:05:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:43.9840253+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:17.4702584+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:44 GMT + - Fri, 26 Feb 2021 12:05:17 GMT ms-cv: - - iU1Z9PwuCkW+6exjWlrVgg.0 + - R3bJ9kb3iEaE3WTfT7eIwg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 96ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:47 GMT + - Fri, 26 Feb 2021 12:05:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-17d0-1db7-3a3a0d0075a7"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3e3e-b0b7-3a3a0d00a83b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:44 GMT + - Fri, 26 Feb 2021 12:05:17 GMT ms-cv: - - vfmhsmV4JUypyUKo9jaooA.0 + - zKTcjCcwNk2TYiBzGrr5QA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:47 GMT + - Fri, 26 Feb 2021 12:05:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:44.1800765+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:17.6633169+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:44 GMT + - Fri, 26 Feb 2021 12:05:17 GMT ms-cv: - - UrC8dnEG/kWkCA2cju1ZYg.0 + - 1KAmfLUCB0afUayV2jPo3Q.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 89ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 9deed7aa-5690-490c-8665-11073815fb1c + - 3c5eb4d0-e822-4784-b1ac-269197100747 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:_ZH80JzTHM7XscIXI6IWnAnYCPF1GWTULlNRaLBYj5o1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:41:45Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}}}' + body: '{"chatThread": {"id": "19:nWPMinL9lfaDs4Tmk3JOaEUSYqYE8yFeRpxYmu7SQwo1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:05:18Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:45 GMT + - Fri, 26 Feb 2021 12:05:18 GMT ms-cv: - - 3fQ5lmqPfkS9j9M23CBXyA.0 + - 3+8Iu5De/kSlFwcx7m3Y0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 824ms + - 837ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:46 GMT + - Fri, 26 Feb 2021 12:05:20 GMT ms-cv: - - T0z/nD9epEuXCuqoqm2aGg.0 + - ZeZf8+zJG0aSDfBIDv/+7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 361ms + - 818ms status: code: 201 message: Created @@ -265,25 +265,25 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614159706556", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614341120441", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-24T09:41:46Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-170f-1db7-3a3a0d0075a6"}}}' + "2021-02-26T12:05:20Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:46 GMT + - Fri, 26 Feb 2021 12:05:20 GMT ms-cv: - - 9NHocfQeJkqY/VS3Hjp66w.0 + - ktWYgj5X1kukk49JiqWZ7A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 251ms + - 254ms status: code: 200 message: OK @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:49 GMT + - Fri, 26 Feb 2021 12:05:23 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:03 GMT + - Fri, 26 Feb 2021 12:05:36 GMT ms-cv: - - ZH9/XXGCwEySLPZODgzhaQ.0 + - akXPP9bydkOmLoIxI1C+YQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16108ms + - 16118ms status: code: 204 message: No Content @@ -337,7 +337,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:05 GMT + - Fri, 26 Feb 2021 12:05:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:18 GMT + - Fri, 26 Feb 2021 12:05:53 GMT ms-cv: - - WwtrJVvf2Uuq8C1IQuvk0w.0 + - d2hTcnaSA0ybaMcG204IeA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16461ms + - 17017ms status: code: 204 message: No Content @@ -385,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:42:19 GMT + - Fri, 26 Feb 2021 12:05:54 GMT ms-cv: - - uxp0ZFPFtUW9loLiRKBDqw.0 + - EdpS7u6ocEaKaJg7TGtUGQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 349ms + - 545ms 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 2fc78d718cf5..1fb9272e7d86 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:22 GMT + - Fri, 26 Feb 2021 12:05:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:20 GMT + - Fri, 26 Feb 2021 12:05:55 GMT ms-cv: - - //OHHyNfUUmY6n2w+uBhtw.0 + - DHOsG3Y4BkShPl4Qfo933Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 19ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:22 GMT + - Fri, 26 Feb 2021 12:05:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:19.5634988+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:54.3349006+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:20 GMT + - Fri, 26 Feb 2021 12:05:55 GMT ms-cv: - - UWgUpwwAeEKfT48u5hdl3A.0 + - bwI57QZvtEOtWSKXpLgYtw.0 request-context: - appId= strict-transport-security: @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:23 GMT + - Fri, 26 Feb 2021 12:05:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a2dd-1db7-3a3a0d0075ab"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-ce49-b0b7-3a3a0d00a849"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:20 GMT + - Fri, 26 Feb 2021 12:05:55 GMT ms-cv: - - v8MIc8joWkaaw0HaSXTmVg.0 + - 5fFKlCR6YEy1KCqABv/Ozg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 14ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:23 GMT + - Fri, 26 Feb 2021 12:05:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:19.7721483+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:54.5328801+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:20 GMT + - Fri, 26 Feb 2021 12:05:55 GMT ms-cv: - - DCOoNoZIOUa9rAJEdxnV7w.0 + - zBYKRlXvpk6CyTO2um9VYA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 88ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 5ed46979-6e49-4f45-9d18-f22fd287b4f4 + - 9a1f8010-2300-4122-b8a5-452229e3a064 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:zFCcvRvbCpFYPDAKOyrNeVPh_SEjETRMAlIqcCbju1A1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:42:21Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-a20c-1db7-3a3a0d0075aa"}}}}' + body: '{"chatThread": {"id": "19:32_qK_v1IxMROj4mF2gAkKeRbp2xoUf02DcMxKB-un81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:05:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:21 GMT + - Fri, 26 Feb 2021 12:05:56 GMT ms-cv: - - c71YVL8R+0i+GNyiZevf0Q.0 + - zw7vQ1kYfESoPPZrirJKJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 828ms + - 1210ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:21 GMT + - Fri, 26 Feb 2021 12:05:56 GMT ms-cv: - - HLSbS2zTiUqGHCwMjzOjog.0 + - SlPnpaETPEiWfbOGsIf4Fw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 366ms + - 384ms status: code: 201 message: Created @@ -272,15 +272,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:21 GMT + - Fri, 26 Feb 2021 12:05:57 GMT ms-cv: - - e83kUyEjik6UTBGMorMYVQ.0 + - exIfbFNxWUyoVd8pDSUVYw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 269ms + - 262ms status: code: 200 message: OK @@ -305,15 +305,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:22 GMT + - Fri, 26 Feb 2021 12:05:57 GMT ms-cv: - - vc8Y6e3A102j/QOrxLC0gg.0 + - jxkkoUxTTkWe97U4ELN4/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 364ms + - 357ms status: code: 200 message: OK @@ -338,15 +338,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:22 GMT + - Fri, 26 Feb 2021 12:05:58 GMT ms-cv: - - bBOthhVj20aeBQJNE+bI6g.0 + - HLuZOSKeIkiuTVsfBO6Ldg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 365ms + - 354ms status: code: 200 message: OK @@ -371,15 +371,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:22 GMT + - Fri, 26 Feb 2021 12:05:58 GMT ms-cv: - - ZfAY1uwkSkiI8s3h5zleAQ.0 + - 1WalV7YS4k2r4oaDyIAIWQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 364ms + - 354ms status: code: 200 message: OK @@ -395,7 +395,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:26 GMT + - Fri, 26 Feb 2021 12:06:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -409,15 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:39 GMT + - Fri, 26 Feb 2021 12:06:15 GMT ms-cv: - - JhVl3JWuxEi+NL+SIu5LxA.0 + - n0PKkQkNN0mhOQ407ioLlQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16285ms + - 16610ms status: code: 204 message: No Content @@ -433,7 +433,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:42 GMT + - Fri, 26 Feb 2021 12:06:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -447,15 +447,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:56 GMT + - Fri, 26 Feb 2021 12:06:31 GMT ms-cv: - - TJzwr4hnqkKqlXQW8GzHpw.0 + - Vei4Cp8KRESkU1qakvWy2g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16466ms + - 16145ms status: code: 204 message: No Content @@ -481,13 +481,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:42:56 GMT + - Fri, 26 Feb 2021 12:06:31 GMT ms-cv: - - 60V2hI4oCkW7ee4QWSB+Gw.0 + - eHx6WKVe+EG5UyV9EBPBtg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 348ms + - 325ms 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 a0e75e0f3857..20e953756fc8 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:59 GMT + - Fri, 26 Feb 2021 12:06:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:57 GMT + - Fri, 26 Feb 2021 12:06:31 GMT ms-cv: - - TUXkmpR0t0aNRwTkHvAggg.0 + - bijiu5whJEmdiBkzsw3guw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:59 GMT + - Fri, 26 Feb 2021 12:06:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:56.6433991+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:06:31.6848364+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:57 GMT + - Fri, 26 Feb 2021 12:06:31 GMT ms-cv: - - 2Gt7GK1t5UOZSbvDX55CUA.0 + - SXP7B5myfEOG/r/1q2YAOQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:00 GMT + - Fri, 26 Feb 2021 12:06:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-33a6-1655-373a0d0070ed"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-6037-b0b7-3a3a0d00a84b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:57 GMT + - Fri, 26 Feb 2021 12:06:31 GMT ms-cv: - - c3yJMa77K0KzZ8o9HwLe4Q.0 + - nJhm5PxCBESiS9/04eGtQA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 17ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:00 GMT + - Fri, 26 Feb 2021 12:06:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:56.8445691+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:06:31.8927515+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:57 GMT + - Fri, 26 Feb 2021 12:06:32 GMT ms-cv: - - yi7qZJ3hmU+ajHgCUUhJwg.0 + - XONm7XdQKU+qSJ+MYkR8IQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - a4778af3-9cd1-4449-87f7-692c6ba174c6 + - 389547ac-d81f-4ad8-b0ac-e72477163093 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:qCBKex-mF9Zsw4J6qLD6SJEXfkFKLNel3E_VrzcOPxg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:42:58Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-32e1-1655-373a0d0070ec"}}}}' + body: '{"chatThread": {"id": "19:7NquNsqCXQP2pBh_rcmZwx2y9Ct80a3d3nYI7GBJGkY1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:06:33Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:58 GMT + - Fri, 26 Feb 2021 12:06:33 GMT ms-cv: - - FWYRDQMEUESH5z2j8V035Q.0 + - Jsv6TWwi8UW1vglYJ0Qixw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 839ms + - 879ms status: code: 201 message: Created @@ -238,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:58 GMT + - Fri, 26 Feb 2021 12:06:34 GMT ms-cv: - - N++1QPPVDUqDNfDc3G+bjg.0 + - 6T79vTDpW06DI9UsBRbfew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 454ms + - 864ms status: code: 201 message: Created @@ -271,15 +271,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:59 GMT + - Fri, 26 Feb 2021 12:06:34 GMT ms-cv: - - XHmchry+NEOa5O8Pwa2DGA.0 + - RR4q4Smg20utxQmtyoXGUg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 266ms + - 263ms status: code: 200 message: OK @@ -295,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:02 GMT + - Fri, 26 Feb 2021 12:06:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:16 GMT + - Fri, 26 Feb 2021 12:06:51 GMT ms-cv: - - M2Po/WxX60qLbtQ/zUTSrg.0 + - eS6uCcJdLUC03ZDo5qqrpQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16479ms + - 16373ms status: code: 204 message: No Content @@ -333,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:18 GMT + - Fri, 26 Feb 2021 12:06:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:31 GMT + - Fri, 26 Feb 2021 12:07:07 GMT ms-cv: - - OJGlKr/q9kmPVkJ+UVeJxw.0 + - DPJ2yCDvZUSaEX4r0YndAw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15843ms + - 16408ms status: code: 204 message: No Content @@ -381,13 +381,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:43:32 GMT + - Fri, 26 Feb 2021 12:07:08 GMT ms-cv: - - Yag2yTPrJUeYO8GV2UrlgA.0 + - R67HJQgeeUSlyqJoTuBx6Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 335ms + - 291ms 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 233e818b7fe5..25ebd70ae3d3 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:35 GMT + - Fri, 26 Feb 2021 12:15:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:32 GMT + - Fri, 26 Feb 2021 12:15:24 GMT ms-cv: - - Bs1ZdEftjUWurHFxq3cpvA.0 + - 9uG+zPYuMEezPN+0P7p6fQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 18ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:35 GMT + - Fri, 26 Feb 2021 12:15:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:32.2515944+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:15:23.5462641+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:32 GMT + - Fri, 26 Feb 2021 12:15:24 GMT ms-cv: - - x/PVD3WLy027h9fp+ZSdPQ.0 + - Out5blNxykCQKasxRH5h0A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 322ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:35 GMT + - Fri, 26 Feb 2021 12:15:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-beba-9c58-373a0d0070ea"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7de4-b0b7-3a3a0d00a87a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:32 GMT + - Fri, 26 Feb 2021 12:15:24 GMT ms-cv: - - pQO88SEj9kiKQtRgr830GA.0 + - LpJ+sC0t+0qDYYw/XJqNhA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 63ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:35 GMT + - Fri, 26 Feb 2021 12:15:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:32.4375975+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:15:23.8344937+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:33 GMT + - Fri, 26 Feb 2021 12:15:24 GMT ms-cv: - - FExspzXssUOe88DVVArJKA.0 + - nmN/JDK4tUOwRiqbPvsrGQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 96ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 97d0b8d4-a261-486e-8ca8-75ab0a7d9d0f + - 9df07078-f0c0-4126-b70b-33f4524414c8 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:1Stv3fOVJ1cGTkepCbKQzJQKSx0y2TjFv2Kdeaiyh5s1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:43:33Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-bdf7-9c58-373a0d0070e9"}}}}' + body: '{"chatThread": {"id": "19:XkmURDPtXWNsAgNxz7FXQkFKrXpezhYUOnhZsRiZ0MY1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:15:25Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:34 GMT + - Fri, 26 Feb 2021 12:15:25 GMT ms-cv: - - kQt0oIdAaEmqVqEgvIeZPA.0 + - aFTj8dR+Gk2Hf0w5F1OSXw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 899ms + - 1281ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:34 GMT + - Fri, 26 Feb 2021 12:15:26 GMT ms-cv: - - /Zr5JHmk1USfDaNgSqWr9w.0 + - Qmf+vjYxJUCvneTJWRJH5w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 392ms + - 681ms status: code: 201 message: Created @@ -277,13 +277,13 @@ interactions: content-length: - '0' date: - - Wed, 24 Feb 2021 09:43:36 GMT + - Fri, 26 Feb 2021 12:15:27 GMT ms-cv: - - cv5+6QVRcEu5HM1eiBeryw.0 + - p+b2vtFMWUu8SG4Yhq2G9A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 956ms + - 651ms status: code: 200 message: OK @@ -308,15 +308,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:35 GMT + - Fri, 26 Feb 2021 12:15:28 GMT ms-cv: - - grPOlASp9kSGcWiA7v5Bjg.0 + - 23SLfO3hHEi6GeMmr0VpaQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 546ms status: code: 200 message: OK @@ -346,15 +346,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:36 GMT + - Fri, 26 Feb 2021 12:15:28 GMT ms-cv: - - 3bb3TD3DB0mEs6I7TrTXew.0 + - wX5Mp6Ljc0WQxvLFdoLY6A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 385ms + - 361ms status: code: 201 message: Created @@ -384,13 +384,13 @@ interactions: content-length: - '0' date: - - Wed, 24 Feb 2021 09:43:37 GMT + - Fri, 26 Feb 2021 12:15:29 GMT ms-cv: - - Z0KQDeFXx0CqcrlArHryxw.0 + - wSctsbzK2EibYJVMfdu4wg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 458ms + - 898ms status: code: 200 message: OK @@ -415,15 +415,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:37 GMT + - Fri, 26 Feb 2021 12:15:30 GMT ms-cv: - - CKNLGrzy3k65CQwEVtV0cg.0 + - j2dTDlgy6Eu5Ba6EPS3gyg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 247ms + - 698ms status: code: 200 message: OK @@ -453,15 +453,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:38 GMT + - Fri, 26 Feb 2021 12:15:30 GMT ms-cv: - - 8DPx0q/ZoUeuqv7fphtqFw.0 + - XW6Kqdjaq0qI56xVU249nw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 397ms + - 375ms status: code: 201 message: Created @@ -491,13 +491,13 @@ interactions: content-length: - '0' date: - - Wed, 24 Feb 2021 09:43:38 GMT + - Fri, 26 Feb 2021 12:15:31 GMT ms-cv: - - 0MMNyqJS0E2S8DHLW2Tvag.0 + - KucuMkDKj0Wb4ZJTem4yfQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 456ms + - 1063ms status: code: 200 message: OK @@ -522,15 +522,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:38 GMT + - Fri, 26 Feb 2021 12:15:32 GMT ms-cv: - - hJec8DhczUSqyLjPOfYHng.0 + - 0C9Nhf/JjEeF+dr5Shz+Iw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 253ms status: code: 200 message: OK @@ -555,15 +555,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:39 GMT + - Fri, 26 Feb 2021 12:15:32 GMT ms-cv: - - KSUTPvYEIkGVQxLCK8mvxA.0 + - ON1w6/Qw5k+85vB0D3pLQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 262ms status: code: 200 message: OK @@ -579,7 +579,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:42 GMT + - Fri, 26 Feb 2021 12:15:35 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -593,15 +593,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:54 GMT + - Fri, 26 Feb 2021 12:15:48 GMT ms-cv: - - QQ31R7DR5kyl65MBWeldkw.0 + - yksC663Zo0iRofVqB9sPQA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15800ms + - 16277ms status: code: 204 message: No Content @@ -617,7 +617,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:57 GMT + - Fri, 26 Feb 2021 12:15:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -631,15 +631,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:11 GMT + - Fri, 26 Feb 2021 12:16:05 GMT ms-cv: - - pimdFBKY902ypjluLmw0BA.0 + - H3lningfgkGWDgdypQdm9g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15985ms + - 16189ms status: code: 204 message: No Content @@ -665,13 +665,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:44:11 GMT + - Fri, 26 Feb 2021 12:16:05 GMT ms-cv: - - qgwf3Bqg9k+qsoH8AS2Zvw.0 + - H5DNegNwU028ZCE8vqnfiw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 349ms + - 323ms 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 a1fcf53d43b7..fb9b9c0cf64e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:11 GMT + - Fri, 26 Feb 2021 12:07:49 GMT ms-cv: - - RGGkY8TXf02ymr0HDqShuA.0 + - miBo6YpwJkmX/uy+GEI3ZA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:11.204326+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:07:49.7985456+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:11 GMT + - Fri, 26 Feb 2021 12:07:49 GMT ms-cv: - - RKgqdsimJE+01NzqAJvUuQ.0 + - xf//gNa65066zVxf1t4Q4w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 98ms + - 94ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-56e3-1655-373a0d0070f1"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-9145-1655-373a0d00a95b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:12 GMT + - Fri, 26 Feb 2021 12:07:49 GMT ms-cv: - - sz2n/j/l1k2pEkI4dBMWOA.0 + - mugV3SoFlEC5cAjUMwpnmw.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:11.3913918+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:07:50.002603+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:12 GMT + - Fri, 26 Feb 2021 12:07:50 GMT ms-cv: - - jDCHJ6yngUi+3Rm9doRWhQ.0 + - 9+ntCrQqLUqhxCjMqIjQAQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 88ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - dfcd653d-1023-4fdd-a574-0571599e6db2 + - 694ddce7-76fa-466a-b28f-42799f63ac9f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:dYeLEaq0SIu99-K9bJjdl2vQullpKBED3FVxw199jO41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:44:12Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-560b-1655-373a0d0070f0"}}}}' + body: '{"chatThread": {"id": "19:SYJHqmG2KfPmdtP0n58xzVohp4eeB8fwfEShQlzqk9o1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:07:51Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:12 GMT + - Fri, 26 Feb 2021 12:07:52 GMT ms-cv: - - APFDWDngcUSJ027RwURA6w.0 + - eSWvEp/2qE2/37an4YfVEg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 917ms + - 834ms status: code: 201 message: Created @@ -238,20 +238,20 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:52 GMT ms-cv: - - dOBJce/fYUe6MdgNs+gIZw.0 + - C8X6KYPMp0O0VjnCeFNb3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 446ms + - 412ms status: code: 201 message: Created - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-56e3-1655-373a0d0070f1"}}' + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-9145-1655-373a0d00a95b"}}' headers: Accept: - application/json @@ -274,13 +274,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:44:14 GMT + - Fri, 26 Feb 2021 12:07:52 GMT ms-cv: - - 2lESLBIEekmkD5mw8TC4oA.0 + - MGZUEWRHyEuFeRbOERePUQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 489ms + - 448ms status: code: 204 message: No Content @@ -296,7 +296,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:17 GMT + - Fri, 26 Feb 2021 12:07:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -310,15 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:29 GMT + - Fri, 26 Feb 2021 12:08:08 GMT ms-cv: - - 5udG/U48sUWLBhFdjxwmJQ.0 + - WL498qqcQUGhJvxelvyD2g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15746ms + - 15927ms status: code: 204 message: No Content @@ -334,7 +334,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:32 GMT + - Fri, 26 Feb 2021 12:08:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -348,15 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:24 GMT ms-cv: - - VZawrKSxG0u8zCNPIsfikg.0 + - zi6SlFJwGUSoHLek7Ak0Mw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17031ms + - 16281ms status: code: 204 message: No Content @@ -382,13 +382,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:25 GMT ms-cv: - - TFwhDOHOpE6Rogykk6qMFg.0 + - VkEsS03b00+R7MrOUh62Xg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 292ms 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 30c4ace35c06..afa908981724 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:50 GMT + - Fri, 26 Feb 2021 12:08:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:25 GMT ms-cv: - - 9+R+NifC5E2iwqHQ9gO9iw.0 + - GEiML12UQEe5rGGAKTsT8Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:50 GMT + - Fri, 26 Feb 2021 12:08:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:47.4479834+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:08:25.3313799+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:25 GMT ms-cv: - - sRrJX/bg10CiO8gME2xAgA.0 + - QRvx2bGHRUipU51Xl8Jqzw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 94ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:50 GMT + - Fri, 26 Feb 2021 12:08:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e474-1db7-3a3a0d0075b5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1c16-9c58-373a0d00a428"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:25 GMT ms-cv: - - VptEY7ku/U2+monk9zPntA.0 + - k5Uo/i74dk6eGqKdQpJJtg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:51 GMT + - Fri, 26 Feb 2021 12:08:28 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:47.6373027+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:08:25.5183946+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:47 GMT + - Fri, 26 Feb 2021 12:08:25 GMT ms-cv: - - Ghf1h03QDkadLJaI1IUFkg.0 + - KFaGKkmUnU6lqKiXojNBGw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 86ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 97b61c23-e27f-4755-90b0-76ed00320f46 + - 50acff0f-98c3-4dc0-b621-a63124de2745 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:pMQvMgNqArCC8bC89T5b21h4h9LyD00TXJKU1Z4ApTw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:44:48Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-e3b6-1db7-3a3a0d0075b4"}}}}' + body: '{"chatThread": {"id": "19:LFFYufzyKzKyzNCzPaT9STlgQ9SGkKnaAayqHwrZiYo1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:08:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:49 GMT + - Fri, 26 Feb 2021 12:08:26 GMT ms-cv: - - BT6+WcnZUkGjlXhhd7maVw.0 + - psebM6Us80CPt88sYwWl/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 907ms + - 825ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:49 GMT + - Fri, 26 Feb 2021 12:08:27 GMT ms-cv: - - 6/CWqohWWU+HX1Ex/Acp+g.0 + - SmgXW1/YC0+i0eQl8zbu4w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 390ms + - 376ms status: code: 201 message: Created @@ -263,7 +263,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:52 GMT + - Fri, 26 Feb 2021 12:08:30 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -277,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:06 GMT + - Fri, 26 Feb 2021 12:08:44 GMT ms-cv: - - IRgrt6IV0k+sXYtZM0C0/w.0 + - WYGFA74bYkSsSQzo2the4A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16269ms + - 16578ms status: code: 204 message: No Content @@ -301,7 +301,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:09 GMT + - Fri, 26 Feb 2021 12:08:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -315,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:22 GMT + - Fri, 26 Feb 2021 12:09:00 GMT ms-cv: - - TpLmmTzKpk2+tV8SSVPcHw.0 + - 2UKWGsWhPUi9PXfKb6agCQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15823ms + - 16608ms status: code: 204 message: No Content @@ -349,13 +349,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:45:22 GMT + - Fri, 26 Feb 2021 12:09:01 GMT ms-cv: - - 97xRRz8LR0CG5ryFxQ20bQ.0 + - Q1Q6oimXMkGFdP7BQZ63Fw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 306ms + - 294ms 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 f708429a7768..d3e095f9fef3 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:25 GMT + - Fri, 26 Feb 2021 12:09:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:23 GMT + - Fri, 26 Feb 2021 12:09:01 GMT ms-cv: - - JMr5cP2q6ESRs70rdETSsg.0 + - VJ6uIXxMX0Wexxuw/3PAIg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:25 GMT + - Fri, 26 Feb 2021 12:09:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:22.3058923+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:01.0218331+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:23 GMT + - Fri, 26 Feb 2021 12:09:01 GMT ms-cv: - - gZmQXShFlkSdHa5LxuTI+A.0 + - fOK20XhFgk++K35Z8OxhYg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 98ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:25 GMT + - Fri, 26 Feb 2021 12:09:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6ca1-9c58-373a0d0070f6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a78e-1db7-3a3a0d00abcc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:23 GMT + - Fri, 26 Feb 2021 12:09:01 GMT ms-cv: - - XmDouzkOG0CzH82CDko3KQ.0 + - 0sDBZU64EU+cu3lvON9thA.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:25 GMT + - Fri, 26 Feb 2021 12:09:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:22.4948538+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:01.2453156+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:23 GMT + - Fri, 26 Feb 2021 12:09:01 GMT ms-cv: - - JslQYXRAb0qr7ZGd4cR0tQ.0 + - vf1+pNM3fE+5kTgVZGadwg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 93ms status: code: 200 message: OK @@ -181,35 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '256' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 75f90ec8-65b1-41f6-b586-09467759a350 + - 36de72c7-6354-46ee-a72a-70f194684048 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:NGkpqUZeRdK5AXx0F1BePzMdg-z1CNTGOGLRzbIHYM81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:45:23Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-6be1-9c58-373a0d0070f5"}}}}' + body: '{"chatThread": {"id": "19:xUYYbfIfDSr_CcNkXfHgM5Jxnm7i9O7CqTkR4e0cUKE1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:09:02Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:23 GMT + - Fri, 26 Feb 2021 12:09:02 GMT ms-cv: - - AiXYXhcYVE+jfMMIZOAYLQ.0 + - UFlbV3UrAkWO98WyQ/NAaw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 827ms + - 839ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:24 GMT + - Fri, 26 Feb 2021 12:09:03 GMT ms-cv: - - DLaI2SzT2kCJDbJ8Lqj+sA.0 + - DYZCJznIIESwZHl3XYI53w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 362ms + - 390ms status: code: 201 message: Created @@ -277,13 +277,13 @@ interactions: content-length: - '0' date: - - Wed, 24 Feb 2021 09:45:25 GMT + - Fri, 26 Feb 2021 12:09:04 GMT ms-cv: - - CXKLnCL7sU23PIa5FUL4Tg.0 + - 1r7/DNXQb0yvBJR349+L1Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 450ms + - 584ms status: code: 200 message: OK @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:28 GMT + - Fri, 26 Feb 2021 12:09:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:40 GMT + - Fri, 26 Feb 2021 12:09:20 GMT ms-cv: - - tN2lgXA5G02jWWbUVOExRw.0 + - yj0kBfGepU2YTfou+TdskQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15929ms + - 16301ms status: code: 204 message: No Content @@ -337,7 +337,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:44 GMT + - Fri, 26 Feb 2021 12:09:23 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:57 GMT + - Fri, 26 Feb 2021 12:09:36 GMT ms-cv: - - MDlqHVEOJ0iG/y0VoYhwgQ.0 + - /HAChRF+0Ei8s9tBWnyX+w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16436ms + - 16310ms status: code: 204 message: No Content @@ -385,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:45:58 GMT + - Fri, 26 Feb 2021 12:09:36 GMT ms-cv: - - tbEi70/T00yq8QlQARRpwQ.0 + - kcl2m8KxRE+oBuWqqxKeFw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 295ms 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 5e95da4b5a17..735db544c23c 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:01 GMT + - Fri, 26 Feb 2021 12:09:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:58 GMT + - Fri, 26 Feb 2021 12:09:37 GMT ms-cv: - - Oreg1rddMUaRgacrEa0AbA.0 + - 6fjyz2KxQ0mEERzD3Ya8Sg.0 request-context: - appId= strict-transport-security: @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:01 GMT + - Fri, 26 Feb 2021 12:09:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:58.0834003+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:36.9608151+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:58 GMT + - Fri, 26 Feb 2021 12:09:37 GMT ms-cv: - - hR2Cj1Y4+keX0hZtTh+ZDA.0 + - AFAMXvYv10+RfthoiHh8gg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 94ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:01 GMT + - Fri, 26 Feb 2021 12:09:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f861-1db7-3a3a0d0075c2"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-33ed-1db7-3a3a0d00abce"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:58 GMT + - Fri, 26 Feb 2021 12:09:37 GMT ms-cv: - - DBGWSzWnMEGeRgxCbXNItA.0 + - jCJdVnb4MEmGekSVnZwIMA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 14ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:01 GMT + - Fri, 26 Feb 2021 12:09:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:58.2714691+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:37.1677636+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:58 GMT + - Fri, 26 Feb 2021 12:09:37 GMT ms-cv: - - 9ZRdzdoik0aiWK/++lk/aQ.0 + - Mcce895CSUWjFiX0aXI/Lg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 94ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 113c76f2-7fce-4f2b-a8d8-1820ba146274 + - 9a0e49f6-066c-40fd-9a67-e11a84a90fbf method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:N5O_-TLlNciytSDVF-adnnHNDEn4QikJwB1TvTI3tBg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:45:59Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-f798-1db7-3a3a0d0075c1"}}}}' + body: '{"chatThread": {"id": "19:Fe96gg4xHhUwrAf-GgOk0Zpi9sn5DzuRZ5GQWixA_kI1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:09:38Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:59 GMT + - Fri, 26 Feb 2021 12:09:38 GMT ms-cv: - - +H39sB7TN06eTO5ozOrYAQ.0 + - KrDq+EY9C0uG3Om29Q3R6A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 845ms status: code: 201 message: Created @@ -237,13 +237,13 @@ interactions: content-length: - '0' date: - - Wed, 24 Feb 2021 09:46:00 GMT + - Fri, 26 Feb 2021 12:09:39 GMT ms-cv: - - iQJE+R1D1EifSi+gIHcuOw.0 + - kf/hhPsvZ0GggXaaOjoGcg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 348ms + - 649ms status: code: 200 message: OK @@ -259,7 +259,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:03 GMT + - Fri, 26 Feb 2021 12:09:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:17 GMT + - Fri, 26 Feb 2021 12:09:56 GMT ms-cv: - - co7gPnxJA06nrStD1Kj0zA.0 + - gV+hZcjvREmhq+dkw6XMMA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16594ms + - 17305ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:19 GMT + - Fri, 26 Feb 2021 12:09:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:32 GMT + - Fri, 26 Feb 2021 12:10:14 GMT ms-cv: - - aBXefF4Ib0Oakt+4f3jUJw.0 + - fDw0aDmpTkaiS2iNSnHTVg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16036ms + - 16697ms status: code: 204 message: No Content @@ -345,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:46:33 GMT + - Fri, 26 Feb 2021 12:10:14 GMT ms-cv: - - I7ZuDKmuOUaMY3dR6UwN6w.0 + - Z9vUN2pPf0ufffge7RUR9g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 324ms + - 295ms 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 e1ac1ce011ab..12d842bbec5a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:36 GMT + - Fri, 26 Feb 2021 12:10:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:33 GMT + - Fri, 26 Feb 2021 12:10:14 GMT ms-cv: - - +AjabBx8FkW9Q7eZT1ZUow.0 + - DJmO3iP14U6gB1orMT451w.0 request-context: - appId= strict-transport-security: @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:36 GMT + - Fri, 26 Feb 2021 12:10:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:33.4291026+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:10:14.3068121+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:33 GMT + - Fri, 26 Feb 2021 12:10:14 GMT ms-cv: - - qicnSeXIUEuzI8KU1X6EgQ.0 + - WXkzkOk2oUqFwa9M4JBR7g.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 99ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:36 GMT + - Fri, 26 Feb 2021 12:10:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-8273-1655-373a0d0070f9"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c5d5-1655-373a0d00a965"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:33 GMT + - Fri, 26 Feb 2021 12:10:14 GMT ms-cv: - - yFPxWiGdY0W6IQ7VZv2vsA.0 + - oKkPlNfdwUatKEVikKTDHA.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:37 GMT + - Fri, 26 Feb 2021 12:10:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:33.6231281+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:10:14.5316612+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:33 GMT + - Fri, 26 Feb 2021 12:10:15 GMT ms-cv: - - Pt0f3icjiE+MO9I73fzsSg.0 + - nmnGh9YGeUOabxv942+6Yg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 86ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - f053d37a-eb99-48f7-aca4-2beb842f4c86 + - b5b366af-c598-4dd1-99c7-2b412b13f646 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:0IJlOsgFVaEvLMWoFwmZR6pesuYm-xXDBsU37zaoSAc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:46:35Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-815e-1db7-3a3a0d0075c5"}}}}' + body: '{"chatThread": {"id": "19:iRKyLMxBS2mZwCFx1tG0lLkQmWX17XCgcQqF9dzaCT81@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:10:15Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:35 GMT + - Fri, 26 Feb 2021 12:10:15 GMT ms-cv: - - /BW2dzhAnUOF3rjpaO3JWQ.0 + - xIrpxlKw00aa0TqfZIjbAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 889ms + - 834ms status: code: 201 message: Created @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:36 GMT + - Fri, 26 Feb 2021 12:10:16 GMT ms-cv: - - PRvNpgDotUiS8M8NqvKjLw.0 + - o5PqitISZ0ClhU4wAe1szw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 362ms + - 373ms status: code: 201 message: Created @@ -275,13 +275,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:46:36 GMT + - Fri, 26 Feb 2021 12:10:17 GMT ms-cv: - - AwDr+i9V8kGVPwBpmt3ylQ.0 + - E47vCRYOrUiODDfx1VqqAw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 643ms + - 659ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:39 GMT + - Fri, 26 Feb 2021 12:10:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:53 GMT + - Fri, 26 Feb 2021 12:10:33 GMT ms-cv: - - lLMEFD9Iw0elCgQs9rH8dQ.0 + - fhwbYrnwhEixN7BSuxVgbw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16589ms + - 16366ms status: code: 204 message: No Content @@ -335,7 +335,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:56 GMT + - Fri, 26 Feb 2021 12:10:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -349,15 +349,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:09 GMT + - Fri, 26 Feb 2021 12:10:49 GMT ms-cv: - - m61ZsW//0kqYe3yoaS5WBw.0 + - 06ta5oesU0q4I06++0/+Wg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16558ms + - 15944ms status: code: 204 message: No Content @@ -383,13 +383,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:47:09 GMT + - Fri, 26 Feb 2021 12:10:49 GMT ms-cv: - - VRi0+Er/SUi3Ik/zz1Ya4g.0 + - dhyuimj95kmjNuXcgxjlrg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 322ms + - 283ms 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 dfec569e19f0..8ac6d589e821 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:13 GMT + - Fri, 26 Feb 2021 12:13:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:10 GMT + - Fri, 26 Feb 2021 12:13:47 GMT ms-cv: - - 932Jmus/BE6z00XiY2wyTA.0 + - +viNcJzVI0u9NAD46+Xsqg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 17ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:13 GMT + - Fri, 26 Feb 2021 12:13:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:09.9071852+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:13:46.3666026+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:10 GMT + - Fri, 26 Feb 2021 12:13:47 GMT ms-cv: - - Jp9Aj6wK10KIzTplIp7WZw.0 + - l7a8a65830WboEU2Nf3+sg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:13 GMT + - Fri, 26 Feb 2021 12:13:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-10f2-dbb7-3a3a0d0074e0"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0226-dbb7-3a3a0d00a911"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:10 GMT + - Fri, 26 Feb 2021 12:13:47 GMT ms-cv: - - ARmT86q/BkSHMhRxjjSq5A.0 + - zxJ/0y0flkuRSIP0Twcmyg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 18ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:13 GMT + - Fri, 26 Feb 2021 12:13:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:10.098275+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:13:46.5666779+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:10 GMT + - Fri, 26 Feb 2021 12:13:47 GMT ms-cv: - - RJ6RImw2LEKbrOXWeqpkwg.0 + - pSuKscdrKEOGHPgQHSGpcA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 91ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - b8be8e46-eb71-4ae5-8276-466b7506eeee + - 33b978ff-6ac8-4e0c-b67f-1755d7e2a70d method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:sEQwKlZI1I1QY9YVGAg_7jE6_b_OnXzFYpE9xFEsFQo1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:47:11Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-1035-dbb7-3a3a0d0074df"}}}}' + body: '{"chatThread": {"id": "19:ul3XeFrh_muzB1qsL9ndS5QFG6no4UWdCcNawOsKTrc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T12:13:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:11 GMT + - Fri, 26 Feb 2021 12:13:48 GMT ms-cv: - - mA+AxVCsLkG0SD62EeH0cw.0 + - pg4FhZr8HU6ns2xxefG7sg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 879ms + - 821ms status: code: 201 message: Created @@ -237,13 +237,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:47:12 GMT + - Fri, 26 Feb 2021 12:13:48 GMT ms-cv: - - nbdC8uV6CEKXD0WJ1v//VA.0 + - eGFUwdOZX0CjEscv4jY1cg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 390ms + - 396ms status: code: 204 message: No Content @@ -259,7 +259,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:47:15 GMT + - Fri, 26 Feb 2021 12:13:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:28 GMT + - Fri, 26 Feb 2021 12:14:04 GMT ms-cv: - - I5uJguLXDkKXeoTyZ6M6dg.0 + - uHKEBqi3mU2NQXevoxnHqw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16207ms + - 16335ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:47:31 GMT + - Fri, 26 Feb 2021 12:14:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:45 GMT + - Fri, 26 Feb 2021 12:14:20 GMT ms-cv: - - SjLFl38DEky35eo8drVeXw.0 + - yEHYmjgtyEelyu5GH+kp7Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16228ms + - 16004ms status: code: 204 message: No Content @@ -345,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Wed, 24 Feb 2021 09:47:45 GMT + - Fri, 26 Feb 2021 12:14:21 GMT ms-cv: - - l/kz8WYtuUaUklGyip2Sfw.0 + - 3xQesD4Gu06g1SG92v4xxA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 299ms 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 d9f1f514efe4..3332cbd5c83e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:07 GMT + - Fri, 26 Feb 2021 11:14:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:05 GMT + - Fri, 26 Feb 2021 11:14:31 GMT ms-cv: - - AtVvqM2GNkaBy649ndomXw.0 + - MoDNISaZfU6ogI7Oa7M7JQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 17ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:08 GMT + - Fri, 26 Feb 2021 11:14:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:04.6631196+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:14:31.3463361+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:05 GMT + - Fri, 26 Feb 2021 11:14:31 GMT ms-cv: - - OVryUHlTBECYW/8rnZn8sQ.0 + - vjMDmi7Fxkq8SIFUx0OuBw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:08 GMT + - Fri, 26 Feb 2021 11:14:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-93d8-1db7-3a3a0d00759e"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c35a-1655-373a0d00a845"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:05 GMT + - Fri, 26 Feb 2021 11:14:31 GMT ms-cv: - - lbKtWPyYZUm07HRlDZJYvA.0 + - sCVURPy/rECSlcCNeWhnuA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 18ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:08 GMT + - Fri, 26 Feb 2021 11:14:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:04.8703094+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:14:31.5433108+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:05 GMT + - Fri, 26 Feb 2021 11:14:32 GMT ms-cv: - - dWO8+INCOUaHNSTMD6mECQ.0 + - 5hMNK9DptUep5IPvvAcLjw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 90ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 42154290-820d-4782-8322-3abb00820f23 + - 08eba994-4bbc-4c3f-86dc-12485d7ab7ea method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:4DcAQgZbUGn64fZ1FYVw0Md8DXvEnVPyPk51Uoqug_A1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:40:06Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734a-931b-1db7-3a3a0d00759d"}}}}' + body: '{"chatThread": {"id": "19:afaaIEadPsYHPmHS01A4KjxNMI2hq2LA3cHN3iZQBMs1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:14:32Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:40:06 GMT - ms-cv: JTXbVIGqSUaD0YcZpG3DCg.0 + date: Fri, 26 Feb 2021 11:14:33 GMT + ms-cv: Z44aQMcJdkeeLyTxqkKxpA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1026ms + x-processing-time: 821ms status: code: 201 message: Created @@ -221,11 +221,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:40:06 GMT - ms-cv: puRbBuxzMUWoAY/royhiNw.0 + date: Fri, 26 Feb 2021 11:14:33 GMT + ms-cv: dr50kR1WtEm8tayJMh/mbQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 457ms + x-processing-time: 870ms status: code: 201 message: Created @@ -244,10 +244,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:40:07 GMT - ms-cv: xyuoCMnZak+oa/BknfpfxQ.0 + date: Fri, 26 Feb 2021 11:14:34 GMT + ms-cv: oXYSjiA+70aUzHbIzl0+ew.0 strict-transport-security: max-age=2592000 - x-processing-time: 362ms + x-processing-time: 304ms status: code: 204 message: No Content @@ -264,7 +264,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:10 GMT + - Fri, 26 Feb 2021 11:14:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -278,15 +278,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:40:25 GMT + - Fri, 26 Feb 2021 11:14:50 GMT ms-cv: - - kW7CNbNNP0qKsjfDomjGRA.0 + - QSYmd6rigkmKootty/hHgQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17351ms + - 16193ms status: code: 204 message: No Content @@ -302,7 +302,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:28 GMT + - Fri, 26 Feb 2021 11:14:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -316,15 +316,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:40:40 GMT + - Fri, 26 Feb 2021 11:15:06 GMT ms-cv: - - HD8nt9mhp0m6HgGCKdOjzg.0 + - VKyu+rxehkG/vCuVhcJbCA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16098ms + - 15969ms 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 07d88a0c26fd..e851c6dd3580 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:44 GMT + - Fri, 26 Feb 2021 11:15:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:41 GMT + - Fri, 26 Feb 2021 11:15:06 GMT ms-cv: - - i1L8tJLgk0GOAKD5yur6Qw.0 + - YVCaoyIkTEeviXrBuQwoEQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 55ms + - 17ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:44 GMT + - Fri, 26 Feb 2021 11:15:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:41.1544313+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:06.583477+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:42 GMT + - Fri, 26 Feb 2021 11:15:06 GMT ms-cv: - - Vzeve4cCw0u/ri5Lj6dIhA.0 + - dWqXiy/PTU2MxBiBXY9YJA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 100ms + - 93ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:44 GMT + - Fri, 26 Feb 2021 11:15:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2265-9c58-373a0d0070ca"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4cfb-b0b7-3a3a0d00a749"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:42 GMT + - Fri, 26 Feb 2021 11:15:06 GMT ms-cv: - - 5aUYgG8so0e1u5CEORlSbQ.0 + - ULI1BjurjkicFK+WD/9/sw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:40:44 GMT + - Fri, 26 Feb 2021 11:15:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:40:41.3581238+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:06.780931+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:40:42 GMT + - Fri, 26 Feb 2021 11:15:06 GMT ms-cv: - - 0X4Pf0uLtEyOmYCLU3gkAQ.0 + - r8Krw5O7FEG4pnfxdiXXMA.0 request-context: - appId= strict-transport-security: @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - da23cf07-9051-4b25-aaa9-b14a404371a0 + - b0dfbbd3-4b76-4342-93cb-7ff369397e2a method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QTUHicbwVZ1NtFwQZft1tP_nfpnmvBvWSZnJZjIEnaw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:40:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-2199-9c58-373a0d0070c9"}}}}' + body: '{"chatThread": {"id": "19:XduQtU_yvxcLUB1D6ZEUw9qurMppwvgKeCODzSUNkNw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:15:08Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:40:43 GMT - ms-cv: HUY4HIiLCkyT62VCcEmQQA.0 + date: Fri, 26 Feb 2021 11:15:08 GMT + ms-cv: X8nK+CfB40yVIuHgKFx0FQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1008ms + x-processing-time: 828ms status: code: 201 message: Created @@ -221,11 +221,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:40:44 GMT - ms-cv: lKicCu+YKU2Ij32NtFf64g.0 + date: Fri, 26 Feb 2021 11:15:08 GMT + ms-cv: ZWVRBgXu3UKosHwwKlbzIQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 432ms + x-processing-time: 398ms status: code: 201 message: Created @@ -244,10 +244,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:40:44 GMT - ms-cv: d/uObfs630Guj755g5x/rw.0 + date: Fri, 26 Feb 2021 11:15:09 GMT + ms-cv: aRtoZApdpkilEOOQFqc80w.0 strict-transport-security: max-age=2592000 - x-processing-time: 357ms + x-processing-time: 302ms status: code: 204 message: No Content @@ -264,7 +264,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:40:47 GMT + - Fri, 26 Feb 2021 11:15:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -278,15 +278,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:00 GMT + - Fri, 26 Feb 2021 11:15:25 GMT ms-cv: - - i3Qfdc59pEK32zXl9MqXeQ.0 + - OzsIzfoD1UWnxKR8eGsCoQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16940ms + - 16085ms status: code: 204 message: No Content @@ -302,7 +302,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:04 GMT + - Fri, 26 Feb 2021 11:15:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -316,15 +316,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:17 GMT + - Fri, 26 Feb 2021 11:15:40 GMT ms-cv: - - 1ZuxFUJ/U0aOFe0sYYaQpA.0 + - fOV+WjG9606bbCtj4p7i6A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16678ms + - 15923ms 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 400b5c659a49..4d6f8d701f84 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:20 GMT + - Fri, 26 Feb 2021 11:15:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:17 GMT + - Fri, 26 Feb 2021 11:15:41 GMT ms-cv: - - Lm2p2GdUpk6hEU8GGSXJdw.0 + - +deK0VNm/UKpNLQMd6mKPg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 21ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:20 GMT + - Fri, 26 Feb 2021 11:15:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:17.6340677+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:41.2701178+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:17 GMT + - Fri, 26 Feb 2021 11:15:41 GMT ms-cv: - - WW6Mar1QLEaDoND9z4mwSw.0 + - yKqqDNZ5xEWIG/8EwNCAcg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:21 GMT + - Fri, 26 Feb 2021 11:15:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b0f3-1db7-3a3a0d0075a3"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d492-9c58-373a0d00a34f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:17 GMT + - Fri, 26 Feb 2021 11:15:41 GMT ms-cv: - - EJh+qfVxzUKr20xqQONgmA.0 + - 7CO7HiXq8EeUgi/5Yh1Gbw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 16ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:21 GMT + - Fri, 26 Feb 2021 11:15:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:17.8424624+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:41.4900529+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:17 GMT + - Fri, 26 Feb 2021 11:15:41 GMT ms-cv: - - ksBLVUCnbkW8ymA3GQU9Og.0 + - jaRRBT2ArkGi5kvWH0oOYg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 92ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 9d0adcf4-1a5d-4ac3-8ca8-c09201de433c + - 5cce6db9-aee2-40d2-b881-210658458000 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:9QMCj3NMuG061wduI5g1FOkyzRuTBf8Zhl8MvSn7Gd81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:41:19Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734b-b025-1db7-3a3a0d0075a2"}}}}' + body: '{"chatThread": {"id": "19:ld6bPI3rIUkOc9gruLl7gq_7aZfr3gDc5yK5H2xeTEQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:15:42Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:41:19 GMT - ms-cv: xZT+C6O31Eio22jYf7hwCw.0 + date: Fri, 26 Feb 2021 11:15:42 GMT + ms-cv: XT1/X6PRE0axKSOk8z2Bdw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1117ms + x-processing-time: 840ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:41:20 GMT - ms-cv: ptBFckx4PE+/LSgz5bCafw.0 + date: Fri, 26 Feb 2021 11:15:43 GMT + ms-cv: 3Z68vmqJ4kyDUJd5hSzGoQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 365ms + x-processing-time: 384ms status: code: 201 message: Created @@ -245,10 +245,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:41:20 GMT - ms-cv: rm570IXvwkWaLSTGOxNBBg.0 + date: Fri, 26 Feb 2021 11:15:44 GMT + ms-cv: 0FRykxzrZk+xHoZ6Ve0XTA.0 strict-transport-security: max-age=2592000 - x-processing-time: 393ms + x-processing-time: 437ms status: code: 204 message: No Content @@ -267,10 +267,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:41:21 GMT - ms-cv: l+JLygZOOEqEVVU05/OAgg.0 + date: Fri, 26 Feb 2021 11:15:44 GMT + ms-cv: ktKmpT3Z706AAjkDQyy92w.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 286ms status: code: 204 message: No Content @@ -287,7 +287,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:24 GMT + - Fri, 26 Feb 2021 11:15:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -301,15 +301,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:37 GMT + - Fri, 26 Feb 2021 11:16:01 GMT ms-cv: - - Qwi227gtu0qIvgWVO5HPww.0 + - TOtYrsPR90mFvaaGbBmpzQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16261ms + - 16536ms status: code: 204 message: No Content @@ -325,7 +325,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:41:40 GMT + - Fri, 26 Feb 2021 11:16:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -339,15 +339,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:41:54 GMT + - Fri, 26 Feb 2021 11:16:17 GMT ms-cv: - - ltoBfHQn6U+Q+a47tLrzhA.0 + - +cZVWDKkCk2f2584dTm+Dw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17260ms + - 16652ms 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 10c234362796..955235cc8d5c 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:57 GMT + - Fri, 26 Feb 2021 11:16:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:54 GMT + - Fri, 26 Feb 2021 11:16:17 GMT ms-cv: - - Xrk1NrQJeUyszd+OzvQveA.0 + - oD1Sr0VWlEyZ8AUyLPXXZA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:57 GMT + - Fri, 26 Feb 2021 11:16:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:54.5945844+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:17.5183007+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:55 GMT + - Fri, 26 Feb 2021 11:16:17 GMT ms-cv: - - eA9O+SA9R0qV/njjuHiC/Q.0 + - DBqa/fevVE6Yd3vxcjg3Hw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 105ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:58 GMT + - Fri, 26 Feb 2021 11:16:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4141-1655-373a0d0070eb"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-621b-b0b7-3a3a0d00a757"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:55 GMT + - Fri, 26 Feb 2021 11:16:17 GMT ms-cv: - - Q2Ux3n2HPEWE91kZPH8ONQ.0 + - YCqXeRQS9USPkrj7rgvaQA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 17ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:41:58 GMT + - Fri, 26 Feb 2021 11:16:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:41:54.7884476+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:17.731214+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:41:55 GMT + - Fri, 26 Feb 2021 11:16:17 GMT ms-cv: - - pG6HTZP6Ek+NqVC7pDCfeg.0 + - L9t7YONmPEeiv58bckDJ+A.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 101ms status: code: 200 message: OK @@ -177,28 +177,28 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - a72281bb-1268-4ed2-a642-74efaead899f + - e455b0a0-652d-4258-9acd-e59ae220d85a method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:uQsVR8vG1Thm6GdF7P72to3J99xqmbKLz7Upr9T8vWo1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:41:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}}}' + body: '{"chatThread": {"id": "19:-nvaAHM0xplEo7HdDLt_eTBC0UhGAN3k7ca36BP7OPg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:16:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:41:56 GMT - ms-cv: DaPg2t7ph0KLHR/y6VsEFA.0 + date: Fri, 26 Feb 2021 11:16:19 GMT + ms-cv: 6Bd0gu5askmwG6KU0Ln5SA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 823ms + x-processing-time: 963ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:41:56 GMT - ms-cv: kTg3o5Fz9UKYOfMitq4opA.0 + date: Fri, 26 Feb 2021 11:16:19 GMT + ms-cv: 5ZqYN170mE21TMLoExTQ1g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 412ms + x-processing-time: 383ms status: code: 201 message: Created @@ -241,18 +241,18 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614159717119", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614338180259", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-24T09:41:57Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-4064-1655-373a0d0070ea"}}}' + "2021-02-26T11:16:20Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:41:56 GMT - ms-cv: A0YZJCu010y5SK0eRcwLug.0 + date: Fri, 26 Feb 2021 11:16:19 GMT + ms-cv: a07sWHCON02XIrJskD83BQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 250ms + x-processing-time: 260ms status: code: 200 message: OK @@ -271,10 +271,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:41:57 GMT - ms-cv: CyeSfPRsJEmD8+CwPPslZQ.0 + date: Fri, 26 Feb 2021 11:16:20 GMT + ms-cv: NELgM87MVEKJCZ9Ryi9atg.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 290ms status: code: 204 message: No Content @@ -291,7 +291,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:00 GMT + - Fri, 26 Feb 2021 11:16:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -305,15 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:15 GMT + - Fri, 26 Feb 2021 11:16:37 GMT ms-cv: - - /kWHz1nbaUyvmasgStqr+w.0 + - xxa7/9pOYkeuF1s3mhaelA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17235ms + - 17061ms status: code: 204 message: No Content @@ -329,7 +329,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:17 GMT + - Fri, 26 Feb 2021 11:16:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -343,15 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:30 GMT + - Fri, 26 Feb 2021 11:16:54 GMT ms-cv: - - E3rkR+loU06LarLHtDaE6A.0 + - dz5hyEx6ZkaEMWksK21CBw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15883ms + - 16715ms 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 1f233af8a6ee..079771ba068c 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:33 GMT + - Fri, 26 Feb 2021 11:16:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:31 GMT + - Fri, 26 Feb 2021 11:16:55 GMT ms-cv: - - I/ZVMXLCEUG4dUYPAQiUrQ.0 + - oowAOAwgTkCA2AFKSENr8A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:33 GMT + - Fri, 26 Feb 2021 11:16:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:30.4410358+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:54.4245594+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:31 GMT + - Fri, 26 Feb 2021 11:16:55 GMT ms-cv: - - kYtCTwqDz0iTcX4detvsqg.0 + - qSrYYxNGN0CFPVbsUtScjg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 88ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:33 GMT + - Fri, 26 Feb 2021 11:16:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cd46-1db7-3a3a0d0075ad"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f23b-9c58-373a0d00a355"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:31 GMT + - Fri, 26 Feb 2021 11:16:55 GMT ms-cv: - - dFl1hcHd70SBnotTPchbow.0 + - DI3sxH3mgkahxXg0YtMsZg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 14ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:42:33 GMT + - Fri, 26 Feb 2021 11:16:57 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:42:30.6306328+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:54.6306048+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:42:31 GMT + - Fri, 26 Feb 2021 11:16:55 GMT ms-cv: - - sDnM4alHzEa8lgzUKy8DYg.0 + - aiLw/HD8mU+wHTYG4SHCuA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 88ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 64529e74-a9cb-428b-a173-c2b086e5f1e8 + - 409d1072-0834-41f2-810c-41d5f3cfdfa7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:3IyWQqPH3ozNqi4VV_DM7WXrQpn4Ww5rhKT_47foAmQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:42:31Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734c-cc8a-1db7-3a3a0d0075ac"}}}}' + body: '{"chatThread": {"id": "19:q-Bz3MBWk9YcI8PUaKZPmov_bLwWZxwYm81KMAaw7ZI1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:16:55Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:31 GMT - ms-cv: bCXbGvYIMkW4I+K+UT7fdA.0 + date: Fri, 26 Feb 2021 11:16:56 GMT + ms-cv: XCX2VBYAvEyxlLRqcnWbMg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 933ms + x-processing-time: 831ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:33 GMT - ms-cv: cX+YnvTcSESw9ZkAd5tHZA.0 + date: Fri, 26 Feb 2021 11:16:57 GMT + ms-cv: DCmAheU0jESHq0/CltNsRA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 404ms + x-processing-time: 389ms status: code: 201 message: Created @@ -245,11 +245,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:33 GMT - ms-cv: LC5o2zO/QEiiDhK1u1ef+A.0 + date: Fri, 26 Feb 2021 11:16:57 GMT + ms-cv: cEGogHpdP0izdy0x9Seilg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 260ms + x-processing-time: 289ms status: code: 200 message: OK @@ -268,11 +268,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:33 GMT - ms-cv: OlqFHR0J1k6n6JTd+VSUZA.0 + date: Fri, 26 Feb 2021 11:16:57 GMT + ms-cv: WVLkuCxJQkykG4r+1fFRlg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 367ms + x-processing-time: 353ms status: code: 200 message: OK @@ -291,8 +291,8 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:34 GMT - ms-cv: P0yGniiFXEe7FyyJzLryBA.0 + date: Fri, 26 Feb 2021 11:16:58 GMT + ms-cv: VbXxoLnKC0eL7vbRD6s0xw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 365ms @@ -314,11 +314,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:42:34 GMT - ms-cv: EWAfsiwWLkmTTcUIzuGMiA.0 + date: Fri, 26 Feb 2021 11:16:58 GMT + ms-cv: OjnpasD0+0GD5O7dEQKhcA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 363ms + x-processing-time: 356ms status: code: 200 message: OK @@ -337,10 +337,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:42:34 GMT - ms-cv: BJw7VCLPWUKmRrpwMebfCQ.0 + date: Fri, 26 Feb 2021 11:16:58 GMT + ms-cv: FZR5as2AgUSZ6dwUyB/sfw.0 strict-transport-security: max-age=2592000 - x-processing-time: 353ms + x-processing-time: 322ms status: code: 204 message: No Content @@ -357,7 +357,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:37 GMT + - Fri, 26 Feb 2021 11:17:00 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -371,15 +371,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:42:50 GMT + - Fri, 26 Feb 2021 11:17:15 GMT ms-cv: - - K40cofnY4kGVB3naFZtwkg.0 + - fThpxTiWR0WB+sjMjg6fBA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16300ms + - 16751ms status: code: 204 message: No Content @@ -395,7 +395,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:42:53 GMT + - Fri, 26 Feb 2021 11:17:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -409,15 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:07 GMT + - Fri, 26 Feb 2021 11:17:31 GMT ms-cv: - - /Bug8zzuuEyaZ0OKufBxJg.0 + - YCQyDYaqZU+5P2r/KMPOMw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16278ms + - 16140ms 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 5cfb9db81806..e0b07b7735a8 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:10 GMT + - Fri, 26 Feb 2021 11:17:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:07 GMT + - Fri, 26 Feb 2021 11:17:32 GMT ms-cv: - - pNrmRykJ2Ual3LzBFeKwhw.0 + - 2xcgC1GTqkGhIILp8Y/Fng.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 40ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:10 GMT + - Fri, 26 Feb 2021 11:17:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:07.213082+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:17:31.5028196+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:07 GMT + - Fri, 26 Feb 2021 11:17:32 GMT ms-cv: - - bYVxxjZbOE6bEiu1R420Gw.0 + - 7Md/5KYdKU2gZxsrnHqALg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:10 GMT + - Fri, 26 Feb 2021 11:17:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5ce8-dbb7-3a3a0d0074cd"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-8321-1655-373a0d00a850"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:07 GMT + - Fri, 26 Feb 2021 11:17:32 GMT ms-cv: - - Amee2WRKdEC9gJuEf+6fJw.0 + - mCn78nAn6E2YQktdM1gOFw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 15ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:10 GMT + - Fri, 26 Feb 2021 11:17:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:07.393857+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:17:31.7313756+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:08 GMT + - Fri, 26 Feb 2021 11:17:32 GMT ms-cv: - - IRt3geszUUKcwo1sn9TC7Q.0 + - neUM4gH2E0OdzfzKH8wTgw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 91ms status: code: 200 message: OK @@ -177,28 +177,28 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - ca3ab0d5-9cdd-4dc4-8c8c-e9499b5b5077 + - f4508b4e-1814-40fc-a105-773199600a90 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:ocwoMnuScpRCx-GExVBtWF9tRtceyZsYbtjU1GtuRSU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:43:08Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-5c2d-dbb7-3a3a0d0074cc"}}}}' + body: '{"chatThread": {"id": "19:uQz7kfMiUqQ6NU7nKmZ4NE3SCfMRbfhY0IcpYFlpZ3Y1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:17:33Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:08 GMT - ms-cv: Fr6vRW1dbEiMnFa0pIhYIw.0 + date: Fri, 26 Feb 2021 11:17:33 GMT + ms-cv: XKB8fkqsfEO2RPMmzNNMUg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 897ms + x-processing-time: 827ms status: code: 201 message: Created @@ -221,11 +221,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:09 GMT - ms-cv: o/vauZIYGk2Zr9DOnY/Vow.0 + date: Fri, 26 Feb 2021 11:17:34 GMT + ms-cv: yqD4uHpgp0iO9KBAEBsFfA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 455ms + x-processing-time: 440ms status: code: 201 message: Created @@ -244,11 +244,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:10 GMT - ms-cv: gcctTagYGEC9NkE/IcO9NQ.0 + date: Fri, 26 Feb 2021 11:17:34 GMT + ms-cv: PwWptBLTlEeGxitBNrhzDg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 256ms + x-processing-time: 271ms status: code: 200 message: OK @@ -267,10 +267,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:43:10 GMT - ms-cv: KDfBiTFIjEOwW4hMYJaBJQ.0 + date: Fri, 26 Feb 2021 11:17:34 GMT + ms-cv: wJ8eUNAiek2iptiYdznfCA.0 strict-transport-security: max-age=2592000 - x-processing-time: 337ms + x-processing-time: 299ms status: code: 204 message: No Content @@ -287,7 +287,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:13 GMT + - Fri, 26 Feb 2021 11:17:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -301,15 +301,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:26 GMT + - Fri, 26 Feb 2021 11:17:51 GMT ms-cv: - - rkaLiw2ch0O84INzyAqmGA.0 + - zrLO73Uiq0iooBt7my2PwQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16480ms + - 16662ms status: code: 204 message: No Content @@ -325,7 +325,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:29 GMT + - Fri, 26 Feb 2021 11:17:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -339,15 +339,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:43:43 GMT + - Fri, 26 Feb 2021 11:18:07 GMT ms-cv: - - 0aGw5QMiDES1CPZyOhHkLQ.0 + - gEFIrsNj8keuPWy+J0O3Pg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16709ms + - 16760ms 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 08d0b362ea98..023a4ed7c1db 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:46 GMT + - Fri, 26 Feb 2021 11:18:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:43 GMT + - Fri, 26 Feb 2021 11:18:08 GMT ms-cv: - - 0gYyhkN6T0mtHg2QfSp96w.0 + - AkE7gjNl4UqdnSM8PAigUQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 11ms + - 19ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:46 GMT + - Fri, 26 Feb 2021 11:18:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:43.4401764+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:08.1405349+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:43 GMT + - Fri, 26 Feb 2021 11:18:08 GMT ms-cv: - - Z4SZHkC180uO1NzpdN4RDw.0 + - QHdFwaWAP0yXy8vd90Koww.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 87ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:46 GMT + - Fri, 26 Feb 2021 11:18:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-ea6f-1db7-3a3a0d0075b3"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-123a-b0b7-3a3a0d00a768"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:43 GMT + - Fri, 26 Feb 2021 11:18:08 GMT ms-cv: - - +olGhMaKJE+aYkLvmck+Kg.0 + - Y0RhHLYOy0ODul13T7VNwg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 16ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:43:46 GMT + - Fri, 26 Feb 2021 11:18:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:43:43.6481274+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:08.3487547+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:43:43 GMT + - Fri, 26 Feb 2021 11:18:08 GMT ms-cv: - - r51M6ctTqkyiGo+OlnbAmw.0 + - adplWJGON0ae9jITNZH5Lg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 87ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - eee34ea6-ae3c-4f3c-96c1-ccd683ebde43 + - aa05ac9e-7763-4c9d-9f4d-cb311de57eeb method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:N9rfwjUmq5H_-KG1zd4m7TNi4iVY5xfDpO5cdHNMYoY1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:43:45Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734d-e9ae-1db7-3a3a0d0075b2"}}}}' + body: '{"chatThread": {"id": "19:3n0iKyITptmt1UrJwBNDbk6LviDhhN3wbv6oDybl9QU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:18:09Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:45 GMT - ms-cv: 9PVmFPqaJkah5xz65xiA4A.0 + date: Fri, 26 Feb 2021 11:18:10 GMT + ms-cv: ywt6sKf9yU2PJfo7eYQb4Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1198ms + x-processing-time: 846ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:46 GMT - ms-cv: InmJCw3me026xB5+S2ATuA.0 + date: Fri, 26 Feb 2021 11:18:10 GMT + ms-cv: 2wKX/gYRdUORVx51BTBN6Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 826ms + x-processing-time: 838ms status: code: 201 message: Created @@ -250,10 +250,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Wed, 24 Feb 2021 09:43:46 GMT - ms-cv: SQVL9ayC60OIFl7clVjHiA.0 + date: Fri, 26 Feb 2021 11:18:11 GMT + ms-cv: 4pQw1unyJ0W6h9GjVuvmEA.0 strict-transport-security: max-age=2592000 - x-processing-time: 445ms + x-processing-time: 436ms status: code: 200 message: OK @@ -272,11 +272,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:48 GMT - ms-cv: 5Ip4wbWNSk+FzT5t1ttL2Q.0 + date: Fri, 26 Feb 2021 11:18:11 GMT + ms-cv: pBbZY//kS0mwV0RglsmqHg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 734ms + x-processing-time: 250ms status: code: 200 message: OK @@ -300,11 +300,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:47 GMT - ms-cv: /lhf4mE1e0+PItnYshf2Eg.0 + date: Fri, 26 Feb 2021 11:18:12 GMT + ms-cv: aaytsKQP1kudg4i3kcCpAg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 396ms + x-processing-time: 389ms status: code: 201 message: Created @@ -328,10 +328,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Wed, 24 Feb 2021 09:43:48 GMT - ms-cv: CirrUZTeIE62obk5G5o5NQ.0 + date: Fri, 26 Feb 2021 11:18:12 GMT + ms-cv: FmHJo4rpp0evOmS6qmOUVg.0 strict-transport-security: max-age=2592000 - x-processing-time: 441ms + x-processing-time: 459ms status: code: 200 message: OK @@ -350,11 +350,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:49 GMT - ms-cv: rVx4gRux1EmhRJCjdEhHuA.0 + date: Fri, 26 Feb 2021 11:18:12 GMT + ms-cv: /eP0EjBltEGejWLIgwJ9Dg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 545ms + x-processing-time: 248ms status: code: 200 message: OK @@ -378,11 +378,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:49 GMT - ms-cv: 2FsSMDLZoUGuSOF/j4dGLg.0 + date: Fri, 26 Feb 2021 11:18:13 GMT + ms-cv: J4xG0Xaf7Uy3IqTO3w1GRA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 387ms + x-processing-time: 383ms status: code: 201 message: Created @@ -406,10 +406,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Wed, 24 Feb 2021 09:43:50 GMT - ms-cv: +mjVt2HoO0e7jn/THwB15A.0 + date: Fri, 26 Feb 2021 11:18:13 GMT + ms-cv: Xx7nB21zwUqsg4f1GA9mAA.0 strict-transport-security: max-age=2592000 - x-processing-time: 453ms + x-processing-time: 477ms status: code: 200 message: OK @@ -428,11 +428,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:50 GMT - ms-cv: fRz+TnTlkEWuAJTHsxxgUA.0 + date: Fri, 26 Feb 2021 11:18:15 GMT + ms-cv: WJOw3JBbtUaE427wydlV5g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 267ms + x-processing-time: 582ms status: code: 200 message: OK @@ -451,11 +451,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:43:50 GMT - ms-cv: CBcWaG3imUmE8HDYR1s5sw.0 + date: Fri, 26 Feb 2021 11:18:15 GMT + ms-cv: XqvGPXYQw02pLSreuRXCTA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 247ms + x-processing-time: 257ms status: code: 200 message: OK @@ -474,10 +474,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:43:51 GMT - ms-cv: +d3WCFibVUCJfk3omWzfpA.0 + date: Fri, 26 Feb 2021 11:18:16 GMT + ms-cv: 7PTELaUr50u6IytlNEor0Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 338ms + x-processing-time: 327ms status: code: 204 message: No Content @@ -494,7 +494,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:43:54 GMT + - Fri, 26 Feb 2021 11:18:18 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -508,15 +508,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:08 GMT + - Fri, 26 Feb 2021 11:18:32 GMT ms-cv: - - H/nOW+q3BEKWS5A6GImRfA.0 + - G3qa1p6NaEqF594SGShmXw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16210ms + - 16480ms status: code: 204 message: No Content @@ -532,7 +532,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:10 GMT + - Fri, 26 Feb 2021 11:18:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -546,15 +546,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:23 GMT + - Fri, 26 Feb 2021 11:18:48 GMT ms-cv: - - PMkrzejgAUKcCbbVhAOfpA.0 + - +NqA6NVHnUufu9FcjyPEbg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15763ms + - 16054ms 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 5908b54b78e8..1c4684143ac1 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:26 GMT + - Fri, 26 Feb 2021 11:18:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:24 GMT + - Fri, 26 Feb 2021 11:18:48 GMT ms-cv: - - V+rAEHQPUEmnySbwK9xb2A.0 + - QnWLcRnhD0esJqh1sS3ivA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 63ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:27 GMT + - Fri, 26 Feb 2021 11:18:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:23.9713277+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:48.482571+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:24 GMT + - Fri, 26 Feb 2021 11:18:48 GMT ms-cv: - - Uz2lwKu/vUCn+lkREZ+DVg.0 + - wf5yAbk4XkegKoDwGKNxuw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 86ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:27 GMT + - Fri, 26 Feb 2021 11:18:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-88de-9c58-373a0d0070f0"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-afc3-1655-373a0d00a85f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:24 GMT + - Fri, 26 Feb 2021 11:18:48 GMT ms-cv: - - 2OZo4W6/R0KlWnMlLTQy+A.0 + - RzSzeYmA8UaGPySr1NE/aA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 19ms + - 14ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:44:27 GMT + - Fri, 26 Feb 2021 11:18:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:44:24.1961174+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:48.6883687+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:44:24 GMT + - Fri, 26 Feb 2021 11:18:48 GMT ms-cv: - - XanWvr4NXU2MVcDn2I6bkQ.0 + - FNSbmpV37EemgkRWSHxXgA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 88ms status: code: 200 message: OK @@ -177,28 +177,28 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 239955d8-af9a-4afd-9382-657353e7c1a2 + - 7445dc0b-dce5-4d92-a234-6dbe57c713e8 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:pwQY2X4eeWbqlnBlOp_BBbATWRKoHA04AafUV6zrjbA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:44:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-8802-9c58-373a0d0070ef"}}}}' + body: '{"chatThread": {"id": "19:8HkqnxTnY_eP7hrS2aB4dETqqYwbRr8XgXL6FvYZYaA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:18:50Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:44:25 GMT - ms-cv: 1bzaOayQaEGkBHTXzVv/CQ.0 + date: Fri, 26 Feb 2021 11:18:50 GMT + ms-cv: eyErSfZaDk+u37y1P1omBA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 904ms + x-processing-time: 903ms status: code: 201 message: Created @@ -221,17 +221,17 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:44:26 GMT - ms-cv: GfZwlKleXkmSEptIyI6tnw.0 + date: Fri, 26 Feb 2021 11:18:51 GMT + ms-cv: FUEn79jmFUm8y5YygiRE2w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 456ms + x-processing-time: 429ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734e-88de-9c58-373a0d0070f0"}}' + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-afc3-1655-373a0d00a85f"}}' headers: Accept: - application/json @@ -248,10 +248,10 @@ interactions: string: '' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:44:26 GMT - ms-cv: SdvrMyoN3kqiloxevuaWHQ.0 + date: Fri, 26 Feb 2021 11:18:51 GMT + ms-cv: PkJmw+O6T06uwu8eooj1uA.0 strict-transport-security: max-age=2592000 - x-processing-time: 505ms + x-processing-time: 471ms status: code: 204 message: No Content @@ -270,10 +270,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:44:27 GMT - ms-cv: Ag8xWwkGWk2ofn2kIJEn5w.0 + date: Fri, 26 Feb 2021 11:18:51 GMT + ms-cv: 9CojiNnj1k+O/KlqaTrhcw.0 strict-transport-security: max-age=2592000 - x-processing-time: 345ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -290,7 +290,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:30 GMT + - Fri, 26 Feb 2021 11:18:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -304,15 +304,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:44 GMT + - Fri, 26 Feb 2021 11:19:08 GMT ms-cv: - - Ud1zzUsk3UaMh1/VwnSolA.0 + - WvcJE4HYKkuQ/ownVZASew.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16606ms + - 16594ms status: code: 204 message: No Content @@ -328,7 +328,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:44:46 GMT + - Fri, 26 Feb 2021 11:19:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -342,15 +342,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:44:59 GMT + - Fri, 26 Feb 2021 11:19:24 GMT ms-cv: - - CruKff42L0CV0jzLOrdArA.0 + - eu6Ws1sK+0eX/hW7yG+swQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16178ms + - 15976ms 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 5df153dc11d4..789bf68ea915 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:03 GMT + - Fri, 26 Feb 2021 11:19:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:00 GMT + - Fri, 26 Feb 2021 11:19:24 GMT ms-cv: - - Qq5LYI9XM0GthUJR4Aibfw.0 + - omgesi6VGkyUS5ZXkKXlXQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:03 GMT + - Fri, 26 Feb 2021 11:19:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:00.1206033+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:24.2218347+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:00 GMT + - Fri, 26 Feb 2021 11:19:24 GMT ms-cv: - - wxG7NZNgk0OpD6f9/IkWKQ.0 + - PAqsEP8DFkOjdo5m8GDnDg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:03 GMT + - Fri, 26 Feb 2021 11:19:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-15f6-1db7-3a3a0d0075b7"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3b5c-1655-373a0d00a861"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:00 GMT + - Fri, 26 Feb 2021 11:19:24 GMT ms-cv: - - +fLLQ1wCxEiWZMrNHZN12Q.0 + - SX+rmAUM0UuYv/relptbGA.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:03 GMT + - Fri, 26 Feb 2021 11:19:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:00.3280286+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:24.4116831+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:00 GMT + - Fri, 26 Feb 2021 11:19:25 GMT ms-cv: - - 1IjDiw41lEOVEYFPB7pHmQ.0 + - 94RLS1p/XUOaPUt5UEPwbA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 90ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - f2c06511-de9b-4d43-b9d4-235de41a150a + - 7a3446dd-3586-4899-b4a6-ab3a4365530f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:6lZIWFds5bzRuSpMEl21JyzfcinVYxlsd5Bt56bGV9Q1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:45:01Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-1536-1db7-3a3a0d0075b6"}}}}' + body: '{"chatThread": {"id": "19:Y5_6GWyFlAYSZe4oQwlBvvY6WCvjnOe1_g_z94lwKoM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:19:25Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:45:01 GMT - ms-cv: Zl+9mkNLikilNt6In0S1Gg.0 + date: Fri, 26 Feb 2021 11:19:25 GMT + ms-cv: iRYTzPrnt0KdNFIM+bK6NQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 917ms + x-processing-time: 841ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:45:03 GMT - ms-cv: nGG6oPMZAE2qW/dD01Pijg.0 + date: Fri, 26 Feb 2021 11:19:26 GMT + ms-cv: L1FA3xTaa0SS4A4m04CebA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 869ms + x-processing-time: 396ms status: code: 201 message: Created @@ -245,10 +245,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:45:02 GMT - ms-cv: tf6HcavVnESEJjK90M0Byg.0 + date: Fri, 26 Feb 2021 11:19:26 GMT + ms-cv: 01zUwa3Ja0uhP6dfoxrZhQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 342ms + x-processing-time: 290ms status: code: 204 message: No Content @@ -265,7 +265,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:06 GMT + - Fri, 26 Feb 2021 11:19:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -279,15 +279,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:19 GMT + - Fri, 26 Feb 2021 11:19:42 GMT ms-cv: - - xEfOdQhd60OHmP3iDtmeHA.0 + - ogeyeRKNjkuP0MXyTQsynQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16249ms + - 16320ms status: code: 204 message: No Content @@ -303,7 +303,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:22 GMT + - Fri, 26 Feb 2021 11:19:45 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -317,15 +317,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:35 GMT + - Fri, 26 Feb 2021 11:19:59 GMT ms-cv: - - jPxIr0DKCEO5gCuGf808Iw.0 + - Vgy4vtJLWU6VtrPcg7CnuQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16538ms + - 16236ms 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 3941a7a095f8..08fc177d2a91 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:39 GMT + - Fri, 26 Feb 2021 11:20:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:36 GMT + - Fri, 26 Feb 2021 11:19:59 GMT ms-cv: - - q5XqyrUN8UOFWpDsaGXyMQ.0 + - lwdO2umzjkSnLiygVe+yUQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:39 GMT + - Fri, 26 Feb 2021 11:20:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:36.03274+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:59.3450671+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:36 GMT + - Fri, 26 Feb 2021 11:19:59 GMT ms-cv: - - aPhJmJfFz0K0BGWi11ZVGg.0 + - 4pK/xfm6KUyQWp9IaiDGZA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 95ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:39 GMT + - Fri, 26 Feb 2021 11:20:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a256-b0b7-3a3a0d00746a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c49c-1655-373a0d00a871"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:36 GMT + - Fri, 26 Feb 2021 11:19:59 GMT ms-cv: - - vYIMl9MVxEKxmt15X2+5EA.0 + - +sDkmMiKOEmncWMZmDKecw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 26ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:45:39 GMT + - Fri, 26 Feb 2021 11:20:02 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:45:36.2478106+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:59.5569628+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:45:36 GMT + - Fri, 26 Feb 2021 11:19:59 GMT ms-cv: - - x61leGWmxEaZJD3cGts96A.0 + - aTf+oEkbjUCp8U2G/tF43Q.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 100ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - ec395f15-2e94-42b8-9e3c-a8e4ac0bc885 + - 68b6584e-eda0-451e-ad4a-7bd538da7e53 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:g-tXfBlWScWRF8P7pOqVLaNg0aQfCuMHFYj9VQjmC_41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:45:38Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-734f-a182-b0b7-3a3a0d007469"}}}}' + body: '{"chatThread": {"id": "19:5D4eCb09Eg98ViTZzOAietzQXD8XrK6ooxvEO6bCO441@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:20:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:45:37 GMT - ms-cv: wgJhVrRIuU66l5zmKHmIKA.0 + date: Fri, 26 Feb 2021 11:20:01 GMT + ms-cv: P7BASoXgb0GlauhPoUzw1Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1330ms + x-processing-time: 839ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:45:38 GMT - ms-cv: yXppVWVfb0+YnYdgFEjSPg.0 + date: Fri, 26 Feb 2021 11:20:01 GMT + ms-cv: drrpi9va2kOwuJDCukcNdg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 360ms + x-processing-time: 365ms status: code: 201 message: Created @@ -250,10 +250,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Wed, 24 Feb 2021 09:45:38 GMT - ms-cv: H9/IFKJAIU+RLfNTm/GXHg.0 + date: Fri, 26 Feb 2021 11:20:01 GMT + ms-cv: zyqAwlU73kecvFfthPfcNA.0 strict-transport-security: max-age=2592000 - x-processing-time: 443ms + x-processing-time: 449ms status: code: 200 message: OK @@ -272,10 +272,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:45:39 GMT - ms-cv: e1n5jnxEHUG8lq7uoRoJPA.0 + date: Fri, 26 Feb 2021 11:20:02 GMT + ms-cv: W6b32nO2eUCO80ycJIAkig.0 strict-transport-security: max-age=2592000 - x-processing-time: 284ms + x-processing-time: 285ms status: code: 204 message: No Content @@ -292,7 +292,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:42 GMT + - Fri, 26 Feb 2021 11:20:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -306,15 +306,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:45:56 GMT + - Fri, 26 Feb 2021 11:20:19 GMT ms-cv: - - MNc/4ivQ/kmruRdZAaOpnA.0 + - o+bS4PPct0upQ9zbjLGGTA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16413ms + - 16151ms status: code: 204 message: No Content @@ -330,7 +330,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:45:59 GMT + - Fri, 26 Feb 2021 11:20:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -344,15 +344,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:12 GMT + - Fri, 26 Feb 2021 11:20:35 GMT ms-cv: - - /MlwTJFugk65tp/6b13LYQ.0 + - nBf7U2KbT0q5VijphyoTEg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15730ms + - 16414ms 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 ecef9aed98f4..73638e060e15 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:14 GMT + - Fri, 26 Feb 2021 11:20:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:11 GMT + - Fri, 26 Feb 2021 11:20:35 GMT ms-cv: - - rMe5bE2sVkCTKucy+6uwlg.0 + - HSRt+0raoESxU4UvBuqJMQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:15 GMT + - Fri, 26 Feb 2021 11:20:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:11.6619062+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:20:35.0373039+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:11 GMT + - Fri, 26 Feb 2021 11:20:35 GMT ms-cv: - - c8ExkynL/UWU7VznTi9vKA.0 + - ZB7XrADT0EegVH5cJqKFpA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:15 GMT + - Fri, 26 Feb 2021 11:20:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2db0-b0b7-3a3a0d00746c"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-5001-9c58-373a0d00a357"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:12 GMT + - Fri, 26 Feb 2021 11:20:35 GMT ms-cv: - - xWmSk73vfEKq13b92U+laQ.0 + - d17DRamcGke0JKSoTTzt5w.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 18ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:15 GMT + - Fri, 26 Feb 2021 11:20:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:11.9310508+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:20:35.2521392+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:12 GMT + - Fri, 26 Feb 2021 11:20:35 GMT ms-cv: - - Nb0uemmk7EO+3f5lcdj98Q.0 + - ZfPXRwGPG0C2kBHixlQ1nA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 94ms status: code: 200 message: OK @@ -183,22 +183,22 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 56822fd9-6800-4cc6-8f53-740073e1f84f + - c2fe8819-6418-45ed-978f-a28fd334fa57 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:XkSHxUSWVm8V23GZntSheBpA1rhzZ0pLQaVT-fzhX8g1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:46:13Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-2cad-b0b7-3a3a0d00746b"}}}}' + body: '{"chatThread": {"id": "19:08U2EV9qgtXH8QbDX2t_e9s2cUb2cbj8uI6llnKwfNA1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:20:36Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:46:13 GMT - ms-cv: iZb239hSqk26zFWtBi1aCA.0 + date: Fri, 26 Feb 2021 11:20:37 GMT + ms-cv: G218cJNTRUKC4N94/o+c8w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1352ms + x-processing-time: 877ms status: code: 201 message: Created @@ -218,10 +218,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Wed, 24 Feb 2021 09:46:14 GMT - ms-cv: TYkq0G65oUK7W0luhv5F1w.0 + date: Fri, 26 Feb 2021 11:20:37 GMT + ms-cv: SDKdP82m4Uukix2eusF98A.0 strict-transport-security: max-age=2592000 - x-processing-time: 354ms + x-processing-time: 378ms status: code: 200 message: OK @@ -240,10 +240,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:46:14 GMT - ms-cv: 3Ekqw3m7l0OVJYBm9VAn/Q.0 + date: Fri, 26 Feb 2021 11:20:38 GMT + ms-cv: DithyQ3tJkSJoDOP3q0pcQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 322ms + x-processing-time: 327ms status: code: 204 message: No Content @@ -260,7 +260,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:17 GMT + - Fri, 26 Feb 2021 11:20:40 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -274,15 +274,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:31 GMT + - Fri, 26 Feb 2021 11:20:53 GMT ms-cv: - - tgbINdz0Q0CDPQJnikMCpw.0 + - HuYvjo1340qK8IAg12mA5g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16194ms + - 16572ms status: code: 204 message: No Content @@ -298,7 +298,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:34 GMT + - Fri, 26 Feb 2021 11:20:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -312,15 +312,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:46:46 GMT + - Fri, 26 Feb 2021 11:21:10 GMT ms-cv: - - Spi08Rc8Hk+maRtMSi2mJA.0 + - 2bD1YtyQUEqHNaciTINBmQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15685ms + - 15976ms 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 237e7f8e6b2b..611546c95111 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:49 GMT + - Fri, 26 Feb 2021 11:21:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:47 GMT + - Fri, 26 Feb 2021 11:21:10 GMT ms-cv: - - vQmPh7Kw8UWE2aRZgmN0tg.0 + - YYC+6VrQe0KJeN6x/x+KLg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:50 GMT + - Fri, 26 Feb 2021 11:21:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:46.6895898+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:10.3192785+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:47 GMT + - Fri, 26 Feb 2021 11:21:10 GMT ms-cv: - - nf4BuIZ1t0SHTZNMGyHl0A.0 + - lOZfjJTJdUeZ6J1nchaU2Q.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 92ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:50 GMT + - Fri, 26 Feb 2021 11:21:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b642-dbb7-3a3a0d0074de"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d9d2-1655-373a0d00a876"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:47 GMT + - Fri, 26 Feb 2021 11:21:10 GMT ms-cv: - - TdKWI7S+ckuKIbmA+1YpwA.0 + - j+LrmfFkuECEs0DLawMsug.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:46:50 GMT + - Fri, 26 Feb 2021 11:21:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:46:46.8927422+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:10.5413618+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:46:47 GMT + - Fri, 26 Feb 2021 11:21:10 GMT ms-cv: - - AbRyDNxsDUqPHXNvHh0+eA.0 + - Il3anCq0GUyPZJlqeEp6gg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 101ms + - 95ms status: code: 200 message: OK @@ -177,28 +177,28 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 6301d413-e656-4aeb-b05e-551500692a46 + - d68d1213-24bf-4922-9223-09de9fba0994 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:EH6dxjlt-jSqTEUm9xcbT8abAJ3W3hT5QN9XpiJTRd41@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:46:48Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7350-b584-dbb7-3a3a0d0074dd"}}}}' + body: '{"chatThread": {"id": "19:37Jztk9V56EKWBFCLTy-TnCsF7mNYOSK7k83NGSdKu01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:21:11Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:46:48 GMT - ms-cv: DN97ySZQGkKsaavLIWeP2Q.0 + date: Fri, 26 Feb 2021 11:21:12 GMT + ms-cv: hN19bCyIo0u6AH6QcmOdGQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 859ms + x-processing-time: 878ms status: code: 201 message: Created @@ -222,11 +222,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:46:48 GMT - ms-cv: VwGhU97On0u37rlk7ca/Ww.0 + date: Fri, 26 Feb 2021 11:21:12 GMT + ms-cv: 6b5WmSL3MUy48bKnrEVlsA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 368ms + x-processing-time: 385ms status: code: 201 message: Created @@ -249,10 +249,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:46:49 GMT - ms-cv: ZN0dA9PsxkyBebLb24pNYQ.0 + date: Fri, 26 Feb 2021 11:21:13 GMT + ms-cv: Vv4DOUdhHEGVLxqK7Y2yxw.0 strict-transport-security: max-age=2592000 - x-processing-time: 680ms + x-processing-time: 685ms status: code: 204 message: No Content @@ -271,10 +271,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:46:49 GMT - ms-cv: aPYzmlYNbE+ZjzRq86tUPg.0 + date: Fri, 26 Feb 2021 11:21:13 GMT + ms-cv: 48TicZBmKU+bNyw16Sq5KQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 329ms + x-processing-time: 323ms status: code: 204 message: No Content @@ -291,7 +291,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:46:53 GMT + - Fri, 26 Feb 2021 11:21:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -305,15 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:05 GMT + - Fri, 26 Feb 2021 11:21:31 GMT ms-cv: - - APRei5GpB0an7stpseiXug.0 + - fgrT2K6rkkiiOrVWMnwOlw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15692ms + - 16801ms status: code: 204 message: No Content @@ -329,7 +329,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:47:08 GMT + - Fri, 26 Feb 2021 11:21:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -343,15 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:21 GMT + - Fri, 26 Feb 2021 11:21:47 GMT ms-cv: - - SzZ4ubiHNUeojgjhosh+oQ.0 + - kLYwvApWLECDbtLyKPE5WA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16339ms + - 16659ms 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 4c1232890468..b5aa8b10df68 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:25 GMT + - Fri, 26 Feb 2021 11:21:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:22 GMT + - Fri, 26 Feb 2021 11:21:48 GMT ms-cv: - - 3PfEFgc/lEa1/gMyRf7t/g.0 + - bpGaC3B5L0itQcZui7+GwA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 114ms + - 178ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:25 GMT + - Fri, 26 Feb 2021 11:21:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:22.2369833+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:47.6116697+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:22 GMT + - Fri, 26 Feb 2021 11:21:48 GMT ms-cv: - - 7qineTyqD0q/n+k9i1fA2w.0 + - EN0J/EVMDUuoCamp3TPS4w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 113ms + - 120ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:25 GMT + - Fri, 26 Feb 2021 11:21:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-4131-b0b7-3a3a0d007476"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6c53-9c58-373a0d00a360"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:22 GMT + - Fri, 26 Feb 2021 11:21:48 GMT ms-cv: - - m/UtY30TjUaOf31Jn9FYAw.0 + - Lcjp4C9ejk6TaeN3DCp3MQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 35ms + - 231ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 24 Feb 2021 09:47:25 GMT + - Fri, 26 Feb 2021 11:21:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-25T09:47:22.5170859+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:48.3232212+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Wed, 24 Feb 2021 09:47:22 GMT + - Fri, 26 Feb 2021 11:21:49 GMT ms-cv: - - L4zsOOnVoUq/S+uMczWpCA.0 + - tpzlnEtES0+ddkz2YLaoyg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 131ms + - 396ms status: code: 200 message: OK @@ -177,28 +177,28 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 693f7b35-917b-4b33-91c6-52fdaa102059 + - 8f863e98-0aef-4b93-bee4-ea68d57cc15f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:ZSmh3Qy6LNKt6CC_jGMNCoJr-WpquleubqNtILOyyYc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-24T09:47:23Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7351-403b-b0b7-3a3a0d007475"}}}}' + body: '{"chatThread": {"id": "19:r8vWEAWBhAlc8Er2353HUJmCVfnxUTvB4WErE6pyc3I1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-26T11:21:49Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Wed, 24 Feb 2021 09:47:24 GMT - ms-cv: /dR1EmDz5EuHivltb5UC2Q.0 + date: Fri, 26 Feb 2021 11:21:50 GMT + ms-cv: Rf+pHpvZJ0uTEdVEClvK4w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 898ms + x-processing-time: 1159ms status: code: 201 message: Created @@ -221,10 +221,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:47:24 GMT - ms-cv: 01SKfh2oCUaJinYawoZIPQ.0 + date: Fri, 26 Feb 2021 11:21:50 GMT + ms-cv: 2f3JUGs1/Ee1tIdFHlhSCg.0 strict-transport-security: max-age=2592000 - x-processing-time: 388ms + x-processing-time: 421ms status: code: 204 message: No Content @@ -243,10 +243,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Wed, 24 Feb 2021 09:47:25 GMT - ms-cv: 03IhyRJBnUiswyCLRu29dA.0 + date: Fri, 26 Feb 2021 11:21:51 GMT + ms-cv: ZJmD6eH73kO0ah36PDW2NQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 345ms + x-processing-time: 552ms status: code: 204 message: No Content @@ -263,7 +263,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:47:27 GMT + - Fri, 26 Feb 2021 11:21:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -277,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:41 GMT + - Fri, 26 Feb 2021 11:22:07 GMT ms-cv: - - m+SuOnmAr0eFxE8PUDYbow.0 + - uYwuHXx4IEKZr62PsiGTTQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16348ms + - 16825ms status: code: 204 message: No Content @@ -301,7 +301,7 @@ interactions: Content-Length: - '0' Date: - - Wed, 24 Feb 2021 09:47:44 GMT + - Fri, 26 Feb 2021 11:22:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -315,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Wed, 24 Feb 2021 09:47:57 GMT + - Fri, 26 Feb 2021 11:22:24 GMT ms-cv: - - c5szeT4o8Eq1Mt8e0HE68Q.0 + - rVRClRLeKUupjSj0CMJ9Jg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16770ms + - 15910ms status: code: 204 message: No Content From 990cadba0028b0acec414467a4d9293681aaecf5 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 1 Mar 2021 15:58:22 -0800 Subject: [PATCH 13/16] add_participant -> raises error - Update README.md with modified signature - Update samples with new method signatures - Add test to detect invalid instantiation of AccessToken - Minor documentation updates - Modify unit tests to capture method signature modifications - Modify e2e tests to capture method signature modifications --- .../azure-communication-chat/README.md | 24 +- .../azure/communication/chat/__init__.py | 2 - .../communication/chat/_chat_thread_client.py | 28 +- .../azure/communication/chat/_models.py | 22 +- .../azure/communication/chat/_utils.py | 3 +- .../chat/aio/_chat_client_async.py | 2 +- .../chat/aio/_chat_thread_client_async.py | 32 +- .../samples/chat_client_sample.py | 37 +- .../samples/chat_client_sample_async.py | 38 +- .../samples/chat_thread_client_sample.py | 351 ++++++++++---- .../chat_thread_client_sample_async.py | 447 +++++++++++------- ...ient_e2e.test_access_token_validation.yaml | 200 ++++++++ ...at_client_e2e.test_create_chat_thread.yaml | 54 +-- ..._create_chat_thread_w_no_participants.yaml | 54 +-- ...hat_thread_w_repeatability_request_id.yaml | 72 +-- ...at_client_e2e.test_delete_chat_thread.yaml | 62 +-- ..._chat_client_e2e.test_get_chat_thread.yaml | 68 +-- ...hat_client_e2e.test_get_thread_client.yaml | 54 +-- ...hat_client_e2e.test_list_chat_threads.yaml | 60 +-- ...e_async.test_create_chat_thread_async.yaml | 56 +-- ...e_chat_thread_w_no_participants_async.yaml | 56 +-- ...read_w_repeatability_request_id_async.yaml | 77 +-- ...ent_e2e_async.test_delete_chat_thread.yaml | 63 +-- ...client_e2e_async.test_get_chat_thread.yaml | 69 +-- ...ient_e2e_async.test_get_thread_client.yaml | 56 +-- ...ient_e2e_async.test_list_chat_threads.yaml | 65 +-- ...hread_client_e2e.test_add_participant.yaml | 90 ++-- ...read_client_e2e.test_add_participants.yaml | 90 ++-- ...thread_client_e2e.test_delete_message.yaml | 100 ++-- ...at_thread_client_e2e.test_get_message.yaml | 102 ++-- ..._thread_client_e2e.test_list_messages.yaml | 120 ++--- ...ead_client_e2e.test_list_participants.yaml | 98 ++-- ...ad_client_e2e.test_list_read_receipts.yaml | 162 +++---- ...ad_client_e2e.test_remove_participant.yaml | 98 ++-- ...t_thread_client_e2e.test_send_message.yaml | 90 ++-- ...ead_client_e2e.test_send_read_receipt.yaml | 96 ++-- ...ent_e2e.test_send_typing_notification.yaml | 86 ++-- ...thread_client_e2e.test_update_message.yaml | 96 ++-- ...t_thread_client_e2e.test_update_topic.yaml | 90 ++-- ...client_e2e_async.test_add_participant.yaml | 92 ++-- ...lient_e2e_async.test_add_participants.yaml | 92 ++-- ..._client_e2e_async.test_delete_message.yaml | 102 ++-- ...ead_client_e2e_async.test_get_message.yaml | 110 ++--- ...d_client_e2e_async.test_list_messages.yaml | 127 ++--- ...ient_e2e_async.test_list_participants.yaml | 100 ++-- ...ent_e2e_async.test_list_read_receipts.yaml | 174 +++---- ...ent_e2e_async.test_remove_participant.yaml | 102 ++-- ...ad_client_e2e_async.test_send_message.yaml | 91 ++-- ...ient_e2e_async.test_send_read_receipt.yaml | 100 ++-- ...e_async.test_send_typing_notification.yaml | 91 ++-- ..._client_e2e_async.test_update_message.yaml | 102 ++-- ...ad_client_e2e_async.test_update_topic.yaml | 95 ++-- .../tests/test_chat_client_e2e.py | 37 +- .../tests/test_chat_client_e2e_async.py | 2 +- .../tests/test_chat_thread_client.py | 14 +- .../tests/test_chat_thread_client_async.py | 14 +- .../tests/test_chat_thread_client_e2e.py | 11 +- .../test_chat_thread_client_e2e_async.py | 12 +- 58 files changed, 2703 insertions(+), 2135 deletions(-) create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index 6b135425d484..4c9d7c9791e5 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -357,8 +357,6 @@ start_time = datetime.utcnow() - timedelta(days=1) start_time = start_time.replace(tzinfo=pytz.utc) chat_messages = chat_thread_client.list_messages(results_per_page=1, start_time=start_time) for chat_message_page in chat_messages.by_page(): - l = list(chat_message_page) - print("page size: ", len(l)) for chat_message in chat_message_page: print("ChatMessage: Id=", chat_message.id, "; Content=", chat_message.content) ``` @@ -436,25 +434,23 @@ new_user = identity_client.create_user() # display_name=user_display_name, # share_history_time=datetime.utcnow()) +def decide_to_retry(error, **kwargs): + """ + Insert some custom logic to decide if retry is applicable based on error + """ + return True participant = ChatThreadParticipant( user=new_user, display_name='Fred Flinstone', share_history_time=datetime.utcnow()) -failed_participant, error = chat_thread_client.add_participant(thread_participant=participant) - -def decide_to_retry(error, **kwargs): - """ - Insert some custom logic to decide if retry is applicable based on error - """ - return True +try: + chat_thread_client.add_participant(thread_participant=participant) +except RuntimeError as e: + if e is not None and decide_to_retry(error=e): + chat_thread_client.add_participant(thread_participant=participant) -# verify if user has been added successfully -if error is not None: - # error encountered while adding participant - if decide_to_retry(error): - chat_thread_client.add_participant(failed_participant) ``` ### Add thread participants diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py index 5728a39476d7..94266498df10 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -5,7 +5,6 @@ SendChatMessageResult, ChatThreadInfo, ChatMessageType, - AddChatParticipantsResult, CommunicationError ) @@ -30,7 +29,6 @@ 'ChatThreadParticipant', 'ChatMessageType', 'CreateChatThreadResult', - 'AddChatParticipantsResult', 'CommunicationError' ] __version__ = VERSION 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 4d04a3f6a4cf..1ff17c733bec 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 @@ -401,7 +401,7 @@ def update_message( if not message_id: raise ValueError("message_id cannot be None.") - update_message_request = UpdateChatMessageRequest(content=content, priority=None) + update_message_request = UpdateChatMessageRequest(content=content) return self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, @@ -483,7 +483,7 @@ def add_participant( thread_participant, # type: ChatThreadParticipant **kwargs # type: Any ): - # type: (...) -> tuple(ChatThreadParticipant, CommunicationError) + # type: (...) -> None """Adds single thread participant to a thread. If participant already exist, no change occurs. If participant is added successfully, a tuple of (None, None) is expected. @@ -491,9 +491,9 @@ def add_participant( :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant - :return: Tuple(ChatThreadParticipant, CommunicationError) - :rtype: tuple(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError) - :raises: ~azure.core.exceptions.HttpResponseError, ValueError + :return: None + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError .. admonition:: Example: @@ -503,13 +503,6 @@ def add_participant( :language: python :dedent: 8 :caption: Adding single participant to chat thread. - - .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START add_participant_w_failed_participant] - :end-before: [END add_participant_w_failed_participant] - :language: python - :dedent: 8 - :caption: Retry adding participant to chat thread after initial failure. """ if not thread_participant: raise ValueError("thread_participant cannot be None.") @@ -535,8 +528,10 @@ def add_participant( if len(response) != 0: failed_participant = response[0][0] communication_error = response[0][1] + raise RuntimeError('Participant: ', communication_error.target, ' failed to join thread due to: ', + communication_error.message) - return (failed_participant, communication_error) + return None @distributed_trace def add_participants( @@ -565,13 +560,6 @@ def add_participants( :language: python :dedent: 8 :caption: Adding participants to chat thread. - - .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START add_participants_w_failed_participants] - :end-before: [END add_participants_w_failed_participants] - :language: python - :dedent: 8 - :caption: Retry adding participants to chat thread after initial failure. """ if not thread_participants: raise ValueError("thread_participants cannot be None.") diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index 515b89e2b834..9ec7d7d5a17c 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -16,11 +16,11 @@ class ChatThreadParticipant(object): All required parameters must be populated in order to send to Azure. - :param user: Required. The CommunicationUserIdentifier. + :ivar user: Required. The CommunicationUserIdentifier. :type user: CommunicationUserIdentifier - :param display_name: Display name for the chat thread participant. + :ivar display_name: Display name for the chat thread participant. :type display_name: str - :param share_history_time: Time from which the chat history is shared with the participant. The + :ivar share_history_time: Time from which the chat history is shared with the participant. The timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -134,14 +134,14 @@ def _from_generated(cls, chat_message): class ChatMessageContent(object): """Content of a chat message. - :param message: Chat message content for messages of types text or html. + :ivar message: Chat message content for messages of types text or html. :type message: str - :param topic: Chat message content for messages of type topicUpdated. + :ivar topic: Chat message content for messages of type topicUpdated. :type topic: str - :param participants: Chat message content for messages of types participantAdded or + :ivar participants: Chat message content for messages of types participantAdded or participantRemoved. :type participants: list[~azure.communication.chat.models.ChatParticipant] - :param initiator_communication_identifier: Chat message content for messages of types participantAdded or + :ivar initiator_communication_identifier: Chat message content for messages of types participantAdded or participantRemoved. :type initiator_communication_identifier: CommunicationUserIdentifier """ @@ -189,7 +189,7 @@ class ChatThread(object): :ivar id: Chat thread id. :vartype id: str - :param topic: Chat thread topic. + :ivar topic: Chat thread topic. :type topic: str :ivar created_on: The timestamp when the chat thread was created. The timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. @@ -232,7 +232,7 @@ class ChatMessageReadReceipt(object): Variables are only populated by the server, and will be ignored when sending a request. :ivar sender: Read receipt sender. - :vartype sender_id: CommunicationUserIdentifier + :vartype sender: CommunicationUserIdentifier :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the server. :vartype chat_message_id: str @@ -267,9 +267,9 @@ def _from_generated(cls, read_receipt): class CreateChatThreadResult(object): """Result of the create chat thread operation. - :param chat_thread: Chat thread. + :ivar chat_thread: Chat thread. :type chat_thread: ~azure.communication.chat.ChatThread - :param errors: Errors encountered during the creation of the chat thread. + :ivar errors: Errors encountered during the creation of the chat thread. :type errors: list((~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)) """ diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index bf10eb893c50..11fcd38bbd0e 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -59,7 +59,8 @@ def _convert(cls, participants, communication_errors): Util function to convert AddChatParticipantsResult. Function used to consolidate List[ChatThreadParticipant] and AddChatParticipantsResult - into a list of tuples of ChatThreadParticipant -> CommunicationError. + into a list of tuples of ChatThreadParticipant -> CommunicationError. In case of no error, empty + list is returned :param participants: Request object for adding participants to thread :type: participants: list(~azure.communication.chat.ChatThreadParticipant) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index 0b1de86ed0fe..14f55c04b2b5 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -129,7 +129,7 @@ def get_chat_thread_client( async def create_chat_thread( self, topic: str, **kwargs - ) -> ChatThreadClient: + ) -> CreateChatThreadResult: # type: (...) -> CreateChatThreadResult 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 4d76bda1493e..85e4f4153c21 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 @@ -28,7 +28,6 @@ UpdateChatThreadRequest, SendChatMessageResult, ChatMessageType, - AddChatParticipantsResult, CommunicationError ) from .._models import ( @@ -365,7 +364,6 @@ def list_messages( async def update_message( self, message_id: str, - *, content: str = None, **kwargs ) -> None: @@ -392,7 +390,7 @@ async def update_message( if not message_id: raise ValueError("message_id cannot be None.") - update_message_request = UpdateChatMessageRequest(content=content, priority=None) + update_message_request = UpdateChatMessageRequest(content=content) return await self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, @@ -471,7 +469,7 @@ async def add_participant( self, thread_participant: ChatThreadParticipant, **kwargs - ) -> (ChatThreadParticipant, CommunicationError): + ) -> None: """Adds single thread participant to a thread. If participant already exist, no change occurs. If participant is added successfully, a tuple of (None, None) is expected. @@ -480,9 +478,9 @@ async def add_participant( :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant :keyword callable cls: A custom type or function that will be passed the direct response - :return: Tuple(ChatThreadParticipant, CommunicationError) - :rtype: (~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError) - :raises: ~azure.core.exceptions.HttpResponseError, ValueError + :return: None + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError .. admonition:: Example: @@ -492,13 +490,6 @@ async def add_participant( :language: python :dedent: 12 :caption: Adding single participant to chat thread. - - .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START add_participant_w_failed_participant] - :end-before: [END add_participant_w_failed_participant] - :language: python - :dedent: 12 - :caption: Retry adding participant to chat thread after initial failure. """ if not thread_participant: raise ValueError("thread_participant cannot be None.") @@ -524,8 +515,10 @@ async def add_participant( if len(response) != 0: failed_participant = response[0][0] communication_error = response[0][1] + raise RuntimeError('Participant: ', communication_error.target, ' failed to join thread due to: ', + communication_error.message) - return (failed_participant, communication_error) + return None @distributed_trace_async async def add_participants( @@ -533,6 +526,8 @@ async def add_participants( thread_participants: List[ChatThreadParticipant], **kwargs ) -> list((ChatThreadParticipant, CommunicationError)): + + # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] """Adds thread participants to a thread. If participants already exist, no change occurs. If all participants are added successfully, then an empty list is returned; @@ -553,13 +548,6 @@ async def add_participants( :language: python :dedent: 12 :caption: Adding participants to chat thread. - - .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START add_participants_w_failed_participants] - :end-before: [END add_participants_w_failed_participants] - :language: python - :dedent: 12 - :caption: Retry adding participants to chat thread after initial failure. """ if not thread_participants: raise ValueError("thread_participants cannot be None.") diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py index a622dfbe5088..63b55c3ebd97 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -45,7 +45,9 @@ class ChatClientSamples(object): def create_chat_client(self): # [START create_chat_client] - from azure.communication.chat import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) # [END create_chat_client] @@ -56,7 +58,7 @@ def create_thread(self): from azure.communication.identity import CommunicationUserIdentifier from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.identity._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import( ChatClient, @@ -74,13 +76,15 @@ def create_thread(self): )] # creates a new chat_thread everytime - create_chat_thread_result = chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = chat_client.create_chat_thread(topic, thread_participants=participants) # creates a new chat_thread if not exists repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier - create_chat_thread_result_w_repeatability_id = chat_client.create_chat_thread(topic, - participants, - repeatability_request_id) + create_chat_thread_result_w_repeatability_id = chat_client.create_chat_thread( + topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id + ) # [END create_thread] self._thread_id = create_chat_thread_result.chat_thread.id @@ -88,7 +92,9 @@ def create_thread(self): def get_chat_thread_client(self): # [START get_chat_thread_client] - from azure.communication.chat import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -99,7 +105,9 @@ def get_chat_thread_client(self): def get_thread(self): # [START get_thread] - from azure.communication.chat import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -110,7 +118,9 @@ def get_thread(self): def list_threads(self): # [START list_threads] - from azure.communication.chat import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from datetime import datetime, timedelta import pytz @@ -121,13 +131,16 @@ def list_threads(self): chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) print("list_threads succeeded with results_per_page is 5, and were created since 2 days ago.") - for info in chat_thread_infos: - print("thread id:", info.id) + for chat_thread_info_page in chat_thread_infos.by_page(): + for chat_thread_info in chat_thread_info_page: + print("thread id:", chat_thread_info.id) # [END list_threads] def delete_thread(self): # [START delete_thread] - from azure.communication.chat import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py index 4acdcb1a9eae..094347c5a262 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py @@ -45,7 +45,9 @@ class ChatClientSamplesAsync(object): def create_chat_client(self): # [START create_chat_client] - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -55,9 +57,9 @@ def create_chat_client(self): async def create_thread_async(self): from datetime import datetime from azure.communication.chat.aio import ChatClient - from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions - from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier + from azure.communication.chat import ChatThreadParticipant refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -70,13 +72,14 @@ async def create_thread_async(self): share_history_time=datetime.utcnow() )] # creates a new chat_thread everytime - create_chat_thread_result = await chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await chat_client.create_chat_thread(topic, thread_participants=participants) # creates a new chat_thread if not exists repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier - create_chat_thread_result_w_repeatability_id = await chat_client.create_chat_thread(topic, - participants, - repeatability_request_id) + create_chat_thread_result_w_repeatability_id = await chat_client.create_chat_thread( + topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id) # [END create_thread] self._thread_id = create_chat_thread_result.chat_thread.id @@ -84,7 +87,9 @@ async def create_thread_async(self): def get_chat_thread_client(self): # [START get_chat_thread_client] - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -94,7 +99,9 @@ def get_chat_thread_client(self): print("chat_thread_client created with thread id: ", chat_thread_client.thread_id) async def get_thread_async(self): - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -105,7 +112,9 @@ async def get_thread_async(self): print("get_thread succeeded, thread id: " + chat_thread.id + ", thread topic: " + chat_thread.topic) async def list_threads_async(self): - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -117,12 +126,15 @@ async def list_threads_async(self): start_time = start_time.replace(tzinfo=pytz.utc) chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) print("list_threads succeeded with results_per_page is 5, and were created since 2 days ago.") - async for info in chat_thread_infos: - print("thread id: ", info.id) + async for chat_thread_info_page in chat_thread_infos.by_page(): + async for chat_thread_info in chat_thread_info_page: + print("thread id: ", chat_thread_info.id) # [END list_threads] async def delete_thread_async(self): - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py index e794daa0b1c6..c79b9fa0cd56 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py @@ -28,6 +28,11 @@ class ChatThreadClientSamples(object): from azure.communication.identity import CommunicationIdentityClient + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat import ( + ChatClient + ) connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) if not connection_string: raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") @@ -45,201 +50,347 @@ class ChatThreadClientSamples(object): _message_id = None new_user = identity_client.create_user() + refresh_options = CommunicationTokenRefreshOptions(token) + _chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) + def create_chat_thread_client(self): + token = self.token + endpoint = self.endpoint + user = self.user # [START create_chat_thread_client] from datetime import datetime + from azure.communication.identity import CommunicationUserIdentifier + from azure.communication.identity._shared.user_credential import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, - CommunicationUserIdentifier, - CommunicationTokenCredential, - CommunicationTokenRefreshOptions, ChatThreadParticipant ) - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + # retrieve `token` using CommunicationIdentityClient.get_token method + # set `endpoint` to ACS service endpoint + # create `user` using CommunicationIdentityClient.create_user method for new users; + # else for existing users set `user` = CommunicationUserIdentifier(some_user_id) + refresh_options = CommunicationTokenRefreshOptions(token) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) topic = "test topic" participants = [ChatThreadParticipant( - user=self.user, + user=user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = chat_client.create_chat_thread(topic, thread_participants=participants) + chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) # [END create_chat_thread_client] - self._thread_id = chat_thread_client.thread_id + self._thread_id = create_chat_thread_result.chat_thread.id print("chat_thread_client created") def update_topic(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client # [START update_topic] + # set `thread_id` to an existing thread id + chat_thread = chat_client.get_chat_thread(thread_id=thread_id) + previous_topic = chat_thread.topic + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + topic = "updated thread topic" chat_thread_client.update_topic(topic=topic) + + chat_thread = chat_client.get_chat_thread(thread_id=thread_id) + updated_topic = chat_thread.topic + print("Chat Thread Topic Update: Previous value: ", previous_topic, ", Current value: ", updated_topic) # [END update_topic] print("update_chat_thread succeeded") def send_message(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - from azure.communication.chat import ChatMessageType - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client # [START send_message] - content = 'hello world' - sender_display_name = 'sender name' + from azure.communication.chat import ChatMessageType + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + # Scenario 1: Send message without specifying chat_message_type send_message_result_id = chat_thread_client.send_message( - content, - sender_display_name=sender_display_name) + "Hello! My name is Fred Flinstone", + sender_display_name="Fred Flinstone") + # Scenario 2: Send message specifying chat_message_type send_message_result_w_type_id = chat_thread_client.send_message( - content, - sender_display_name=sender_display_name, chat_message_type=ChatMessageType.TEXT) + "Hello! My name is Wilma Flinstone", + sender_display_name="Wilma Flinstone", + chat_message_type=ChatMessageType.TEXT) # equivalent to setting chat_message_type='text' + + # Verify message content + print("First Message:", chat_thread_client.get_message(send_message_result_id).content.message) + print("Second Message:", chat_thread_client.get_message(send_message_result_w_type_id).content.message) # [END send_message] self._message_id = send_message_result_id - print("send_chat_message succeeded, message id:", self._message_id) - print("send_message succeeded with type specified, message id:", send_message_result_w_type_id) + print("send_message succeeded, message_id=", send_message_result_id) + print("send_message succeeded with type specified, message_id:", send_message_result_w_type_id) def get_message(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id # [START get_message] - chat_message = chat_thread_client.get_message(self._message_id) + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # set `message_id` to an existing message id + chat_message = chat_thread_client.get_message(message_id) + + print("Message received: ChatMessage: content=", chat_message.content.message, ", id=", chat_message.id) # [END get_message] - print("get_chat_message succeeded, message id:", chat_message.id, \ - "content: ", chat_message.content) + print("get_message succeeded, message id:", chat_message.id, \ + "content: ", chat_message.content.message) def list_messages(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client # [START list_messages] from datetime import datetime, timedelta + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + start_time = datetime.utcnow() - timedelta(days=1) chat_messages = chat_thread_client.list_messages(results_per_page=1, start_time=start_time) print("list_messages succeeded with results_per_page is 1, and start time is yesterday UTC") for chat_message_page in chat_messages.by_page(): - l = list(chat_message_page) - print("page size: ", len(l)) + for chat_message in chat_message_page: + print("ChatMessage: message=", chat_message.content.message) # [END list_messages] + print("list_messages succeeded") def update_message(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id # [START update_message] + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # set `message_id` to an existing message id + previous_content = chat_thread_client.get_message(message_id).content.message content = "updated content" - chat_thread_client.update_message(self._message_id, content=content) + chat_thread_client.update_message(message_id, content=content) + + current_content = chat_thread_client.get_message(message_id).content.message + + print("Chat Message Updated: Previous value: ", previous_content, ", Current value: ", current_content) # [END update_message] - print("update_chat_message succeeded") + print("update_message succeeded") def send_read_receipt(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id # [START send_read_receipt] - chat_thread_client.send_read_receipt(self._message_id) + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # set `message_id` to an existing message id + chat_thread_client.send_read_receipt(message_id) # [END send_read_receipt] print("send_read_receipt succeeded") def list_read_receipts(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + # [START list_read_receipts] + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + read_receipts = chat_thread_client.list_read_receipts() - print("list_read_receipts succeeded, receipts:") - for read_receipt in read_receipts: - print(read_receipt) + + for read_receipt_page in read_receipts.by_page(): + for read_receipt in read_receipt_page: + print(read_receipt) # [END list_read_receipts] + print("list_read_receipts succeeded") def delete_message(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id + # [START delete_message] - chat_thread_client.delete_message(self._message_id) + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # set `message_id` to an existing message id + chat_thread_client.delete_message(message_id) # [END delete_message] - print("delete_chat_message succeeded") + print("delete_message succeeded") def list_participants(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + # [START list_participants] + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + chat_thread_participants = chat_thread_client.list_participants() - print("list_chat_participants succeeded, participants: ") - for chat_thread_participant in chat_thread_participants: - print(chat_thread_participant) + + for chat_thread_participant_page in chat_thread_participants.by_page(): + for chat_thread_participant in chat_thread_participant_page: + print("ChatThreadParticipant: ", chat_thread_participant) # [END list_participants] + print("list_participants succeeded") + + def add_participant_w_check(self): + # initially remove already added user + thread_id = self._thread_id + chat_client = self._chat_client + user = self.new_user + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + chat_thread_client.remove_participant(user) - def add_participant(self): - from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, \ - CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), - self._thread_id) # [START add_participant] from azure.communication.chat import ChatThreadParticipant from datetime import datetime + + def decide_to_retry(error): + """ + Custom logic to decide whether to retry to add or not + """ + return True + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # create `user` using CommunicationIdentityClient.create_user method for new users; + # else for existing users set `user` = CommunicationUserIdentifier(some_user_id) new_chat_thread_participant = ChatThreadParticipant( - user=self.new_user, - display_name='name', - share_history_time=datetime.utcnow()) - chat_thread_client.add_participant(new_chat_thread_participant) + user=user, + display_name='name', + share_history_time=datetime.utcnow()) + + # check if participant has been added successfully + try: + chat_thread_client.add_participant(new_chat_thread_participant) + except RuntimeError as e: + if e is not None and decide_to_retry(error=e): + chat_thread_client.add_participant(new_chat_thread_participant) # [END add_participant] - print("add_chat_participant succeeded") + print("add_participant_w_check succeeded") + + def add_participants_w_check(self): + # initially remove already added user + thread_id = self._thread_id + chat_client = self._chat_client + user = self.new_user + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) - def add_participants(self): - from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, \ - CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + chat_thread_client.remove_participant(user) # [START add_participants] from azure.communication.chat import ChatThreadParticipant from datetime import datetime + + def decide_to_retry(error): + """ + Custom logic to decide whether to retry to add or not + """ + return True + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # create `user` using CommunicationIdentityClient.create_user method for new users; + # else for existing users set `user` = CommunicationUserIdentifier(some_user_id) new_participant = ChatThreadParticipant( - user=self.new_user, - display_name='name', - share_history_time=datetime.utcnow()) + user=user, + display_name='name', + share_history_time=datetime.utcnow()) + + # create list containing one or more participants thread_participants = [new_participant] - chat_thread_client.add_participants(thread_participants) + result = chat_thread_client.add_participants(thread_participants) + + # list of participants which were unsuccessful to be added to chat thread + retry = [p for p, e in result if decide_to_retry(e)] + if len(retry) > 0: + chat_thread_client.add_participants(retry) # [END add_participants] - print("add_chat_participants succeeded") + print("add_participants_w_check succeeded") + + def remove_participant(self): - from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationUserIdentifier, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + identity_client = self.identity_client # [START remove_participant] - chat_thread_client.remove_participant(self.new_user) + from azure.communication.chat import ChatThreadParticipant + from azure.communication.identity import CommunicationUserIdentifier + from datetime import datetime + + # create 2 new users using CommunicationIdentityClient.create_user method + user1 = identity_client.create_user() + user2 = identity_client.create_user() + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + # add user1 and user2 to chat thread + participant1 = ChatThreadParticipant( + user=user1, + display_name='Fred Flinstone', + share_history_time=datetime.utcnow()) + + participant2 = ChatThreadParticipant( + user=user2, + display_name='Wilma Flinstone', + share_history_time=datetime.utcnow()) + + thread_participants = [participant1, participant2] + chat_thread_client.add_participants(thread_participants) + + # Option 1 : Iterate through all participants, find and delete Fred Flinstone + chat_thread_participants = chat_thread_client.list_participants() + + for chat_thread_participant_page in chat_thread_participants.by_page(): + for chat_thread_participant in chat_thread_participant_page: + print("ChatThreadParticipant: ", chat_thread_participant) + if chat_thread_participant.user.identifier == user1.identifier: + print("Found Fred!") + chat_thread_client.remove_participant(chat_thread_participant.user) + print("Fred has been removed from the thread...") + break + + # Option 2: Directly remove Wilma Flinstone + unique_identifier = user2.identifier # in real scenario the identifier would need to be retrieved from elsewhere + chat_thread_client.remove_participant(CommunicationUserIdentifier(unique_identifier)) + print("Wilma has been removed from the thread...") # [END remove_participant] + # clean up temporary users + self.identity_client.delete_user(user1) + self.identity_client.delete_user(user2) print("remove_chat_participant succeeded") def send_typing_notification(self): - from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + # [START send_typing_notification] + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + chat_thread_client.send_typing_notification() # [END send_typing_notification] @@ -261,8 +412,8 @@ def clean_up(self): sample.send_read_receipt() sample.list_read_receipts() sample.delete_message() - sample.add_participant() - sample.add_participants() + sample.add_participant_w_check() + sample.add_participants_w_check() sample.list_participants() sample.remove_participant() sample.send_typing_notification() diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py index 58d5aaa2eb51..c006b7bc805b 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py @@ -28,7 +28,11 @@ class ChatThreadClientSamplesAsync(object): + from azure.communication.chat.aio import ChatClient from azure.communication.identity import CommunicationIdentityClient + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) if not connection_string: raise ValueError("Set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING env before run this sample.") @@ -46,11 +50,17 @@ class ChatThreadClientSamplesAsync(object): _message_id = None new_user = identity_client.create_user() + refresh_options = CommunicationTokenRefreshOptions(token) + _chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) + async def create_chat_thread_client_async(self): # [START create_chat_thread_client] from datetime import datetime - from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier + from azure.communication.chat.aio import ChatClient + from azure.communication.chat import ChatThreadParticipant + from azure.communication.identity import CommunicationUserIdentifier + from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential + from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) @@ -62,200 +72,313 @@ async def create_chat_thread_client_async(self): display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic, participants) + create_chat_thread_result = await chat_client.create_chat_thread(topic, thread_participants=participants) + chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) # [END create_chat_thread_client] - self._thread_id = chat_thread_client.thread_id + self._thread_id = create_chat_thread_result.chat_thread.id print("thread created, id: " + self._thread_id) + print("create_chat_thread_client_async succeeded") async def update_topic_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, \ - CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), - self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client - async with chat_thread_client: - # [START update_topic] - topic = "updated thread topic" - await chat_thread_client.update_topic(topic=topic) - # [END update_topic] + # [START update_topic] + # set `thread_id` to an existing thread id + async with chat_client: + chat_thread = await chat_client.get_chat_thread(thread_id=thread_id) + previous_topic = chat_thread.topic + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) - print("update_topic succeeded") + async with chat_thread_client: + topic = "updated thread topic" + await chat_thread_client.update_topic(topic=topic) + + chat_thread = await chat_client.get_chat_thread(thread_id=thread_id) + updated_topic = chat_thread.topic + print("Chat Thread Topic Update: Previous value: ", previous_topic, ", Current value: ", updated_topic) + # [END update_topic] + + print("update_topic_async succeeded") async def send_message_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START send_message] - from azure.communication.chat import ChatMessagePriority - - priority=ChatMessagePriority.NORMAL - content='hello world' - sender_display_name='sender name' - - send_message_result_id = await chat_thread_client.send_message( - content, - priority=priority, - sender_display_name=sender_display_name) - - send_message_result_w_type_id = await chat_thread_client.send_message( - content, - sender_display_name=sender_display_name, chat_message_type=ChatMessageType.TEXT) - # [END send_message] - self._message_id = send_message_result_id + thread_id = self._thread_id + chat_client = self._chat_client + + # [START send_message] + from azure.communication.chat import ChatMessageType + async with chat_client: + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + # Scenario 1: Send message without specifying chat_message_type + send_message_result_id = await chat_thread_client.send_message( + "Hello! My name is Fred Flinstone", + sender_display_name="Fred Flinstone") + + # Scenario 2: Send message specifying chat_message_type + send_message_result_w_type_id = await chat_thread_client.send_message( + "Hello! My name is Wilma Flinstone", + sender_display_name="Wilma Flinstone", + chat_message_type=ChatMessageType.TEXT) # equivalent to setting chat_message_type='text' + + # Verify message content + print("First Message:", (await chat_thread_client.get_message(send_message_result_id)).content.message) + print("Second Message:", (await chat_thread_client.get_message(send_message_result_w_type_id)).content.message) + # [END send_message] + self._message_id = send_message_result_id print("send_message succeeded, message id:", self._message_id) print("send_message succeeded with type specified, message id:", send_message_result_w_type_id) + print("send_message_async succeeded") async def get_message_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id - async with chat_thread_client: - # [START get_message] - chat_message = await chat_thread_client.get_message(self._message_id) - # [END get_message] - print("get_message succeeded, message id:", chat_message.id, \ - "content: ", chat_message.content) + # [START get_message] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + # set `message_id` to an existing message id + chat_message = await chat_thread_client.get_message(message_id) + + print("Message received: ChatMessage: content=", chat_message.content.message, ", id=", chat_message.id) + # [END get_message] + print("get_message_async succeeded") async def list_messages_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START list_messages] - from datetime import datetime, timedelta - start_time = datetime.utcnow() - timedelta(days=1) - chat_messages = chat_thread_client.list_messages(results_per_page=1, start_time=start_time) - print("list_messages succeeded with results_per_page is 1, and start time is yesterday UTC") - async for chat_message_page in chat_messages.by_page(): - l = [ i async for i in chat_message_page] - print("page size: ", len(l)) - # [END list_messages] + thread_id = self._thread_id + chat_client = self._chat_client + + # [START list_messages] + from datetime import datetime, timedelta + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + start_time = datetime.utcnow() - timedelta(days=1) + chat_messages = chat_thread_client.list_messages(results_per_page=1, start_time=start_time) + print("list_messages succeeded with results_per_page is 1, and start time is yesterday UTC") + async for chat_message_page in chat_messages.by_page(): + async for chat_message in chat_message_page: + print("ChatMessage: message=", chat_message.content.message) + # [END list_messages] + print("list_messages_async succeeded") async def update_message_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id - async with chat_thread_client: - # [START update_message] - content = "updated message content" - await chat_thread_client.update_message(self._message_id, content=content) - # [END update_message] - print("update_message succeeded") + # [START update_message] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + # set `message_id` to an existing message id + previous_content = (await chat_thread_client.get_message(message_id)).content.message - async def send_read_receipt_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + content = "updated message content" + await chat_thread_client.update_message(self._message_id, content=content) - async with chat_thread_client: - # [START send_read_receipt] - await chat_thread_client.send_read_receipt(self._message_id) - # [END send_read_receipt] + current_content = (await chat_thread_client.get_message(message_id)).content.message - print("send_read_receipt succeeded") + print("Chat Message Updated: Previous value: ", previous_content, ", Current value: ", current_content) + # [END update_message] + print("update_message_async succeeded") + + async def send_read_receipt_async(self): + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id + # [START send_read_receipt] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + # set `message_id` to an existing message id + await chat_thread_client.send_read_receipt(message_id) + # [END send_read_receipt] + + print("send_read_receipt_async succeeded") async def list_read_receipts_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + thread_id = self._thread_id + chat_client = self._chat_client - async with chat_thread_client: - # [START list_read_receipts] - read_receipts = chat_thread_client.list_read_receipts() - # [END list_read_receipts] - print("list_read_receipts succeeded, receipts:") - async for read_receipt in read_receipts: - print(read_receipt) + # [START list_read_receipts] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + read_receipts = chat_thread_client.list_read_receipts() + print("list_read_receipts succeeded, receipts:") + async for read_receipt_page in read_receipts.by_page(): + async for read_receipt in read_receipt_page: + print(read_receipt) + # [END list_read_receipts] + print("list_read_receipts_async succeeded") async def delete_message_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START delete_message] - await chat_thread_client.delete_message(self._message_id) - # [END delete_message] - print("delete_message succeeded") + thread_id = self._thread_id + chat_client = self._chat_client + message_id = self._message_id + # [START delete_message] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + # set `message_id` to an existing message id + await chat_thread_client.delete_message(message_id) + # [END delete_message] + print("delete_message_async succeeded") async def list_participants_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START list_participants] - chat_thread_participants = chat_thread_client.list_participants() - print("list_participants succeeded, participants:") - async for chat_thread_participant in chat_thread_participants: - print(chat_thread_participant) - # [END list_participants] - - async def add_participant_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START add_participant] - from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier - from datetime import datetime - new_chat_thread_participant = ChatThreadParticipant( - user=self.new_user, - display_name='name', + thread_id = self._thread_id + chat_client = self._chat_client + # [START list_participants] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + chat_thread_participants = chat_thread_client.list_participants() + print("list_participants succeeded, participants:") + async for chat_thread_participant_page in chat_thread_participants.by_page(): + async for chat_thread_participant in chat_thread_participant_page: + print("ChatThreadParticipant: ", chat_thread_participant) + # [END list_participants] + print("list_participants_async succeeded") + + async def add_participant_w_check_async(self): + thread_id = self._thread_id + chat_client = self._chat_client + user = self.new_user + # [START add_participant] + def decide_to_retry(error): + """ + Custom logic to decide whether to retry to add or not + """ + return True + + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + from azure.communication.chat import ChatThreadParticipant + from datetime import datetime + new_chat_thread_participant = ChatThreadParticipant( + user=user, + display_name='name', + share_history_time=datetime.utcnow()) + try: + await chat_thread_client.add_participant(new_chat_thread_participant) + except RuntimeError as e: + if e is not None and decide_to_retry(error=e): + await chat_thread_client.add_participant(new_chat_thread_participant) + # [END add_participant] + print("add_participant_w_check_async succeeded") + + async def add_participants_w_check_async(self): + thread_id = self._thread_id + chat_client = self._chat_client + user = self.new_user + + # [START add_participants] + def decide_to_retry(error): + """ + Custom logic to decide whether to retry to add or not + """ + return True + + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + from azure.communication.chat import ChatThreadParticipant + from datetime import datetime + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=datetime.utcnow()) + thread_participants = [new_participant] + result = await chat_thread_client.add_participants(thread_participants) + + # list of participants which were unsuccessful to be added to chat thread + retry = [p for p, e in result if decide_to_retry(e)] + if len(retry) > 0: + chat_thread_client.add_participants(retry) + + # [END add_participants] + print("add_participants_w_check_async succeeded") + + async def remove_participant_async(self): + thread_id = self._thread_id + chat_client = self._chat_client + identity_client = self.identity_client + # [START remove_participant] + from azure.communication.chat import ChatThreadParticipant + from azure.communication.identity import CommunicationUserIdentifier + from datetime import datetime + + async with chat_client: + # create 2 new users using CommunicationIdentityClient.create_user method + user1 = identity_client.create_user() + user2 = identity_client.create_user() + + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + + async with chat_thread_client: + # add user1 and user2 to chat thread + participant1 = ChatThreadParticipant( + user=user1, + display_name='Fred Flinstone', share_history_time=datetime.utcnow()) - await chat_thread_client.add_participant(new_chat_thread_participant) - # [END add_participant] - print("add_participant succeeded") - async def add_participants_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - - async with chat_thread_client: - # [START add_participants] - from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier - from datetime import datetime - new_participant = ChatThreadParticipant( - user=self.new_user, - display_name='name', + participant2 = ChatThreadParticipant( + user=user2, + display_name='Wilma Flinstone', share_history_time=datetime.utcnow()) - participants = [new_participant] - await chat_thread_client.add_participants(participants) - # [END add_participants] - print("add_participants succeeded") - async def remove_participant_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, \ - CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), - self._thread_id) + thread_participants = [participant1, participant2] + await chat_thread_client.add_participants(thread_participants) - async with chat_thread_client: - # [START remove_participant] - await chat_thread_client.remove_participant(self.new_user) - # [END remove_participant] - print("remove_participant_async succeeded") + # Option 1 : Iterate through all participants, find and delete Fred Flinstone + chat_thread_participants = chat_thread_client.list_participants() - async def send_typing_notification_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + async for chat_thread_participant_page in chat_thread_participants.by_page(): + async for chat_thread_participant in chat_thread_participant_page: + print("ChatThreadParticipant: ", chat_thread_participant) + if chat_thread_participant.user.identifier == user1.identifier: + print("Found Fred!") + await chat_thread_client.remove_participant(chat_thread_participant.user) + print("Fred has been removed from the thread...") + break + + # Option 2: Directly remove Wilma Flinstone + unique_identifier = user2.identifier # in real scenario the identifier would need to be retrieved from elsewhere + await chat_thread_client.remove_participant(CommunicationUserIdentifier(unique_identifier)) + print("Wilma has been removed from the thread...") + # [END remove_participant] - async with chat_thread_client: - # [START send_typing_notification] - await chat_thread_client.send_typing_notification() - # [END send_typing_notification] - print("send_typing_notification succeeded") + # clean up temporary users + self.identity_client.delete_user(user1) + self.identity_client.delete_user(user2) + print("remove_participant_async succeeded") + + async def send_typing_notification_async(self): + thread_id = self._thread_id + chat_client = self._chat_client + # [START send_typing_notification] + async with chat_client: + # set `thread_id` to an existing thread id + chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + async with chat_thread_client: + await chat_thread_client.send_typing_notification() + # [END send_typing_notification] + print("send_typing_notification_async succeeded") def clean_up(self): print("cleaning up: deleting created users.") @@ -274,8 +397,8 @@ async def main(): await sample.send_read_receipt_async() await sample.list_read_receipts_async() await sample.delete_message_async() - await sample.add_participant_async() - await sample.add_participants_async() + await sample.add_participant_w_check_async() + await sample.add_participants_w_check_async() await sample.list_participants_async() await sample.remove_participant_async() await sample.send_typing_notification_async() diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml new file mode 100644 index 000000000000..aa5d0e431598 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml @@ -0,0 +1,200 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Mon, 01 Mar 2021 23:10:59 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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?api-version=2021-03-07 + response: + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 01 Mar 2021 23:10:59 GMT + ms-cv: + - bW6n9WIC+0e3lIIMYxZQag.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 65ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Mon, 01 Mar 2021 23:10:59 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 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/:issueAccessToken?api-version=2021-03-07 + response: + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:10:58.9306776+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 01 Mar 2021 23:10:59 GMT + ms-cv: + - MQ5CNrfwpk2ldAK6FpvF1w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 85ms + status: + code: 200 + message: OK +- request: + body: '{"topic": "test topic1", "participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-Id: + - fa747021-f9a3-4253-a19f-939cce81b174 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + response: + body: '{"chatThread": {"id": "19:Ky3TqpBBlrcv99Nzo6k7PnHAF24hHJe4NCu9_Hm6bfA1@thread.v2", + "topic": "test topic1", "createdOn": "2021-03-01T23:11:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b"}}}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 01 Mar 2021 23:11:00 GMT + ms-cv: + - WxWXXsh1f0684VuhjaktZQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 906ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Mon, 01 Mar 2021 23:11:00 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + date: + - Mon, 01 Mar 2021 23:11:17 GMT + ms-cv: + - /rPqTLNSV0mkKNWE1XECBQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 16329ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + date: + - Mon, 01 Mar 2021 23:11:17 GMT + ms-cv: + - 58gpvEda/k+1SmXVYyCBhw.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 303ms + status: + code: 204 + message: No Content +version: 1 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 ac9edd8bf7ad..2d7ba1da247d 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:10 GMT + - Mon, 01 Mar 2021 23:11:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:08 GMT + - Mon, 01 Mar 2021 23:11:18 GMT ms-cv: - - 7cWLEnO0XkCcjQoDhXV+QQ.0 + - o1Q2S+OZaUWwVrObri2lbQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 31ms + - 12ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:10 GMT + - Mon, 01 Mar 2021 23:11:18 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:08.2776869+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:17.344548+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:08 GMT + - Mon, 01 Mar 2021 23:11:18 GMT ms-cv: - - gYlmwgTAUUqB8vJ3F2VtcA.0 + - 9RQB/Fte0UOjmyNDyi8r4w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 96ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 071c34b7-c403-4fda-82ec-a67a99eec2c9 + - 6a1eae11-2bd1-46b9-ad31-4422fcbd69a7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:t1E0TNw5xsca40FN1viBVTrnd_Rg65eAcTxBRwwuyaE1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:02:09Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-6bf3-1655-373a0d00a7eb"}}}}' + body: '{"chatThread": {"id": "19:gOes8DCyipHncgQGhWh4pTzjs4dn1NslXhbSeFjZPEQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:11:18Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:10 GMT + - Mon, 01 Mar 2021 23:11:19 GMT ms-cv: - - GLwdj/bdBkSozb1AinMEXA.0 + - tJ6u6UlFrEiDWyEaiGfi5g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1043ms + - 821ms status: code: 201 message: Created @@ -139,7 +139,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:02:12 GMT + - Mon, 01 Mar 2021 23:11:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:02:25 GMT + - Mon, 01 Mar 2021 23:11:35 GMT ms-cv: - - Ek8ywwI7Q0mFMi/VcPp3Uw.0 + - LPSpK61oGEOdTG/7cce39w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16265ms + - 16690ms status: code: 204 message: No Content @@ -185,15 +185,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:02:26 GMT + - Mon, 01 Mar 2021 23:11:35 GMT ms-cv: - - ijuiYLvLv0SpLacD0Vyavg.0 + - bEvdrAQxO0+Waa8482A+og.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 290ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml index 36cfbd6ba7f5..bd2f06714368 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:28 GMT + - Mon, 01 Mar 2021 23:11:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:27 GMT + - Mon, 01 Mar 2021 23:11:36 GMT ms-cv: - - 7HPabRS+rUOKhVvA7RjKtg.0 + - gBTv8xkWEkG5akiDGE7Shw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 113ms + - 63ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:29 GMT + - Mon, 01 Mar 2021 23:11:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:26.7566267+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:35.9936998+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:27 GMT + - Mon, 01 Mar 2021 23:11:36 GMT ms-cv: - - FGpm+DoxV0yMNfs639sE6w.0 + - DrKW5FHR1UGUJoNWItcxDQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 91ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 7bf29d0e-5f9a-4ab3-9b32-a9531d7f36d8 + - a084ed5e-af68-4831-923f-b566eea88949 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:lumWjfrkyaWx5bwm7wWHDONFMzizI59LfOhAh8dcKG81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:02:28Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-b426-1db7-3a3a0d00aa3a"}}}}' + body: '{"chatThread": {"id": "19:_MTvpgDZ0sQ1x8NmI0nIp_oDV6cntpWSFjFSNlrMpT81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:11:37Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:28 GMT + - Mon, 01 Mar 2021 23:11:37 GMT ms-cv: - - ui2/t7KTtEKKUg1zZ36hgQ.0 + - 3ivl6phbnEesWJVRH3pmmQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1186ms + - 829ms status: code: 201 message: Created @@ -139,7 +139,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:02:30 GMT + - Mon, 01 Mar 2021 23:11:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:02:45 GMT + - Mon, 01 Mar 2021 23:11:53 GMT ms-cv: - - 07KYYdblpUi+bIqZZGROxw.0 + - dKgIMmLihE+Cw+39dbDuug.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16751ms + - 16550ms status: code: 204 message: No Content @@ -185,15 +185,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:02:45 GMT + - Mon, 01 Mar 2021 23:11:54 GMT ms-cv: - - vZ8uS0jeOUWFgoSsvl/gHg.0 + - SK3uz76dJUiMg4TPA9RdUQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 292ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml index 8b14320939fe..0b2992214e66 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:48 GMT + - Mon, 01 Mar 2021 23:11:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:46 GMT + - Mon, 01 Mar 2021 23:11:54 GMT ms-cv: - - IdiUy3DoU0irsOkfrrtXZA.0 + - boKHZHPBfU6YQ4YkHh+3uQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 52ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:02:48 GMT + - Mon, 01 Mar 2021 23:11:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:02:45.6463802+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:54.2812766+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:46 GMT + - Mon, 01 Mar 2021 23:11:54 GMT ms-cv: - - htUnEJgtY0ma4Q+fOl9Ueg.0 + - X++gUGblR0yomDL/mV0OUg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 89ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 0c6f6421-c625-45a7-87b1-cf943f30c40c + - dc104471-80e0-4aa0-aa43-f5891407d977 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QSD8rhLOT0xEY6HSEeY-pjJLo9UA5hBpoHbEbIQX9qI1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:02:47Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}}}' + body: '{"chatThread": {"id": "19:eNSEjghJllwmTm-39qenUverVnQUDWlvOD47fBoDbOE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:11:55Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:47 GMT + - Mon, 01 Mar 2021 23:11:56 GMT ms-cv: - - GnG3g7/+QU2kqLGKdwPc3Q.0 + - gFqhRqzKv0Wm4k8jUPryrg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 887ms + - 843ms status: code: 201 message: Created @@ -143,29 +143,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 0c6f6421-c625-45a7-87b1-cf943f30c40c + - dc104471-80e0-4aa0-aa43-f5891407d977 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:QSD8rhLOT0xEY6HSEeY-pjJLo9UA5hBpoHbEbIQX9qI1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:02:47Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de2-fdee-1655-373a0d00a7ed"}}}}' + body: '{"chatThread": {"id": "19:eNSEjghJllwmTm-39qenUverVnQUDWlvOD47fBoDbOE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:11:55Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:02:48 GMT + - Mon, 01 Mar 2021 23:11:56 GMT ms-cv: - - MXHTOleHpEeAFXf1A+NQkQ.0 + - M5WkU9xpwEeue7p6AWMKTQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 644ms + - 663ms status: code: 201 message: Created @@ -181,7 +181,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:02:50 GMT + - Mon, 01 Mar 2021 23:11:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -195,15 +195,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:03:04 GMT + - Mon, 01 Mar 2021 23:12:13 GMT ms-cv: - - 1Z5OjOh/gkOqAJ4RJ1CRJw.0 + - HKzdmGO8x0GCD6B4RJcGlQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16536ms + - 16291ms status: code: 204 message: No Content @@ -227,15 +227,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:03:04 GMT + - Mon, 01 Mar 2021 23:12:13 GMT ms-cv: - - p4Jod1+GoECWXnjkgujaXA.0 + - xK61zT18s06HRgGF8FiP3Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 320ms + - 293ms 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 8e6c8ab31c63..72316fe58a06 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:07 GMT + - Mon, 01 Mar 2021 23:12:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:05 GMT + - Mon, 01 Mar 2021 23:12:12 GMT ms-cv: - - LxMo7TsaH0+bCvSNpluQtw.0 + - uCRjJw16UUW2PVmRc45Bfw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 21ms + - 20ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:07 GMT + - Mon, 01 Mar 2021 23:12:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:04.8799592+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:13.0870762+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:05 GMT + - Mon, 01 Mar 2021 23:12:13 GMT ms-cv: - - oOQjrXNwJU+vp0v8hpqXZg.0 + - v/O8d6Jdg0Sjc6Hn4g1mRQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 96ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 292293ec-a997-406b-895a-ca9d45ea5154 + - 61096283-6efc-4469-8352-98fb47975c67 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:7TMVObaDA7bwdiC3e3ybseaNpDiKly-u0q1VbzNSliM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:03:06Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-490e-b0b7-3a3a0d00a712"}}}}' + body: '{"chatThread": {"id": "19:divZF8vf-ddqTxf4aWBgBqJgmQsKkqDnUL00NT8qN2s1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:12:14Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:06 GMT + - Mon, 01 Mar 2021 23:12:14 GMT ms-cv: - - qhmyOgFUMkGNW/xMAaEeHw.0 + - xLBaimEFxE2YIOm0y+HVWA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1199ms + - 853ms status: code: 201 message: Created @@ -147,15 +147,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:03:06 GMT + - Mon, 01 Mar 2021 23:12:14 GMT ms-cv: - - sApVs2CcCUm72ASgIuiYZw.0 + - YQjYStjZ/kakJ1gQUFuFyg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 291ms + - 296ms status: code: 204 message: No Content @@ -171,7 +171,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:03:09 GMT + - Mon, 01 Mar 2021 23:12:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -185,15 +185,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:03:23 GMT + - Mon, 01 Mar 2021 23:12:32 GMT ms-cv: - - 4AzP1l+KFkyLt5SRdoStTg.0 + - FUX1VjJC1kS1q8iXH6JsYA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16683ms + - 16638ms status: code: 204 message: No Content @@ -217,15 +217,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:03:24 GMT + - Mon, 01 Mar 2021 23:12:32 GMT ms-cv: - - 1KN7dacOu0SQsVawu2/0kg.0 + - HoESK/Lyr0Odx8VeWgLz2A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 243ms + - 272ms 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 dddc1605700b..470ff21446d1 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:26 GMT + - Mon, 01 Mar 2021 23:12:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:24 GMT + - Mon, 01 Mar 2021 23:12:33 GMT ms-cv: - - EuFR4wzxEEeDDMpuivE7Qw.0 + - bXYCcZLD5Uao4dsugnJt2A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 23ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:26 GMT + - Mon, 01 Mar 2021 23:12:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:23.9554234+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:32.51274+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:24 GMT + - Mon, 01 Mar 2021 23:12:33 GMT ms-cv: - - vT9yDd27DUW3fixk3wFT0Q.0 + - dAxmslV0MkambGDyUvT6xQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 100ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 2c966c71-7392-4eb1-ab2d-e3597ab762c9 + - 9f1e4ccd-8e37-4df1-8b82-55f39aba00a2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:FNka5cuFbWkJ00ln-lFQwzKJ0X1eOGcavE7cFftBNus1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:03:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}}}' + body: '{"chatThread": {"id": "19:L607LTa1QYFQoVI2DdPwmPhHE5eAOMSmEPTLPfQGsUo1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:12:33Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:25 GMT + - Mon, 01 Mar 2021 23:12:34 GMT ms-cv: - - to3kCZgmPUqdHyLZOrVUtw.0 + - /D4N8bkckEyTTcjLy+SDmw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 885ms + - 840ms status: code: 201 message: Created @@ -141,24 +141,24 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-26T11:03:25Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-9395-1655-373a0d00a7f5"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-01T23:12:33Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:26 GMT + - Mon, 01 Mar 2021 23:12:34 GMT ms-cv: - - 4ND8+VBn+EyJ1xYzl8BlOw.0 + - hTOqvc+qDUW9zlBhJboGaA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 246ms + - 252ms status: code: 200 message: OK @@ -174,7 +174,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:03:28 GMT + - Mon, 01 Mar 2021 23:12:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -188,15 +188,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:03:41 GMT + - Mon, 01 Mar 2021 23:12:50 GMT ms-cv: - - yLPGJi7UmU22aL4WFlDZtQ.0 + - HTdezt3MMEemJzrPHVshnw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16045ms + - 16336ms status: code: 204 message: No Content @@ -220,15 +220,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:03:42 GMT + - Mon, 01 Mar 2021 23:12:51 GMT ms-cv: - - YsnX/ksyK0OCqQqaJ0yD/A.0 + - Cw4/PlUnREWG16S5jmH6AA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 326ms + - 292ms 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 94dc373da55b..2d880f37750a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:44 GMT + - Mon, 01 Mar 2021 23:12:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:42 GMT + - Mon, 01 Mar 2021 23:12:51 GMT ms-cv: - - iW9KvlpD5k+8sCLEZRoNeA.0 + - Btvll0RNs0KNo4lhs0zKeg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 131ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:03:45 GMT + - Mon, 01 Mar 2021 23:12:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:03:42.5432824+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:51.1946354+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:42 GMT + - Mon, 01 Mar 2021 23:12:51 GMT ms-cv: - - aufDeEt18kajUL6mBG1D9Q.0 + - cYB8tbUtx0m96YdACDBv8g.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 139ms + - 93ms status: code: 200 message: OK @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - d1c39182-475b-479f-bd37-68af9d09d03b + - e802eabc-4f80-4aac-9ffa-5bc199001af5 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Qg7DUjna686T-xIta1V9U3cP3DPymEj0qvmnsNNah0o1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:03:43Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de3-dbf8-9c58-373a0d00a33c"}}}}' + body: '{"chatThread": {"id": "19:xPDM5_hzLZs8kiMbGwNpJgR05YwtQ9VskwYoUHtBJCo1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:12:52Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:03:43 GMT + - Mon, 01 Mar 2021 23:12:53 GMT ms-cv: - - 9L/1zSQgBEG3nimjkUZcWg.0 + - hdCt6oYchEGWO1adjMn+XA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 889ms + - 837ms status: code: 201 message: Created @@ -139,7 +139,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:03:46 GMT + - Mon, 01 Mar 2021 23:12:53 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:04:01 GMT + - Mon, 01 Mar 2021 23:13:08 GMT ms-cv: - - x99n8st3HkuCyUzWQ4gRIg.0 + - mbJHP13ODkqJWjH55rDsbQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16894ms + - 15931ms status: code: 204 message: No Content @@ -185,15 +185,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:04:01 GMT + - Mon, 01 Mar 2021 23:13:09 GMT ms-cv: - - f0QJrsW2CESRrSprrJHjsg.0 + - C3hlPfnluEKVeZm2B/rQwA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 283ms + - 298ms 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 d1316ba323c2..03c9b721798c 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:03 GMT + - Mon, 01 Mar 2021 23:13:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:01 GMT + - Mon, 01 Mar 2021 23:13:09 GMT ms-cv: - - 3iVpAk8Wqk2GSrjFFZL96Q.0 + - L33MBngY1E6iLzKIgkT2Sw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 18ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:04 GMT + - Mon, 01 Mar 2021 23:13:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:01.4162513+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:08.9632617+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:01 GMT + - Mon, 01 Mar 2021 23:13:09 GMT ms-cv: - - MJtegjp//UK2w/YojN41nA.0 + - kOxiWnfMq0CYDmyRKGMFpQ.0 request-context: - appId= strict-transport-security: @@ -101,29 +101,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 81ce1779-32a3-4fc3-8368-1d0587faa457 + - 49a07a02-a8b6-43b6-8591-9d7970eb5f44 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:-s3pMWb-t2bZR34wuCegoMTVlRETYzZn6FyjhV0dWnA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:04:02Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-25d3-9c58-373a0d00a33d"}}}}' + body: '{"chatThread": {"id": "19:Ytg-Ey6wVK8GuxaPsqrAAgyIdZm7lpyEljG2KPpisZM1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:13:10Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:03 GMT + - Mon, 01 Mar 2021 23:13:10 GMT ms-cv: - - Mq/hiin8Fk+/e4etIh/4nw.0 + - aeHvgXwy30WraKp3O0IusQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 827ms + - 851ms status: code: 201 message: Created @@ -144,19 +144,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:05 GMT + - Mon, 01 Mar 2021 23:13:12 GMT ms-cv: - - 1B5ZYBvQTkaHDN3eut5SvA.0 + - XN2XcZeEmEu4FeJR0Od+1Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 387ms + - 385ms status: code: 200 message: OK @@ -172,7 +172,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:04:07 GMT + - Mon, 01 Mar 2021 23:13:13 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -186,15 +186,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:04:21 GMT + - Mon, 01 Mar 2021 23:13:28 GMT ms-cv: - - RBT4GDXIL0G5E8f25IF+bA.0 + - 76QCTGERQUm1w67q+iFD5A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15937ms + - 15730ms status: code: 204 message: No Content @@ -218,15 +218,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 11:04:21 GMT + - Mon, 01 Mar 2021 23:13:28 GMT ms-cv: - - u8eR52kXFE2VWFIgeX5EIQ.0 + - UnTRmhKNJUSJEPNwtPOFrQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 286ms 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 15d704424d14..a1097832b684 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:24 GMT + - Mon, 01 Mar 2021 23:13:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:22 GMT + - Mon, 01 Mar 2021 23:13:29 GMT ms-cv: - - l7rwg3lcVEiZxHaXoWwdfA.0 + - HuPP1ThDDU2SgTpma7095Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 63ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:24 GMT + - Mon, 01 Mar 2021 23:13:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:21.7563171+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:28.895824+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:22 GMT + - Mon, 01 Mar 2021 23:13:29 GMT ms-cv: - - 7mILm816TEuvl7n0e/O/Xw.0 + - bOnA0dDdbkWXYCU/VhyZKA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 94ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - e09a1b66-011f-4d48-8607-41167e142b88 + - 0ceb21b6-60ec-4180-ae51-699957c2e204 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:BVj64K52gOTf2uM-Kwll2B3JZwy7vJuQPNTLBsM0ZtM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:04:23Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-754d-1655-373a0d00a7f6"}}}}' + body: '{"chatThread": {"id": "19:-i0uFpmWwsQpFoaWG4En3Oil8WphbzovDCSkdZUhsL41@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:13:30Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:04:23 GMT - ms-cv: vABi/UU5Bk++GQlSQNRTPQ.0 + date: Mon, 01 Mar 2021 23:13:30 GMT + ms-cv: Y6woGsmZoE2ukkbCcCsO+g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 835ms + x-processing-time: 839ms status: code: 201 message: Created @@ -130,11 +131,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:04:23 GMT - ms-cv: J6/PrQiQUU2rOvSQtiol7g.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:13:30 GMT + ms-cv: Gz3XzHmp8UqOnLNHJgWfbg.0 strict-transport-security: max-age=2592000 - x-processing-time: 333ms + x-processing-time: 296ms status: code: 204 message: No Content @@ -151,7 +153,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:04:25 GMT + - Mon, 01 Mar 2021 23:13:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -165,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:04:39 GMT + - Mon, 01 Mar 2021 23:13:48 GMT ms-cv: - - 9r+G+FKAUU+DA+giNs6stA.0 + - sL7w0ec2cESw/NOo6QT8/w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16539ms + - 17183ms 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_w_no_participants_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml index 615d6278cc2f..3091dc683c5a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:42 GMT + - Mon, 01 Mar 2021 23:13:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:40 GMT + - Mon, 01 Mar 2021 23:13:48 GMT ms-cv: - - wp13B1txLEyYh8B4idfGZg.0 + - P5SCqAHmoE6spN0fTu7Q4w.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 79ms + - 71ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:04:42 GMT + - Mon, 01 Mar 2021 23:13:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:40.1673539+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:47.8924518+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:40 GMT + - Mon, 01 Mar 2021 23:13:48 GMT ms-cv: - - pxDqbGcKEkKSdBQuWyaH0A.0 + - Meew9aPM2kWFfcDy8ApB0w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 98ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - e278086e-8057-4738-b429-b6c9d0121cac + - a63a8805-27d5-40e0-9927-4409b5947575 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:t6CwFmxS6Bod_xwtrGih3AjIwjvFD_31-_367OC6_b01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:04:41Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de4-bd4a-dbb7-3a3a0d00a7d3"}}}}' + body: '{"chatThread": {"id": "19:fyiLTLG61FU0clc7XDYHU4JGxni4V6ie1ZeOl2I7Kqw1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:13:49Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:04:41 GMT - ms-cv: e4H5CHGzUESe9PytiNDKCA.0 + date: Mon, 01 Mar 2021 23:13:49 GMT + ms-cv: SqzmjFPtzkmjeYynYuak8Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 890ms + x-processing-time: 821ms status: code: 201 message: Created @@ -130,11 +131,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:04:41 GMT - ms-cv: i2Y9a9lSZUumOMbSsZCO4w.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:13:50 GMT + ms-cv: Qzc/BwblME69WjvC0+D+EA.0 strict-transport-security: max-age=2592000 - x-processing-time: 323ms + x-processing-time: 289ms status: code: 204 message: No Content @@ -151,7 +153,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:04:44 GMT + - Mon, 01 Mar 2021 23:13:50 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -165,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:04:59 GMT + - Mon, 01 Mar 2021 23:14:05 GMT ms-cv: - - vl/cgvEya0W64L2mRx3AHQ.0 + - Nih3hqxtjUynhS88uR95pQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16754ms + - 16327ms 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_w_repeatability_request_id_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml index 1b8c7a5fd77e..ac7e7afbe8e1 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:01 GMT + - Mon, 01 Mar 2021 23:14:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:59 GMT + - Mon, 01 Mar 2021 23:14:06 GMT ms-cv: - - LvxFxjm1l0CYtY9YTwSTOA.0 + - i4yILdubt0WIG45+vXc9Ag.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:01 GMT + - Mon, 01 Mar 2021 23:14:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:04:58.9152516+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:06.1177615+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:04:59 GMT + - Mon, 01 Mar 2021 23:14:07 GMT ms-cv: - - P4N57fkrZEqk0N6sZL0j9A.0 + - XILY7nn670CAuxPvrYit4A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 108ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - feced934-a145-47d1-b123-be347c54f48b + - 1b8fc3c0-4178-4c8d-8129-9ca08d4f5d8c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:c3KQn2P06KJlHyDxxsG1TyCjeMr05cI1K3vd4VqdlG01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:05:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}}}' + body: '{"chatThread": {"id": "19:B-ynYDZgUs8AkHAio97-dvc6UaXwMQeoxMKW4D7FnlU1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:14:07Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:00 GMT - ms-cv: iWYYA7qiyUiB1c3KZEb0Jw.0 + date: Mon, 01 Mar 2021 23:14:07 GMT + ms-cv: e2fPLpJA9UKGCt2TJiivXQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 834ms + x-processing-time: 831ms status: code: 201 message: Created @@ -123,28 +124,29 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - feced934-a145-47d1-b123-be347c54f48b + - 1b8fc3c0-4178-4c8d-8129-9ca08d4f5d8c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:c3KQn2P06KJlHyDxxsG1TyCjeMr05cI1K3vd4VqdlG01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:05:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-067c-dbb7-3a3a0d00a7d4"}}}}' + body: '{"chatThread": {"id": "19:B-ynYDZgUs8AkHAio97-dvc6UaXwMQeoxMKW4D7FnlU1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:14:07Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:01 GMT - ms-cv: LFw241M0zkCEfctgU7b69w.0 + date: Mon, 01 Mar 2021 23:14:08 GMT + ms-cv: ZJ1uDD51jkCic9qAAkw1Aw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 651ms + x-processing-time: 642ms status: code: 201 message: Created @@ -162,11 +164,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:05:01 GMT - ms-cv: Fyy8QEnx7UajSJfx48N56w.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:14:08 GMT + ms-cv: 5RUFVqC7LU2wPtHL3NYwGQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 287ms status: code: 204 message: No Content @@ -183,7 +186,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:05:03 GMT + - Mon, 01 Mar 2021 23:14:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -197,15 +200,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:05:17 GMT + - Mon, 01 Mar 2021 23:14:25 GMT ms-cv: - - NW3v/1FOQ0udLrIGanhvWg.0 + - p9yP8tmYgkGK3ubw4CuS3g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16008ms + - 16898ms 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 6b3dbcb39d1a..ade243436527 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:19 GMT + - Mon, 01 Mar 2021 23:14:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:17 GMT + - Mon, 01 Mar 2021 23:14:25 GMT ms-cv: - - DoZai7/Npk+/mWeCx0lJrQ.0 + - 7+l9g9Wr206DDRri7UQLLw.0 request-context: - appId= strict-transport-security: @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:20 GMT + - Mon, 01 Mar 2021 23:14:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:17.4368921+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:25.4209728+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:17 GMT + - Mon, 01 Mar 2021 23:14:25 GMT ms-cv: - - uoXgBr19wU2T3qFbyIUb/w.0 + - MOJhXcYyLU6sO9B3rrEP4A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - b4f6268b-ac70-40cd-9149-d004e091e3e4 + - b8131d30-db2d-4f74-8ac7-fcb8cdaa8232 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:HLgKubcOs1Qnpzl0-S1iszZdC0P-BBxaClONK6qcXlk1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:05:18Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-4ede-9c58-373a0d00a340"}}}}' + body: '{"chatThread": {"id": "19:W5HTQ6iUB6OMQ5rYPm4XMs_N1rk3QF3kO1y-TMpw_qI1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:14:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:18 GMT - ms-cv: VP18ZCFto0ONhxQzC06GwA.0 + date: Mon, 01 Mar 2021 23:14:27 GMT + ms-cv: GaOWQ1/Oa0yFjl98q33P1A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 839ms + x-processing-time: 834ms status: code: 201 message: Created @@ -130,11 +131,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:05:18 GMT - ms-cv: 8AgZHqhZvEKxdz4wHknu+A.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:14:27 GMT + ms-cv: KcxiQpMpXkG8SieVt3kROg.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -152,11 +154,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:05:19 GMT - ms-cv: F99/lkrl0kWnEHRTrC9/Zw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:14:27 GMT + ms-cv: ho1aWOX2rkCt3idPXjMcyQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 252ms + x-processing-time: 304ms status: code: 204 message: No Content @@ -173,7 +176,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:05:21 GMT + - Mon, 01 Mar 2021 23:14:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -187,15 +190,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:05:36 GMT + - Mon, 01 Mar 2021 23:14:43 GMT ms-cv: - - 5GM0qXUBR0Gj9HKapn+K8g.0 + - 2ILlZCUFjkKgR1Ipg7VqpA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17137ms + - 16135ms 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 922e6799049b..cde34857232f 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:38 GMT + - Mon, 01 Mar 2021 23:14:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:37 GMT + - Mon, 01 Mar 2021 23:14:44 GMT ms-cv: - - FtIEKuc8ykqZB4p47mZhIw.0 + - RsQhh2DfPkGA68jXi9/hmA.0 request-context: - appId= strict-transport-security: @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:39 GMT + - Mon, 01 Mar 2021 23:14:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:36.6395067+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:43.6241158+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:37 GMT + - Mon, 01 Mar 2021 23:14:44 GMT ms-cv: - - G2yhEOaZ4Em/kNe9SJfuIA.0 + - 04pJyTQMqEqsD9qLSCB+dg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 85ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 46737d6a-a0d0-45ab-94e6-efdae1d7d8fd + - 63601889-68b1-4d8d-aba9-b40f14cda32c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:f2-j-g5DdMI_rEpU9OVmg5meVuVwjaJsw-i8o7rLe_U1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:05:38Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}}}' + body: '{"chatThread": {"id": "19:TQ2jo8KCLgwuuoxUOUVSSKHaOur6xhoi0JUxkjW3D-g1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:14:45Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:38 GMT - ms-cv: MTaGhAZdDUSus6LRcBgU0w.0 + date: Mon, 01 Mar 2021 23:14:45 GMT + ms-cv: CP8CvI+t0U2j+H9YDAT6sg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 881ms + x-processing-time: 837ms status: code: 201 message: Created @@ -127,17 +128,18 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-26T11:05:38Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-99cb-b0b7-3a3a0d00a724"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-01T23:14:45Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:38 GMT - ms-cv: QGzTxWY4MkGTDnzz0+sMPA.0 + date: Mon, 01 Mar 2021 23:14:45 GMT + ms-cv: xl3Ck2aef0CZDps6w77twg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 255ms + x-processing-time: 250ms status: code: 200 message: OK @@ -155,11 +157,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:05:39 GMT - ms-cv: hyvgpKXwvUmrWoq9fTx/zw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:14:46 GMT + ms-cv: ZM/NAd6N/Ei0y8xnnocovA.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 287ms status: code: 204 message: No Content @@ -176,7 +179,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:05:41 GMT + - Mon, 01 Mar 2021 23:14:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -190,15 +193,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:05:54 GMT + - Mon, 01 Mar 2021 23:15:02 GMT ms-cv: - - +u4TEORJHkOLFoNtlO7n9A.0 + - zQbPSoz7ZEyJF/NUucPJ3g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15987ms + - 16817ms 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 ffb73b014d28..02e79a19bc7f 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:57 GMT + - Mon, 01 Mar 2021 23:15:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:55 GMT + - Mon, 01 Mar 2021 23:15:03 GMT ms-cv: - - RLO913gZSkOEho71wet5HA.0 + - OAFcFU2uIEiLgm2Bd8kz3g.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 21ms + - 64ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:05:57 GMT + - Mon, 01 Mar 2021 23:15:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:05:54.8663893+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:15:02.6587392+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:05:55 GMT + - Mon, 01 Mar 2021 23:15:03 GMT ms-cv: - - of4ivAg37USKEKy1zgjYMA.0 + - ofdweUZE2EmxTaNnzix1Kw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 98ms + - 89ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 8e416940-142b-4024-acf6-ce6d55fa3487 + - 14d82eb0-26f5-4aec-ba2d-5b233446b277 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:2WoCuiiYSQxqIWXyh11qik24P0kSnmYgK-6A1GwBgXw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:05:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de5-e10d-b0b7-3a3a0d00a725"}}}}' + body: '{"chatThread": {"id": "19:6LA8hfvYZ6blgcoIXWOaP_fBbD6sCze7SgaoIij2BoM1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:15:04Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:05:56 GMT - ms-cv: ++Hd3jwnOkycUz9Z4Zosow.0 + date: Mon, 01 Mar 2021 23:15:04 GMT + ms-cv: Ok4S5AoSa06hW4Obu3I0JQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 820ms + x-processing-time: 835ms status: code: 201 message: Created @@ -130,11 +131,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:05:57 GMT - ms-cv: aovz8n2Fv0e6lPJWMSvWdg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:15:04 GMT + ms-cv: jSC8ZnL1x0OnODJ4gBbcZg.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 287ms status: code: 204 message: No Content @@ -151,7 +153,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:05:58 GMT + - Mon, 01 Mar 2021 23:15:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -165,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:06:13 GMT + - Mon, 01 Mar 2021 23:15:20 GMT ms-cv: - - qq2eqxg1BEGIdRFhC/6vGQ.0 + - 80jrq7PPEkWyjE0aDjSoyw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16938ms + - 15802ms 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 71c7cf98263e..84f758df3c54 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:06:15 GMT + - Mon, 01 Mar 2021 23:15:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:06:13 GMT + - Mon, 01 Mar 2021 23:15:20 GMT ms-cv: - - jKUsoBbsFkqlETRRCl9R9w.0 + - ZbaA6oMtgUeyd5aD++s6YQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 85ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:06:16 GMT + - Mon, 01 Mar 2021 23:15:21 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:06:13.6223807+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:15:20.4423646+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:06:13 GMT + - Mon, 01 Mar 2021 23:15:21 GMT ms-cv: - - 9FZfm3+870ODlf4BQ9HCLw.0 + - 1IPKNQVVO0uswbXRU4snQg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 133ms status: code: 200 message: OK @@ -97,22 +97,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - c7b4ea98-e1a1-42d9-bdef-6ff3ec8c1b65 + - 44001336-f972-4c2f-b99f-eadb6e05adf2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:-PLcr1T8kUOqk31bVmnrrDoWHqmJtedh1AqIgOZOw2c1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:06:15Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7de6-2a56-1655-373a0d00a803"}}}}' + body: '{"chatThread": {"id": "19:0kiJcqIc9H8Yq_uvcbthgt4fLPvcX33J17SwULgHTxE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:15:21Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:06:15 GMT - ms-cv: r3RJ9aVbjU6Mx9roxBsX6Q.0 + date: Mon, 01 Mar 2021 23:15:22 GMT + ms-cv: S4CxBYLDxEmISblspQy3Pw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 846ms + x-processing-time: 910ms status: code: 201 message: Created @@ -129,13 +130,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:06:17 GMT - ms-cv: VygONvTtgEWbvpc9CuRxIQ.0 + date: Mon, 01 Mar 2021 23:15:24 GMT + ms-cv: cuKBu6wh1kyXnKNJd/gYHw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 767ms + x-processing-time: 384ms status: code: 200 message: OK @@ -153,11 +155,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:06:18 GMT - ms-cv: sFZiqMCrPECTQ5YVyd09LQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:15:25 GMT + ms-cv: gPRd7szgSk2eEupIEjrnJA.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 332ms status: code: 204 message: No Content @@ -174,7 +177,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:06:20 GMT + - Mon, 01 Mar 2021 23:15:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -188,15 +191,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:06:34 GMT + - Mon, 01 Mar 2021 23:15:40 GMT ms-cv: - - zPALF/Xt/EebC6Y0aPkFLA.0 + - UP0S0SwFIUqnnHuhzWQ4wg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16165ms + - 16075ms 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 9d09258433c4..90cbadc643f7 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:03:32 GMT + - Mon, 01 Mar 2021 23:37:05 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:29 GMT + - Mon, 01 Mar 2021 23:37:05 GMT ms-cv: - - +fPAQmUdhUe3iAjJGn5kkQ.0 + - gXtrzXPH30KtjuOoLBNOGg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:03:32 GMT + - Mon, 01 Mar 2021 23:37:05 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:03:29.2571695+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:04.7108628+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:29 GMT + - Mon, 01 Mar 2021 23:37:05 GMT ms-cv: - - +GtDmvjWREGJQUorGd83Fw.0 + - hjlQRLz3AEqVaallePfMJg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 97ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:03:32 GMT + - Mon, 01 Mar 2021 23:37:05 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-9791-dbb7-3a3a0d00a8cd"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-abf3-dbb7-3a3a0d00fe9f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:29 GMT + - Mon, 01 Mar 2021 23:37:05 GMT ms-cv: - - WJ3X6knzjU+Y2xlS69m/9A.0 + - iUDBGaPYWk2nMlQrUuOa6A.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 22ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:03:32 GMT + - Mon, 01 Mar 2021 23:37:05 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:03:29.4810108+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:04.9275414+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:29 GMT + - Mon, 01 Mar 2021 23:37:05 GMT ms-cv: - - ClbOzIeBc0KxnhU++HeZ1w.0 + - oyCbT20vWECg9E9Wadk7LQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 92ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 19ae4f6a-eccb-4e9b-9649-cccee9930559 + - 89e458a7-c505-467e-9463-d7397ca3f538 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:VhpzAHDL6INXGdGjQ9bnBOIxHy4YZ6kxgfJDpNV2xJQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:03:30Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1a-96c3-dbb7-3a3a0d00a8cc"}}}}' + body: '{"chatThread": {"id": "19:g0zKu49XaeWtx0TVnp6FDGragFUUYZdguvAR6mtYFqU1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:37:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:31 GMT + - Mon, 01 Mar 2021 23:37:06 GMT ms-cv: - - 0VKGzICzu0+1KZhxb4ttbA.0 + - ficKTp3r3UWHaaQH6CwRrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 843ms + - 821ms status: code: 201 message: Created @@ -234,19 +234,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:03:31 GMT + - Mon, 01 Mar 2021 23:37:07 GMT ms-cv: - - KUJp/w/K20ucmiqi9tQvEA.0 + - X979MlT0z02B4KUemNeAPw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 411ms + - 435ms status: code: 201 message: Created @@ -262,7 +262,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:03:34 GMT + - Mon, 01 Mar 2021 23:37:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -276,15 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:03:48 GMT + - Mon, 01 Mar 2021 23:37:23 GMT ms-cv: - - 3uE4YtbJHUGKV1HGH3GKsg.0 + - HtjZgKlc1UanF7Ui1byjbQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16951ms + - 16557ms status: code: 204 message: No Content @@ -300,7 +300,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:03:51 GMT + - Mon, 01 Mar 2021 23:37:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -314,15 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:04:05 GMT + - Mon, 01 Mar 2021 23:37:40 GMT ms-cv: - - VJIIQjrGZ06aZbSC6YjDew.0 + - fH7QEG7m70+n2MDBv4SxlQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16544ms + - 16455ms status: code: 204 message: No Content @@ -346,15 +346,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:04:06 GMT + - Mon, 01 Mar 2021 23:37:40 GMT ms-cv: - - A9sILcw1fU2n8S+I8lvuEg.0 + - kCFjckXRBUaHomhB0bhOnQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 629ms + - 345ms 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 1e2c981bca44..ef95e246386e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:08 GMT + - Mon, 01 Mar 2021 23:37:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:06 GMT + - Mon, 01 Mar 2021 23:37:40 GMT ms-cv: - - C56QUWXJRUSvsWZBhqqoww.0 + - i3CVlr/9G0qJTKSZps5igw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 14ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:09 GMT + - Mon, 01 Mar 2021 23:37:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:06.0435011+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:40.8281983+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:06 GMT + - Mon, 01 Mar 2021 23:37:40 GMT ms-cv: - - gv50/C7bIUyxfIFcqOAOlQ.0 + - EVPMoFQYiUStLfnO9BsCsA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 92ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:09 GMT + - Mon, 01 Mar 2021 23:37:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-273f-dbb7-3a3a0d00a8d6"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-38fd-dbb7-3a3a0d00fea2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:06 GMT + - Mon, 01 Mar 2021 23:37:41 GMT ms-cv: - - nkmCP6jD3kiTjJuhMlgS+A.0 + - Q7pvVRLpfkGVzol9L1MsvA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:09 GMT + - Mon, 01 Mar 2021 23:37:41 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:06.2483927+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:41.0377672+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:06 GMT + - Mon, 01 Mar 2021 23:37:41 GMT ms-cv: - - ZwILHKYPzEGgTs5V1slC/g.0 + - FE9CGyRix0WIiYZ8yqKi6Q.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 88ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 0a53a40f-f59d-4cb6-b767-21f47661e822 + - 77cb732e-1549-45ab-8904-965a7368d4c7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Cnvb9l6kZc7IES8wikp8LZ-_YzEcnH2qIDOAfYuDKdg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:04:08Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-266e-dbb7-3a3a0d00a8d5"}}}}' + body: '{"chatThread": {"id": "19:5lDYmahmJ-kcqYXJQjlLnks4t1VyQ2bdkJwZlnf2s881@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:37:42Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:08 GMT + - Mon, 01 Mar 2021 23:37:42 GMT ms-cv: - - CyWPRioGwUq6W4omPvLcGA.0 + - 1ygQQbtsUkmkzuBI11GaNw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1285ms + - 822ms status: code: 201 message: Created @@ -234,19 +234,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:08 GMT + - Mon, 01 Mar 2021 23:37:43 GMT ms-cv: - - VbsImRzIL0CSAduCzLW6nA.0 + - hS8KziZTjEynG2AkZ3rsdg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 443ms + - 388ms status: code: 201 message: Created @@ -262,7 +262,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:04:11 GMT + - Mon, 01 Mar 2021 23:37:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -276,15 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:04:25 GMT + - Mon, 01 Mar 2021 23:38:00 GMT ms-cv: - - b11Lz65X5UuNE9W1274UoQ.0 + - iXjTsx7fQkOJw54k/tRtOQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16212ms + - 16348ms status: code: 204 message: No Content @@ -300,7 +300,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:04:27 GMT + - Mon, 01 Mar 2021 23:37:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -314,15 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:04:41 GMT + - Mon, 01 Mar 2021 23:38:16 GMT ms-cv: - - pRZNWRra2EKhWLsjihVHpg.0 + - TCsoffG12EeelApm0k07mA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16268ms + - 16472ms status: code: 204 message: No Content @@ -346,15 +346,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:04:42 GMT + - Mon, 01 Mar 2021 23:38:16 GMT ms-cv: - - zc0YVCJFcEawh3TtQwQvrA.0 + - ZnB4Gj/nf0O0eFAQc8bYhg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 305ms + - 341ms 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 a67455b4106a..7c5329ecbbf8 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:44 GMT + - Mon, 01 Mar 2021 23:38:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:41 GMT + - Mon, 01 Mar 2021 23:38:17 GMT ms-cv: - - gY1p5UPRYkKOQ/NMtQ2jfA.0 + - cnmakXO+MUCewBJyugutDQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:44 GMT + - Mon, 01 Mar 2021 23:38:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:41.7963031+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:16.6474118+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:42 GMT + - Mon, 01 Mar 2021 23:38:17 GMT ms-cv: - - ydvvAoKwJUW+dhK4IfuVAA.0 + - yZ802S/Go0+HnsKE/8OSlA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 90ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:44 GMT + - Mon, 01 Mar 2021 23:38:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b2f7-1655-373a0d00a949"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c508-dbb7-3a3a0d00fea7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:42 GMT + - Mon, 01 Mar 2021 23:38:17 GMT ms-cv: - - 7lGC123k8kCNKMZvJheCGA.0 + - 1OWhJZ8yOE+nsQBOTZLHmA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:04:45 GMT + - Mon, 01 Mar 2021 23:38:17 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:04:42.0070857+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:16.8769217+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:42 GMT + - Mon, 01 Mar 2021 23:38:17 GMT ms-cv: - - xAm9yh6nv0ufaGwTNYjurA.0 + - 71U+LISZ8kK4J8TPEn9Hcg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 90ms status: code: 200 message: OK @@ -181,35 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '256' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - bb486652-e79c-406d-80d1-b449d50411f2 + - f60179a9-248a-4c74-9749-a5a3acee56ba method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:i48tGU1xRGk4jW4Dc4Cz74VjQkp38EzhIojsbNey_P01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:04:43Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1b-b21d-1655-373a0d00a948"}}}}' + body: '{"chatThread": {"id": "19:YujF15fkVJuRtggRYt4KameG6OwonokA3m88i2TvqTs1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:38:18Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:43 GMT + - Mon, 01 Mar 2021 23:38:18 GMT ms-cv: - - JTruUUu0hU2+fSYcwx4eEg.0 + - Sa5kIZSNv0ebXZu+pvD9Xg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 880ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:04:44 GMT + - Mon, 01 Mar 2021 23:38:18 GMT ms-cv: - - qv8F9Nk/Q0G1sxmqHbtBRg.0 + - RfwxKd2KD0S2QHpJShA1pg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 663ms + - 382ms status: code: 201 message: Created @@ -271,15 +271,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:04:45 GMT + - Mon, 01 Mar 2021 23:38:19 GMT ms-cv: - - 4ETl4yZti0W8K8NPcvE3qQ.0 + - GeUDIIzOS0a3rywCcO/drg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 391ms + - 416ms status: code: 204 message: No Content @@ -295,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:04:47 GMT + - Mon, 01 Mar 2021 23:38:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:05:01 GMT + - Mon, 01 Mar 2021 23:38:36 GMT ms-cv: - - exa+9nQUJE6/7t7o+XCaKg.0 + - FokxClbFeUCprObrIAPhjw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15871ms + - 17157ms status: code: 204 message: No Content @@ -333,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:05:03 GMT + - Mon, 01 Mar 2021 23:38:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:05:16 GMT + - Mon, 01 Mar 2021 23:38:53 GMT ms-cv: - - PitDGcQuHU6miK+jJGAbsQ.0 + - 4Ylb28Tk0kiVY5TmRMC6Nw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16047ms + - 16629ms status: code: 204 message: No Content @@ -379,15 +379,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:05:16 GMT + - Mon, 01 Mar 2021 23:38:54 GMT ms-cv: - - dZchSrcysES/tCrCfzW9OQ.0 + - xpI1n12by06p3u2XJmSIAQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 298ms + - 788ms 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 4b8c4b48c996..218e89406c51 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:17 GMT + - Mon, 01 Mar 2021 23:38:54 GMT ms-cv: - - CMjpfrs5bUWt1La66YOR9w.0 + - oWoBnyHqn0W6jGwHgnsFpw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 78ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:17.4702584+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:54.2911193+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:17 GMT + - Mon, 01 Mar 2021 23:38:54 GMT ms-cv: - - R3bJ9kb3iEaE3WTfT7eIwg.0 + - o3vGjiBfXkeQPq2TEjYSIQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3e3e-b0b7-3a3a0d00a83b"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-57f1-dbb7-3a3a0d00feae"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:17 GMT + - Mon, 01 Mar 2021 23:38:54 GMT ms-cv: - - zKTcjCcwNk2TYiBzGrr5QA.0 + - bNnsgiy0u0yaxtVgPrz0Iw.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:17.6633169+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:54.6769934+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:17 GMT + - Mon, 01 Mar 2021 23:38:54 GMT ms-cv: - - 1KAmfLUCB0afUayV2jPo3Q.0 + - WzN8vxhHbECFo868nq3pWQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 284ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 3c5eb4d0-e822-4784-b1ac-269197100747 + - 07761d5d-2492-43cf-8277-26ce2b8a54ab method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:nWPMinL9lfaDs4Tmk3JOaEUSYqYE8yFeRpxYmu7SQwo1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:05:18Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}}}' + body: '{"chatThread": {"id": "19:Mv4la1Z6NSSWD00FTwTot_k7TqWyif0eRyCxBgFqeb01@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:38:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:18 GMT + - Mon, 01 Mar 2021 23:38:56 GMT ms-cv: - - 3+8Iu5De/kSlFwcx7m3Y0g.0 + - AD04oxtaUkKFL95f5yKuEQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 837ms + - 1171ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:57 GMT ms-cv: - - ZeZf8+zJG0aSDfBIDv/+7w.0 + - 1U2jtpMBuU+1UZ/vKBoHQg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 818ms + - 656ms status: code: 201 message: Created @@ -265,25 +265,25 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614341120441", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614641937705", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-26T12:05:20Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-3d75-b0b7-3a3a0d00a83a"}}}' + "2021-03-01T23:38:57Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:20 GMT + - Mon, 01 Mar 2021 23:38:57 GMT ms-cv: - - ktWYgj5X1kukk49JiqWZ7A.0 + - 3GaJ2qPTT0KKoEC4IV2K1w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 254ms + - 250ms status: code: 200 message: OK @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:05:23 GMT + - Mon, 01 Mar 2021 23:38:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:05:36 GMT + - Mon, 01 Mar 2021 23:39:14 GMT ms-cv: - - akXPP9bydkOmLoIxI1C+YQ.0 + - c6OdctE0Y0GMuOKphp8nZA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16118ms + - 16283ms status: code: 204 message: No Content @@ -337,7 +337,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:05:39 GMT + - Mon, 01 Mar 2021 23:39:14 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:05:53 GMT + - Mon, 01 Mar 2021 23:39:30 GMT ms-cv: - - d2hTcnaSA0ybaMcG204IeA.0 + - yGkV2NOJIku0pOmCn2bajA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17017ms + - 16304ms status: code: 204 message: No Content @@ -383,15 +383,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:05:54 GMT + - Mon, 01 Mar 2021 23:39:30 GMT ms-cv: - - EdpS7u6ocEaKaJg7TGtUGQ.0 + - ErvLFTeJbkuwezIvnGzHEA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 545ms + - 333ms 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 1fb9272e7d86..0055b08c15b1 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:56 GMT + - Mon, 01 Mar 2021 23:39:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:55 GMT + - Mon, 01 Mar 2021 23:39:30 GMT ms-cv: - - DHOsG3Y4BkShPl4Qfo933Q.0 + - cTr9K59za0KQfMbbjrfsug.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 82ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:57 GMT + - Mon, 01 Mar 2021 23:39:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:54.3349006+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:39:30.7646426+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:55 GMT + - Mon, 01 Mar 2021 23:39:30 GMT ms-cv: - - bwI57QZvtEOtWSKXpLgYtw.0 + - 3cqjRTV1nkWzDOOZLwDavQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:57 GMT + - Mon, 01 Mar 2021 23:39:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-ce49-b0b7-3a3a0d00a849"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e66c-9c58-373a0d00fa53"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:55 GMT + - Mon, 01 Mar 2021 23:39:30 GMT ms-cv: - - 5fFKlCR6YEy1KCqABv/Ozg.0 + - yvPMpfyfFkSXiRF93Dnbdw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:05:57 GMT + - Mon, 01 Mar 2021 23:39:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:05:54.5328801+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:39:30.9775643+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:55 GMT + - Mon, 01 Mar 2021 23:39:31 GMT ms-cv: - - zBYKRlXvpk6CyTO2um9VYA.0 + - EK2T6/ZBP0OZLCDhvLIceg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 91ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 9a1f8010-2300-4122-b8a5-452229e3a064 + - f9acc625-655d-4921-93ce-49bdc8195034 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:32_qK_v1IxMROj4mF2gAkKeRbp2xoUf02DcMxKB-un81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:05:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1c-cd6f-b0b7-3a3a0d00a848"}}}}' + body: '{"chatThread": {"id": "19:E2tBzEeWrsmVOAHa3QKvqwj7nsFkK-I4vXacT2CBjIU1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:39:32Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:56 GMT + - Mon, 01 Mar 2021 23:39:32 GMT ms-cv: - - zw7vQ1kYfESoPPZrirJKJw.0 + - Aw0V800krkixMY5qeb5R/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1210ms + - 893ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:56 GMT + - Mon, 01 Mar 2021 23:39:32 GMT ms-cv: - - SlPnpaETPEiWfbOGsIf4Fw.0 + - Xh3HiaGu9k6QpbsUFaI10g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 384ms + - 386ms status: code: 201 message: Created @@ -268,19 +268,19 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:57 GMT + - Mon, 01 Mar 2021 23:39:33 GMT ms-cv: - - exIfbFNxWUyoVd8pDSUVYw.0 + - 32f+Qc71b06SDyrLK4LJyQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 258ms status: code: 200 message: OK @@ -301,13 +301,13 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:57 GMT + - Mon, 01 Mar 2021 23:39:33 GMT ms-cv: - - jxkkoUxTTkWe97U4ELN4/Q.0 + - jjpqdiZLP0mN+raEvl7WUw.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -334,19 +334,19 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:58 GMT + - Mon, 01 Mar 2021 23:39:34 GMT ms-cv: - - HLuZOSKeIkiuTVsfBO6Ldg.0 + - E8I+7AMWeU+dcjbt7XM2eg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 354ms + - 349ms status: code: 200 message: OK @@ -367,19 +367,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:05:58 GMT + - Mon, 01 Mar 2021 23:39:34 GMT ms-cv: - - 1WalV7YS4k2r4oaDyIAIWQ.0 + - ox8RSrXHX0K+Cy2DaYqxdw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 354ms + - 349ms status: code: 200 message: OK @@ -395,7 +395,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:06:01 GMT + - Mon, 01 Mar 2021 23:39:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -409,15 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:06:15 GMT + - Mon, 01 Mar 2021 23:39:51 GMT ms-cv: - - n0PKkQkNN0mhOQ407ioLlQ.0 + - D7iOW0sPAkuxavl6oJKNWw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16610ms + - 16863ms status: code: 204 message: No Content @@ -433,7 +433,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:06:17 GMT + - Mon, 01 Mar 2021 23:39:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -447,15 +447,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:06:31 GMT + - Mon, 01 Mar 2021 23:40:08 GMT ms-cv: - - Vei4Cp8KRESkU1qakvWy2g.0 + - 0v5KoFVk90KOgoJnk/xgRg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16145ms + - 17051ms status: code: 204 message: No Content @@ -479,15 +479,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:06:31 GMT + - Mon, 01 Mar 2021 23:40:09 GMT ms-cv: - - eHx6WKVe+EG5UyV9EBPBtg.0 + - EFF4AUQds0K1zGt+ht+Stw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 329ms 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 20e953756fc8..dfe56ea9d9bb 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:31 GMT + - Mon, 01 Mar 2021 23:40:09 GMT ms-cv: - - bijiu5whJEmdiBkzsw3guw.0 + - WolNF2sJMkWR0gpETIbgCQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 35ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:06:31.6848364+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:09.1426016+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:31 GMT + - Mon, 01 Mar 2021 23:40:09 GMT ms-cv: - - SXP7B5myfEOG/r/1q2YAOQ.0 + - uXM+XgvwJUaP5e4QhxstRw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 104ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:09 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-6037-b0b7-3a3a0d00a84b"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7c5b-b0b7-3a3a0d00fdf8"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:31 GMT + - Mon, 01 Mar 2021 23:40:09 GMT ms-cv: - - nJhm5PxCBESiS9/04eGtQA.0 + - pxVty6Wn7EuXo/CLMcIg+g.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 18ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:06:31.8927515+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:09.3493873+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:32 GMT + - Mon, 01 Mar 2021 23:40:09 GMT ms-cv: - - XONm7XdQKU+qSJ+MYkR8IQ.0 + - zUa8aSJpyk6sgg1Xu22rOg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 97ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 389547ac-d81f-4ad8-b0ac-e72477163093 + - 33062ce9-5106-4f66-b327-3d5378d29e30 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:7NquNsqCXQP2pBh_rcmZwx2y9Ct80a3d3nYI7GBJGkY1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:06:33Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1d-5f53-b0b7-3a3a0d00a84a"}}}}' + body: '{"chatThread": {"id": "19:k4dY9Rl5kEaWrlP2CmVJQp2oenWpreXU0H4S_opUqcQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:40:10Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:33 GMT + - Mon, 01 Mar 2021 23:40:10 GMT ms-cv: - - Jsv6TWwi8UW1vglYJ0Qixw.0 + - 3ZsBOsuXnU68tvVkWaOGXQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 879ms + - 882ms status: code: 201 message: Created @@ -234,19 +234,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:11 GMT ms-cv: - - 6T79vTDpW06DI9UsBRbfew.0 + - pBksuiJwekaFD+IwUyFV+A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 864ms + - 405ms status: code: 201 message: Created @@ -267,19 +267,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:06:34 GMT + - Mon, 01 Mar 2021 23:40:11 GMT ms-cv: - - RR4q4Smg20utxQmtyoXGUg.0 + - agBbhnwywUidYjKEnNyKDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 263ms + - 256ms status: code: 200 message: OK @@ -295,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:06:37 GMT + - Mon, 01 Mar 2021 23:40:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:06:51 GMT + - Mon, 01 Mar 2021 23:40:29 GMT ms-cv: - - eS6uCcJdLUC03ZDo5qqrpQ.0 + - xMyX+YZ8ZUOse+kiK6XbmA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16373ms + - 16834ms status: code: 204 message: No Content @@ -333,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:06:53 GMT + - Mon, 01 Mar 2021 23:40:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:07:07 GMT + - Mon, 01 Mar 2021 23:40:45 GMT ms-cv: - - DPJ2yCDvZUSaEX4r0YndAw.0 + - HAeDMcAwcUCieVHGZqVY9Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16408ms + - 16720ms status: code: 204 message: No Content @@ -379,15 +379,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:07:08 GMT + - Mon, 01 Mar 2021 23:40:46 GMT ms-cv: - - R67HJQgeeUSlyqJoTuBx6Q.0 + - y87I4ohHwE6il0AmXh9Gag.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 291ms + - 396ms 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 25ebd70ae3d3..959af76a6bad 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:15:26 GMT + - Mon, 01 Mar 2021 23:40:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:24 GMT + - Mon, 01 Mar 2021 23:40:46 GMT ms-cv: - - 9uG+zPYuMEezPN+0P7p6fQ.0 + - grhoCd/Kg0uxfe/bFxoRmg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:15:26 GMT + - Mon, 01 Mar 2021 23:40:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:15:23.5462641+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:45.9201893+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:24 GMT + - Mon, 01 Mar 2021 23:40:46 GMT ms-cv: - - Out5blNxykCQKasxRH5h0A.0 + - IqCieV/1L0CoczmL2ZxuVg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 322ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:15:26 GMT + - Mon, 01 Mar 2021 23:40:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7de4-b0b7-3a3a0d00a87a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0bfb-1db7-3a3a0d0005c5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:24 GMT + - Mon, 01 Mar 2021 23:40:46 GMT ms-cv: - - LpJ+sC0t+0qDYYw/XJqNhA.0 + - XPjgscGygkqbMA/NzvPRPQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 63ms + - 10ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:15:26 GMT + - Mon, 01 Mar 2021 23:40:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:15:23.8344937+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:46.110204+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:24 GMT + - Mon, 01 Mar 2021 23:40:46 GMT ms-cv: - - nmN/JDK4tUOwRiqbPvsrGQ.0 + - uN1mNQcEDUG4dhPOA8+TDQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 92ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 9df07078-f0c0-4126-b70b-33f4524414c8 + - 19deb45c-7efc-40fa-89b1-a423bbd9ebff method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:XkmURDPtXWNsAgNxz7FXQkFKrXpezhYUOnhZsRiZ0MY1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:15:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e25-7bfd-b0b7-3a3a0d00a879"}}}}' + body: '{"chatThread": {"id": "19:DlVadwcymFJhPI5iD-c9qJ9WsmcTYAY7pJzyDXivBKk1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:40:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:25 GMT + - Mon, 01 Mar 2021 23:40:48 GMT ms-cv: - - aFTj8dR+Gk2Hf0w5F1OSXw.0 + - WtRF4OLcbk+g7HkJ4wAKWg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1281ms + - 1450ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:26 GMT + - Mon, 01 Mar 2021 23:40:48 GMT ms-cv: - - Qmf+vjYxJUCvneTJWRJH5w.0 + - 95Vax+OUP0uAfhOTe7nytQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 681ms + - 386ms status: code: 201 message: Created @@ -273,17 +273,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: - '0' date: - - Fri, 26 Feb 2021 12:15:27 GMT + - Mon, 01 Mar 2021 23:40:49 GMT ms-cv: - - p+b2vtFMWUu8SG4Yhq2G9A.0 + - fddTXIAlCEG2bZZMDqk8+g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 651ms + - 1078ms status: code: 200 message: OK @@ -304,19 +304,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:28 GMT + - Mon, 01 Mar 2021 23:40:50 GMT ms-cv: - - 23SLfO3hHEi6GeMmr0VpaQ.0 + - Thze5ZrJn0SgCIr2ANWBww.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 546ms + - 712ms status: code: 200 message: OK @@ -342,19 +342,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:28 GMT + - Mon, 01 Mar 2021 23:40:51 GMT ms-cv: - - wX5Mp6Ljc0WQxvLFdoLY6A.0 + - KyPOXrmmpESJu+77Ouc0vA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 361ms + - 368ms status: code: 201 message: Created @@ -380,17 +380,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: - '0' date: - - Fri, 26 Feb 2021 12:15:29 GMT + - Mon, 01 Mar 2021 23:40:51 GMT ms-cv: - - wSctsbzK2EibYJVMfdu4wg.0 + - 3Y7QN5pk/0+MJUvyYmegag.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 898ms + - 752ms status: code: 200 message: OK @@ -411,19 +411,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:30 GMT + - Mon, 01 Mar 2021 23:40:52 GMT ms-cv: - - j2dTDlgy6Eu5Ba6EPS3gyg.0 + - 7AXtM5NOVEC1hfFJjiPNFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 698ms + - 252ms status: code: 200 message: OK @@ -449,19 +449,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:30 GMT + - Mon, 01 Mar 2021 23:40:53 GMT ms-cv: - - XW6Kqdjaq0qI56xVU249nw.0 + - vyzPBjDEFkm0k5ZIF0kfSg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 375ms + - 368ms status: code: 201 message: Created @@ -487,17 +487,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: - '0' date: - - Fri, 26 Feb 2021 12:15:31 GMT + - Mon, 01 Mar 2021 23:40:53 GMT ms-cv: - - KucuMkDKj0Wb4ZJTem4yfQ.0 + - SCqvZeDDZUKjY/wXuc7dQw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 1063ms + - 599ms status: code: 200 message: OK @@ -518,19 +518,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:32 GMT + - Mon, 01 Mar 2021 23:40:54 GMT ms-cv: - - 0C9Nhf/JjEeF+dr5Shz+Iw.0 + - NDyBxoWqxEyqiVQcER2Klg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 253ms + - 277ms status: code: 200 message: OK @@ -551,19 +551,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:15:32 GMT + - Mon, 01 Mar 2021 23:40:54 GMT ms-cv: - - ON1w6/Qw5k+85vB0D3pLQQ.0 + - jIgKb0IEZ0islUt+zw+Q+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 249ms status: code: 200 message: OK @@ -579,7 +579,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:15:35 GMT + - Mon, 01 Mar 2021 23:40:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -593,15 +593,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:15:48 GMT + - Mon, 01 Mar 2021 23:41:11 GMT ms-cv: - - yksC663Zo0iRofVqB9sPQA.0 + - JGgfGTlz0kiO5rVYClqslw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16277ms + - 16733ms status: code: 204 message: No Content @@ -617,7 +617,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:15:51 GMT + - Mon, 01 Mar 2021 23:41:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -631,15 +631,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:16:05 GMT + - Mon, 01 Mar 2021 23:41:27 GMT ms-cv: - - H3lningfgkGWDgdypQdm9g.0 + - 3+dAUBSphUi/ggI0bb6wwQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16189ms + - 16673ms status: code: 204 message: No Content @@ -663,15 +663,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:16:05 GMT + - Mon, 01 Mar 2021 23:41:28 GMT ms-cv: - - H5DNegNwU028ZCE8vqnfiw.0 + - w/AKvfDCY0e3RWGODMvjFQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 293ms 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 fb9b9c0cf64e..b262ab6df0f4 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:49 GMT + - Mon, 01 Mar 2021 23:41:29 GMT ms-cv: - - miBo6YpwJkmX/uy+GEI3ZA.0 + - GOWVmkmFP0mjue2kW8hTRQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:07:49.7985456+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:41:28.6699723+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:49 GMT + - Mon, 01 Mar 2021 23:41:29 GMT ms-cv: - - xf//gNa65066zVxf1t4Q4w.0 + - FvABCZjgdkKAhBIZFLe2gg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 112ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-9145-1655-373a0d00a95b"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b314-b0b7-3a3a0d00fdfe"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:49 GMT + - Mon, 01 Mar 2021 23:41:29 GMT ms-cv: - - mugV3SoFlEC5cAjUMwpnmw.0 + - t5aRpeRZQ0m6HhohZJ2tCw.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:07:53 GMT + - Mon, 01 Mar 2021 23:41:29 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:07:50.002603+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:41:28.8913447+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:50 GMT + - Mon, 01 Mar 2021 23:41:29 GMT ms-cv: - - 9+ntCrQqLUqhxCjMqIjQAQ.0 + - CnAqxlInwUWoOdL9+NoWPw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 97ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 694ddce7-76fa-466a-b28f-42799f63ac9f + - ba9bbb8d-97a1-4b4a-842f-83c779d2a671 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:SYJHqmG2KfPmdtP0n58xzVohp4eeB8fwfEShQlzqk9o1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:07:51Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-907f-1655-373a0d00a95a"}}}}' + body: '{"chatThread": {"id": "19:mhmbttQOEIiMyq0hD60dHmJQa7M4D4dDQVgcCgYa_vA1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:41:30Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:30 GMT ms-cv: - - eSWvEp/2qE2/37an4YfVEg.0 + - rdYilk4o9ka+9ejcnUFarA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 834ms + - 839ms status: code: 201 message: Created @@ -234,24 +234,24 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:31 GMT ms-cv: - - C8X6KYPMp0O0VjnCeFNb3g.0 + - L4Vh50x3MkODVVUvApqf0A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 412ms + - 690ms status: code: 201 message: Created - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1e-9145-1655-373a0d00a95b"}}' + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b314-b0b7-3a3a0d00fdfe"}}' headers: Accept: - application/json @@ -272,15 +272,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:07:52 GMT + - Mon, 01 Mar 2021 23:41:31 GMT ms-cv: - - MGZUEWRHyEuFeRbOERePUQ.0 + - XwhZwhogF0yJaNHL6it/oQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 448ms + - 455ms status: code: 204 message: No Content @@ -296,7 +296,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:07:55 GMT + - Mon, 01 Mar 2021 23:41:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -310,15 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:08:08 GMT + - Mon, 01 Mar 2021 23:41:48 GMT ms-cv: - - WL498qqcQUGhJvxelvyD2g.0 + - GBMwKgmCZ0u+3gjcJlC5uQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15927ms + - 16892ms status: code: 204 message: No Content @@ -334,7 +334,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:08:11 GMT + - Mon, 01 Mar 2021 23:41:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -348,15 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:08:24 GMT + - Mon, 01 Mar 2021 23:42:05 GMT ms-cv: - - zi6SlFJwGUSoHLek7Ak0Mw.0 + - YoIaiobTgEWHYwjsf97CdA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16281ms + - 16924ms status: code: 204 message: No Content @@ -380,15 +380,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:08:25 GMT + - Mon, 01 Mar 2021 23:42:06 GMT ms-cv: - - VkEsS03b00+R7MrOUh62Xg.0 + - ldHUM4f7+UqQeW2gnoJOWQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 334ms 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 afa908981724..c4d8fcaef1cd 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:08:28 GMT + - Mon, 01 Mar 2021 23:42:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:25 GMT + - Mon, 01 Mar 2021 23:42:06 GMT ms-cv: - - GEiML12UQEe5rGGAKTsT8Q.0 + - o+we9yzWRECAOumpeYMfFg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:08:28 GMT + - Mon, 01 Mar 2021 23:42:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:08:25.3313799+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:06.0735811+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:25 GMT + - Mon, 01 Mar 2021 23:42:06 GMT ms-cv: - - QRvx2bGHRUipU51Xl8Jqzw.0 + - SiM5P6cRyE6CT2AMB394ZQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 87ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:08:28 GMT + - Mon, 01 Mar 2021 23:42:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1c16-9c58-373a0d00a428"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-451b-dbb7-3a3a0d00feb8"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:25 GMT + - Mon, 01 Mar 2021 23:42:06 GMT ms-cv: - - k5Uo/i74dk6eGqKdQpJJtg.0 + - vAzfuf18YEuTgJdjCudnJg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 15ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:08:28 GMT + - Mon, 01 Mar 2021 23:42:06 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:08:25.5183946+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:06.2793838+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:25 GMT + - Mon, 01 Mar 2021 23:42:06 GMT ms-cv: - - KFaGKkmUnU6lqKiXojNBGw.0 + - piP9wYNZ0kSst8IeS+SUnw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 86ms + - 87ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 50acff0f-98c3-4dc0-b621-a63124de2745 + - 3bcf9f50-5578-4b7f-bb6b-8a18b2a25555 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:LFFYufzyKzKyzNCzPaT9STlgQ9SGkKnaAayqHwrZiYo1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:08:26Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-1b3f-9c58-373a0d00a427"}}}}' + body: '{"chatThread": {"id": "19:CjkcPZIyD_-CMxlXczT00roXzd7YTAhm4b75Ef4L5Es1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:42:07Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:26 GMT + - Mon, 01 Mar 2021 23:42:07 GMT ms-cv: - - psebM6Us80CPt88sYwWl/Q.0 + - FxrVG9fKLkSPqRVSgjrbxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 825ms + - 902ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:08:27 GMT + - Mon, 01 Mar 2021 23:42:08 GMT ms-cv: - - SmgXW1/YC0+i0eQl8zbu4w.0 + - RP5KcGGF9UCuZd+4oIYhkA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 376ms + - 387ms status: code: 201 message: Created @@ -263,7 +263,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:08:30 GMT + - Mon, 01 Mar 2021 23:42:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -277,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:08:44 GMT + - Mon, 01 Mar 2021 23:42:24 GMT ms-cv: - - WYGFA74bYkSsSQzo2the4A.0 + - xu/3CgTE/0mvtlW/9hMa1Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16578ms + - 16770ms status: code: 204 message: No Content @@ -301,7 +301,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:08:46 GMT + - Mon, 01 Mar 2021 23:42:25 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -315,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:09:00 GMT + - Mon, 01 Mar 2021 23:42:41 GMT ms-cv: - - 2UKWGsWhPUi9PXfKb6agCQ.0 + - dSImIT3goEWYV1Tns4Jt4w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16608ms + - 16272ms status: code: 204 message: No Content @@ -347,15 +347,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:09:01 GMT + - Mon, 01 Mar 2021 23:42:42 GMT ms-cv: - - Q1Q6oimXMkGFdP7BQZ63Fw.0 + - QFbpuI18REKGJ3YvyMdMVg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 325ms 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 d3e095f9fef3..e83dc1240c30 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:03 GMT + - Mon, 01 Mar 2021 23:42:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:01 GMT + - Mon, 01 Mar 2021 23:42:42 GMT ms-cv: - - VJ6uIXxMX0Wexxuw/3PAIg.0 + - m/n2ej5fAE2OYBQbu/hm3Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:04 GMT + - Mon, 01 Mar 2021 23:42:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:01.0218331+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:41.9269488+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:01 GMT + - Mon, 01 Mar 2021 23:42:42 GMT ms-cv: - - fOK20XhFgk++K35Z8OxhYg.0 + - 2/5MphOs40m9O9epJhcBmA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 98ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:04 GMT + - Mon, 01 Mar 2021 23:42:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a78e-1db7-3a3a0d00abcc"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d12a-9c58-373a0d00fa68"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:01 GMT + - Mon, 01 Mar 2021 23:42:42 GMT ms-cv: - - 0sDBZU64EU+cu3lvON9thA.0 + - r5wsIFBgv0OreRzh/8K7bQ.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:04 GMT + - Mon, 01 Mar 2021 23:42:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:01.2453156+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:42.1231387+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:01 GMT + - Mon, 01 Mar 2021 23:42:42 GMT ms-cv: - - vf1+pNM3fE+5kTgVZGadwg.0 + - Qi6zhA3+pEW6ObYtj3p72Q.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 88ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 36de72c7-6354-46ee-a72a-70f194684048 + - 93500e09-6ea5-4cd3-9b20-7f9d81a621ad method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:xUYYbfIfDSr_CcNkXfHgM5Jxnm7i9O7CqTkR4e0cUKE1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:09:02Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e1f-a6ba-1db7-3a3a0d00abcb"}}}}' + body: '{"chatThread": {"id": "19:TdUWBFU4mvlGataTLuWOC599yTPug1CYYyN_VnLk0HE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:42:44Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:02 GMT + - Mon, 01 Mar 2021 23:42:45 GMT ms-cv: - - UFlbV3UrAkWO98WyQ/NAaw.0 + - JQvWyIRJGkCsFB92gibT4g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 839ms + - 897ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:03 GMT + - Mon, 01 Mar 2021 23:42:46 GMT ms-cv: - - DYZCJznIIESwZHl3XYI53w.0 + - cskFOzv5Ikuwhi2LAdJZCQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 390ms + - 386ms status: code: 201 message: Created @@ -273,17 +273,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: - '0' date: - - Fri, 26 Feb 2021 12:09:04 GMT + - Mon, 01 Mar 2021 23:42:46 GMT ms-cv: - - 1r7/DNXQb0yvBJR349+L1Q.0 + - MDNs58QFiE6lkDAT96/5NA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 584ms + - 620ms status: code: 200 message: OK @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:09:06 GMT + - Mon, 01 Mar 2021 23:42:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:09:20 GMT + - Mon, 01 Mar 2021 23:43:03 GMT ms-cv: - - yj0kBfGepU2YTfou+TdskQ.0 + - SfEERkDutk2727zYQFb8fQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16301ms + - 17021ms status: code: 204 message: No Content @@ -337,7 +337,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:09:23 GMT + - Mon, 01 Mar 2021 23:43:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:09:36 GMT + - Mon, 01 Mar 2021 23:43:19 GMT ms-cv: - - /HAChRF+0Ei8s9tBWnyX+w.0 + - WtHjXwpauEmeIejI99lrJQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16310ms + - 16148ms status: code: 204 message: No Content @@ -383,15 +383,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:09:36 GMT + - Mon, 01 Mar 2021 23:43:19 GMT ms-cv: - - kcl2m8KxRE+oBuWqqxKeFw.0 + - IE0VLuAVNkiPKuVqBZx3lg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 295ms + - 319ms 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 735db544c23c..a862b496150e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:39 GMT + - Mon, 01 Mar 2021 23:43:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:37 GMT + - Mon, 01 Mar 2021 23:43:20 GMT ms-cv: - - 6fjyz2KxQ0mEERzD3Ya8Sg.0 + - +8ZWqUyIckaLYJIxdORTTw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 18ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:40 GMT + - Mon, 01 Mar 2021 23:43:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:36.9608151+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:19.9932822+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:37 GMT + - Mon, 01 Mar 2021 23:43:20 GMT ms-cv: - - AFAMXvYv10+RfthoiHh8gg.0 + - lei8eIhdk02BDJIwh6FQQw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 90ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:40 GMT + - Mon, 01 Mar 2021 23:43:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-33ed-1db7-3a3a0d00abce"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-65e5-9c58-373a0d00fa6c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:37 GMT + - Mon, 01 Mar 2021 23:43:20 GMT ms-cv: - - jCJdVnb4MEmGekSVnZwIMA.0 + - bCG+fZm8vkKHs+p16zNAGQ.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:09:40 GMT + - Mon, 01 Mar 2021 23:43:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:09:37.1677636+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:20.2174719+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:37 GMT + - Mon, 01 Mar 2021 23:43:20 GMT ms-cv: - - Mcce895CSUWjFiX0aXI/Lg.0 + - Zf/0lMF1yUmOJk1WKN+qDQ.0 request-context: - appId= strict-transport-security: @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 9a0e49f6-066c-40fd-9a67-e11a84a90fbf + - b6d4befb-a5fe-466d-a823-140e57714113 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Fe96gg4xHhUwrAf-GgOk0Zpi9sn5DzuRZ5GQWixA_kI1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:09:38Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-331c-1db7-3a3a0d00abcd"}}}}' + body: '{"chatThread": {"id": "19:pmT_uawfXpDA9uyTVp-wMGfWQaGQ5ZOSjeK7OsEh-fA1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:43:21Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:09:38 GMT + - Mon, 01 Mar 2021 23:43:21 GMT ms-cv: - - KrDq+EY9C0uG3Om29Q3R6A.0 + - nR9CMxS470KCrogeoBK9LA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 845ms + - 887ms status: code: 201 message: Created @@ -233,17 +233,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: - '0' date: - - Fri, 26 Feb 2021 12:09:39 GMT + - Mon, 01 Mar 2021 23:43:22 GMT ms-cv: - - kf/hhPsvZ0GggXaaOjoGcg.0 + - erIFwU494UyW8EPk0lQ9aA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 649ms + - 370ms status: code: 200 message: OK @@ -259,7 +259,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:09:42 GMT + - Mon, 01 Mar 2021 23:43:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:09:56 GMT + - Mon, 01 Mar 2021 23:43:38 GMT ms-cv: - - gV+hZcjvREmhq+dkw6XMMA.0 + - wYrM4nEWwk6B5Hpy0c0jMg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17305ms + - 16347ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:09:59 GMT + - Mon, 01 Mar 2021 23:43:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:10:14 GMT + - Mon, 01 Mar 2021 23:43:55 GMT ms-cv: - - fDw0aDmpTkaiS2iNSnHTVg.0 + - od0nkIycT06u1nPmCLTGbg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16697ms + - 16632ms status: code: 204 message: No Content @@ -343,15 +343,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:10:14 GMT + - Mon, 01 Mar 2021 23:43:55 GMT ms-cv: - - Z9vUN2pPf0ufffge7RUR9g.0 + - CCwrwbkiwEy9t6VH23ZIPA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 295ms + - 319ms 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 12d842bbec5a..481393a64346 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:10:16 GMT + - Mon, 01 Mar 2021 23:43:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:14 GMT + - Mon, 01 Mar 2021 23:43:56 GMT ms-cv: - - DJmO3iP14U6gB1orMT451w.0 + - KNeQN4SiFEeCkn23Bp6xrw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:10:17 GMT + - Mon, 01 Mar 2021 23:43:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:10:14.3068121+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:56.0301261+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:14 GMT + - Mon, 01 Mar 2021 23:43:56 GMT ms-cv: - - WXkzkOk2oUqFwa9M4JBR7g.0 + - nA1TKOnWdEGdV5nmMuHmjQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 101ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:10:17 GMT + - Mon, 01 Mar 2021 23:43:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c5d5-1655-373a0d00a965"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f29f-b0b7-3a3a0d00fe06"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:14 GMT + - Mon, 01 Mar 2021 23:43:56 GMT ms-cv: - - oKkPlNfdwUatKEVikKTDHA.0 + - OTKrAmSA4kykhohJiwVeZw.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:10:17 GMT + - Mon, 01 Mar 2021 23:43:56 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:10:14.5316612+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:56.2286132+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:15 GMT + - Mon, 01 Mar 2021 23:43:56 GMT ms-cv: - - nmnGh9YGeUOabxv942+6Yg.0 + - azxUDAzK4U6D7fiHcTy6EQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 86ms + - 96ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - b5b366af-c598-4dd1-99c7-2b412b13f646 + - 734fd4fd-0ea7-47c5-abc6-83d6e4128e92 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:iRKyLMxBS2mZwCFx1tG0lLkQmWX17XCgcQqF9dzaCT81@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:10:15Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e20-c4f9-1655-373a0d00a964"}}}}' + body: '{"chatThread": {"id": "19:Ba0XSo1RLpr5LhcEwcjhD_cw31gy0KottJAAVcpTObE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:43:57Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:15 GMT + - Mon, 01 Mar 2021 23:43:57 GMT ms-cv: - - xIrpxlKw00aa0TqfZIjbAQ.0 + - PstsUqZl0ki5Xj5Xqpk5cg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 834ms + - 885ms status: code: 201 message: Created @@ -235,19 +235,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:10:16 GMT + - Mon, 01 Mar 2021 23:43:58 GMT ms-cv: - - o5PqitISZ0ClhU4wAe1szw.0 + - iWeOcEjoRkO+B6OWU5VVsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 373ms + - 381ms status: code: 201 message: Created @@ -273,15 +273,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:10:17 GMT + - Mon, 01 Mar 2021 23:43:59 GMT ms-cv: - - E47vCRYOrUiODDfx1VqqAw.0 + - rzmgfs1znU+8Hcr8kbxEqw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 659ms + - 677ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:10:20 GMT + - Mon, 01 Mar 2021 23:43:59 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:10:33 GMT + - Mon, 01 Mar 2021 23:44:15 GMT ms-cv: - - fhwbYrnwhEixN7BSuxVgbw.0 + - ko3NRFDJDE+hRFQitVEmlQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16366ms + - 16638ms status: code: 204 message: No Content @@ -335,7 +335,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:10:36 GMT + - Mon, 01 Mar 2021 23:44:16 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -349,15 +349,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:10:49 GMT + - Mon, 01 Mar 2021 23:44:32 GMT ms-cv: - - 06ta5oesU0q4I06++0/+Wg.0 + - vzGHZyEftEK4nWHdOj5Yuw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15944ms + - 16802ms status: code: 204 message: No Content @@ -381,15 +381,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:10:49 GMT + - Mon, 01 Mar 2021 23:44:33 GMT ms-cv: - - dhyuimj95kmjNuXcgxjlrg.0 + - jn71eGpcSkGqxxKVtXEzrw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 283ms + - 764ms 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 8ac6d589e821..622ac853cef0 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:13:49 GMT + - Mon, 01 Mar 2021 23:44:33 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:13:47 GMT + - Mon, 01 Mar 2021 23:44:33 GMT ms-cv: - - +viNcJzVI0u9NAD46+Xsqg.0 + - kyKMfcDELU6/kBKDSplo0Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 64ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:13:49 GMT + - Mon, 01 Mar 2021 23:44:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:13:46.3666026+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:44:33.4038746+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:13:47 GMT + - Mon, 01 Mar 2021 23:44:34 GMT ms-cv: - - l7a8a65830WboEU2Nf3+sg.0 + - zD5rDIFvUE+zlzkFw/5NQg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 101ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:13:49 GMT + - Mon, 01 Mar 2021 23:44:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0226-dbb7-3a3a0d00a911"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-849f-b0b7-3a3a0d00fe0a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:13:47 GMT + - Mon, 01 Mar 2021 23:44:34 GMT ms-cv: - - zxJ/0y0flkuRSIP0Twcmyg.0 + - 4TsGFCnKKECl5hhgu2ySsw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 12:13:49 GMT + - Mon, 01 Mar 2021 23:44:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T12:13:46.5666779+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:44:33.6051914+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:13:47 GMT + - Mon, 01 Mar 2021 23:44:34 GMT ms-cv: - - pSuKscdrKEOGHPgQHSGpcA.0 + - v22aOuA0Ak6fGUEtq8d30g.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 99ms status: code: 200 message: OK @@ -187,29 +187,29 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 33b978ff-6ac8-4e0c-b67f-1755d7e2a70d + - cbcb06a1-b572-42f1-8f7f-d19856ad1bde method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:ul3XeFrh_muzB1qsL9ndS5QFG6no4UWdCcNawOsKTrc1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T12:13:47Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7e24-0161-dbb7-3a3a0d00a910"}}}}' + body: '{"chatThread": {"id": "19:gQY_1yN2EgV7Pm9h_6j7TbCg4z-DF4NoYZGCi2r8mjw1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:44:34Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09"}}}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 12:13:48 GMT + - Mon, 01 Mar 2021 23:44:34 GMT ms-cv: - - pg4FhZr8HU6ns2xxefG7sg.0 + - aOVDyqojZUW7HJwu10ne3w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 821ms + - 886ms status: code: 201 message: Created @@ -235,15 +235,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:13:48 GMT + - Mon, 01 Mar 2021 23:44:35 GMT ms-cv: - - eGFUwdOZX0CjEscv4jY1cg.0 + - bXX0kM8mYUGMWWJ7CE8BuA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 396ms + - 429ms status: code: 204 message: No Content @@ -259,7 +259,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:13:51 GMT + - Mon, 01 Mar 2021 23:44:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:14:04 GMT + - Mon, 01 Mar 2021 23:44:51 GMT ms-cv: - - uHKEBqi3mU2NQXevoxnHqw.0 + - QH2hJ12H+0+aRb/hwQsRsg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16335ms + - 15993ms status: code: 204 message: No Content @@ -297,7 +297,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 12:14:07 GMT + - Mon, 01 Mar 2021 23:44:52 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 12:14:20 GMT + - Mon, 01 Mar 2021 23:45:09 GMT ms-cv: - - yEHYmjgtyEelyu5GH+kp7Q.0 + - eDuxz/hXw0G3L7P4BdOkQA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16004ms + - 16565ms status: code: 204 message: No Content @@ -343,15 +343,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Fri, 26 Feb 2021 12:14:21 GMT + - Mon, 01 Mar 2021 23:45:09 GMT ms-cv: - - 3xQesD4Gu06g1SG92v4xxA.0 + - dWSE9SOZQEC9uTdPyXekFQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 299ms + - 292ms 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 3332cbd5c83e..852f382e9531 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:14:33 GMT + - Mon, 01 Mar 2021 23:45:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:14:31 GMT + - Mon, 01 Mar 2021 23:45:24 GMT ms-cv: - - MoDNISaZfU6ogI7Oa7M7JQ.0 + - cf7jnSO9AUuf/atBhGHi6w.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:14:33 GMT + - Mon, 01 Mar 2021 23:45:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:14:31.3463361+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:45:24.0013541+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:14:31 GMT + - Mon, 01 Mar 2021 23:45:24 GMT ms-cv: - - vjMDmi7Fxkq8SIFUx0OuBw.0 + - SMSl4Tn6akec5gh7C9JpVQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 92ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:14:34 GMT + - Mon, 01 Mar 2021 23:45:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c35a-1655-373a0d00a845"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-4a4b-1655-373a0d00006a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:14:31 GMT + - Mon, 01 Mar 2021 23:45:25 GMT ms-cv: - - sCVURPy/rECSlcCNeWhnuA.0 + - +gFeapLED06g0uyqX+CGMw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 22ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:14:34 GMT + - Mon, 01 Mar 2021 23:45:24 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:14:31.5433108+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:45:24.2018736+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:14:32 GMT + - Mon, 01 Mar 2021 23:45:25 GMT ms-cv: - - 5hMNK9DptUep5IPvvAcLjw.0 + - yNDLHo+7706hD4WhTXHWYg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 89ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 08eba994-4bbc-4c3f-86dc-12485d7ab7ea + - 8ad20314-7443-494f-88ae-97e051c9f8ae method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:afaaIEadPsYHPmHS01A4KjxNMI2hq2LA3cHN3iZQBMs1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:14:32Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7ded-c282-1655-373a0d00a844"}}}}' + body: '{"chatThread": {"id": "19:IL9g-Fi0oBkYpaQ7odYqUdDRkiCecihVM3MC4DAxkLw1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:45:25Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:14:33 GMT - ms-cv: Z44aQMcJdkeeLyTxqkKxpA.0 + date: Mon, 01 Mar 2021 23:45:25 GMT + ms-cv: +KMMckzi+kGQbXpzUGpRSg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 821ms + x-processing-time: 827ms status: code: 201 message: Created @@ -219,13 +220,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:14:33 GMT - ms-cv: dr50kR1WtEm8tayJMh/mbQ.0 + date: Mon, 01 Mar 2021 23:45:26 GMT + ms-cv: D7fyg3OtakOh+qw78BQwQg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 870ms + x-processing-time: 927ms status: code: 201 message: Created @@ -243,11 +244,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:14:34 GMT - ms-cv: oXYSjiA+70aUzHbIzl0+ew.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:45:27 GMT + ms-cv: Sr8t56jEuk20xhYeBluufQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 304ms + x-processing-time: 298ms status: code: 204 message: No Content @@ -264,7 +266,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:14:36 GMT + - Mon, 01 Mar 2021 23:45:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -278,15 +280,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:14:50 GMT + - Mon, 01 Mar 2021 23:45:43 GMT ms-cv: - - QSYmd6rigkmKootty/hHgQ.0 + - HAQTYeGExES7OfJI3IFSWg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16193ms + - 16460ms status: code: 204 message: No Content @@ -302,7 +304,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:14:52 GMT + - Mon, 01 Mar 2021 23:45:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -316,15 +318,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:15:06 GMT + - Mon, 01 Mar 2021 23:46:00 GMT ms-cv: - - VKyu+rxehkG/vCuVhcJbCA.0 + - nU9tislMrEyrHckqZQbEMg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15969ms + - 16976ms 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 e851c6dd3580..8d6071a0026a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:08 GMT + - Mon, 01 Mar 2021 23:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:06 GMT + - Mon, 01 Mar 2021 23:46:01 GMT ms-cv: - - YVCaoyIkTEeviXrBuQwoEQ.0 + - i34KqPnOzEa5thfVvL5jyw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:09 GMT + - Mon, 01 Mar 2021 23:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:06.583477+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:00.6357953+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:06 GMT + - Mon, 01 Mar 2021 23:46:01 GMT ms-cv: - - dWqXiy/PTU2MxBiBXY9YJA.0 + - QM3v0KYCTECLKousDvUrNg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 89ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:09 GMT + - Mon, 01 Mar 2021 23:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4cfb-b0b7-3a3a0d00a749"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d963-dbb7-3a3a0d00fed1"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:06 GMT + - Mon, 01 Mar 2021 23:46:01 GMT ms-cv: - - ULI1BjurjkicFK+WD/9/sw.0 + - g6wapJY3dEuOeLXcRUfwoQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 16ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:09 GMT + - Mon, 01 Mar 2021 23:46:01 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:06.780931+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:00.8345957+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:06 GMT + - Mon, 01 Mar 2021 23:46:01 GMT ms-cv: - - r8Krw5O7FEG4pnfxdiXXMA.0 + - OabeMqdYXkKaQ5AnDSoj7w.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 91ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - b0dfbbd3-4b76-4342-93cb-7ff369397e2a + - 0d070e8c-b0b2-4ab1-807a-0b47a9400ae9 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:XduQtU_yvxcLUB1D6ZEUw9qurMppwvgKeCODzSUNkNw1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:15:08Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-4c34-b0b7-3a3a0d00a748"}}}}' + body: '{"chatThread": {"id": "19:DpcikdQ3hkGa8FPKa41f56HiE04uhuZEGaPcGVJFx1Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:46:02Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:15:08 GMT - ms-cv: X8nK+CfB40yVIuHgKFx0FQ.0 + date: Mon, 01 Mar 2021 23:46:02 GMT + ms-cv: 8hWRht+5EkSnQWWkAH5K/A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 828ms + x-processing-time: 873ms status: code: 201 message: Created @@ -219,13 +220,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:15:08 GMT - ms-cv: ZWVRBgXu3UKosHwwKlbzIQ.0 + date: Mon, 01 Mar 2021 23:46:03 GMT + ms-cv: 2G4BUv60DUqvQSF1apnTJA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 398ms + x-processing-time: 819ms status: code: 201 message: Created @@ -243,11 +244,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:15:09 GMT - ms-cv: aRtoZApdpkilEOOQFqc80w.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:46:03 GMT + ms-cv: jQwLQ/DAgEOFGuA1Uq02Qw.0 strict-transport-security: max-age=2592000 - x-processing-time: 302ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -264,7 +266,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:15:11 GMT + - Mon, 01 Mar 2021 23:46:04 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -278,15 +280,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:15:25 GMT + - Mon, 01 Mar 2021 23:46:19 GMT ms-cv: - - OzsIzfoD1UWnxKR8eGsCoQ.0 + - v8N67i9vOEC/9jws5Swh9A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16085ms + - 16442ms status: code: 204 message: No Content @@ -302,7 +304,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:15:27 GMT + - Mon, 01 Mar 2021 23:46:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -316,15 +318,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:15:40 GMT + - Mon, 01 Mar 2021 23:46:35 GMT ms-cv: - - fOV+WjG9606bbCtj4p7i6A.0 + - P694XHjNKUKSZ/BAK4cTPg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15923ms + - 16036ms 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 4d6f8d701f84..b603c6c8fdb2 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:43 GMT + - Mon, 01 Mar 2021 23:46:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:41 GMT + - Mon, 01 Mar 2021 23:46:36 GMT ms-cv: - - +deK0VNm/UKpNLQMd6mKPg.0 + - veZZsvVyqEmBJcjQqHVL3w.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 21ms + - 45ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:43 GMT + - Mon, 01 Mar 2021 23:46:36 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:41.2701178+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:36.2865251+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:41 GMT + - Mon, 01 Mar 2021 23:46:36 GMT ms-cv: - - yKqqDNZ5xEWIG/8EwNCAcg.0 + - uSqo3pSX7E6mEymf05vgmw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 93ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:44 GMT + - Mon, 01 Mar 2021 23:46:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d492-9c58-373a0d00a34f"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-64b0-1db7-3a3a0d0005e6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:41 GMT + - Mon, 01 Mar 2021 23:46:36 GMT ms-cv: - - 7CO7HiXq8EeUgi/5Yh1Gbw.0 + - ILIauNn1zkaVs4+BCxSZUg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:15:44 GMT + - Mon, 01 Mar 2021 23:46:37 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:15:41.4900529+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:36.5055253+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:15:41 GMT + - Mon, 01 Mar 2021 23:46:37 GMT ms-cv: - - jaRRBT2ArkGi5kvWH0oOYg.0 + - dLiJ37GpKUq+btSLOoZqRw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 90ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 5cce6db9-aee2-40d2-b881-210658458000 + - 6ecd09ff-7033-41c8-9355-1dc8d2bf0b28 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:ld6bPI3rIUkOc9gruLl7gq_7aZfr3gDc5yK5H2xeTEQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:15:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7dee-d3b2-9c58-373a0d00a34e"}}}}' + body: '{"chatThread": {"id": "19:zJTyR9uzSM4KG300cqp6LTjj4jjZc5w6866wcaSSZ2I1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:46:37Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:15:42 GMT - ms-cv: XT1/X6PRE0axKSOk8z2Bdw.0 + date: Mon, 01 Mar 2021 23:46:38 GMT + ms-cv: T2pToxL5f0Gv7N+g59sR6g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 840ms + x-processing-time: 897ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:15:43 GMT - ms-cv: 3Z68vmqJ4kyDUJd5hSzGoQ.0 + date: Mon, 01 Mar 2021 23:46:38 GMT + ms-cv: GssvZhIUVkyT9x3jA/IEvg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 384ms + x-processing-time: 402ms status: code: 201 message: Created @@ -244,11 +246,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:15:44 GMT - ms-cv: 0FRykxzrZk+xHoZ6Ve0XTA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:46:39 GMT + ms-cv: zzMGoGX18EuM+dVqzNUYcA.0 strict-transport-security: max-age=2592000 - x-processing-time: 437ms + x-processing-time: 417ms status: code: 204 message: No Content @@ -266,11 +269,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:15:44 GMT - ms-cv: ktKmpT3Z706AAjkDQyy92w.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:46:39 GMT + ms-cv: 9CqT6fV8jkSHPr7V47B0gQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 286ms + x-processing-time: 320ms status: code: 204 message: No Content @@ -287,7 +291,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:15:46 GMT + - Mon, 01 Mar 2021 23:46:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -301,15 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:16:01 GMT + - Mon, 01 Mar 2021 23:46:55 GMT ms-cv: - - TOtYrsPR90mFvaaGbBmpzQ.0 + - pWIGIyLG7EK0wsBM7Sv3wA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16536ms + - 16038ms status: code: 204 message: No Content @@ -325,7 +329,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:16:03 GMT + - Mon, 01 Mar 2021 23:46:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -339,15 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:16:17 GMT + - Mon, 01 Mar 2021 23:47:11 GMT ms-cv: - - +cZVWDKkCk2f2584dTm+Dw.0 + - HxQmHxmWbk+dFbVnUy0VZw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16652ms + - 16023ms 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 955235cc8d5c..83f78d1c8d51 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:19 GMT + - Mon, 01 Mar 2021 23:47:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:17 GMT + - Mon, 01 Mar 2021 23:47:12 GMT ms-cv: - - oD1Sr0VWlEyZ8AUyLPXXZA.0 + - 5ZtOtGeEg0iCquyHzkQgVQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:20 GMT + - Mon, 01 Mar 2021 23:47:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:17.5183007+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:11.5647541+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:17 GMT + - Mon, 01 Mar 2021 23:47:12 GMT ms-cv: - - DBqa/fevVE6Yd3vxcjg3Hw.0 + - 4BRepLGv+UyuMYm8Bm+1bQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 92ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:20 GMT + - Mon, 01 Mar 2021 23:47:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-621b-b0b7-3a3a0d00a757"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ee6b-1db7-3a3a0d0005e9"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:17 GMT + - Mon, 01 Mar 2021 23:47:12 GMT ms-cv: - - YCqXeRQS9USPkrj7rgvaQA.0 + - tiVmr3oQf0irZQod4MB3jg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 17ms + - 12ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:20 GMT + - Mon, 01 Mar 2021 23:47:12 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:17.731214+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:11.7734486+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:17 GMT + - Mon, 01 Mar 2021 23:47:12 GMT ms-cv: - - L9t7YONmPEeiv58bckDJ+A.0 + - ZQhXOXBPTEGKHh7qanMVIA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 101ms + - 93ms status: code: 200 message: OK @@ -177,28 +177,29 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - e455b0a0-652d-4258-9acd-e59ae220d85a + - 1124d9d9-2b48-41b8-b9f1-e874bc9786d3 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:-nvaAHM0xplEo7HdDLt_eTBC0UhGAN3k7ca36BP7OPg1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:16:19Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}}}' + body: '{"chatThread": {"id": "19:XRPl_HSC_BxL1gIMfUA4u2obpn75--1BXpv-ycIO0sc1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:47:13Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:19 GMT - ms-cv: 6Bd0gu5askmwG6KU0Ln5SA.0 + date: Mon, 01 Mar 2021 23:47:13 GMT + ms-cv: c/vhqBy8lkO3fd87XiVcYA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 963ms + x-processing-time: 895ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:19 GMT - ms-cv: 5ZqYN170mE21TMLoExTQ1g.0 + date: Mon, 01 Mar 2021 23:47:14 GMT + ms-cv: Bc/sQ+yCg0S7644v8s30IA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 383ms + x-processing-time: 386ms status: code: 201 message: Created @@ -241,18 +243,19 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614338180259", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614642434421", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-02-26T11:16:20Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-6151-b0b7-3a3a0d00a756"}}}' + "2021-03-01T23:47:14Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:19 GMT - ms-cv: a07sWHCON02XIrJskD83BQ.0 + date: Mon, 01 Mar 2021 23:47:14 GMT + ms-cv: iSUySknNFEOftXf2ZGhAOw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 260ms + x-processing-time: 254ms status: code: 200 message: OK @@ -270,11 +273,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:16:20 GMT - ms-cv: NELgM87MVEKJCZ9Ryi9atg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:47:15 GMT + ms-cv: XOMtEelNWUqcl+EWUncG9A.0 strict-transport-security: max-age=2592000 - x-processing-time: 290ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -291,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:16:22 GMT + - Mon, 01 Mar 2021 23:47:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -305,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:16:37 GMT + - Mon, 01 Mar 2021 23:47:32 GMT ms-cv: - - xxa7/9pOYkeuF1s3mhaelA.0 + - 9QrcVqtPdEaxf7zYces34A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17061ms + - 17099ms status: code: 204 message: No Content @@ -329,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:16:39 GMT + - Mon, 01 Mar 2021 23:47:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -343,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:16:54 GMT + - Mon, 01 Mar 2021 23:47:48 GMT ms-cv: - - dz5hyEx6ZkaEMWksK21CBw.0 + - 2NiBVP1W3EmGepIsShtR/Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16715ms + - 16467ms 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 079771ba068c..e667a80d0ee1 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:56 GMT + - Mon, 01 Mar 2021 23:47:48 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:55 GMT + - Mon, 01 Mar 2021 23:47:49 GMT ms-cv: - - oowAOAwgTkCA2AFKSENr8A.0 + - F0Vu+8b2v0e5qoukthEHIA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 16ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:57 GMT + - Mon, 01 Mar 2021 23:47:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:54.4245594+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:48.3924433+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:55 GMT + - Mon, 01 Mar 2021 23:47:49 GMT ms-cv: - - qSrYYxNGN0CFPVbsUtScjg.0 + - ij1Q40yGS0iUqHFIS1155w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 91ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:57 GMT + - Mon, 01 Mar 2021 23:47:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f23b-9c58-373a0d00a355"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7e50-dbb7-3a3a0d00fede"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:55 GMT + - Mon, 01 Mar 2021 23:47:49 GMT ms-cv: - - DI3sxH3mgkahxXg0YtMsZg.0 + - JVEVWMCMtEu66IB4orn2Uw.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:16:57 GMT + - Mon, 01 Mar 2021 23:47:49 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:16:54.6306048+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:48.5934229+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:16:55 GMT + - Mon, 01 Mar 2021 23:47:49 GMT ms-cv: - - aiLw/HD8mU+wHTYG4SHCuA.0 + - Y2XIQDVzvEmf7VdZT7hpjw.0 request-context: - appId= strict-transport-security: @@ -177,28 +177,29 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 409d1072-0834-41f2-810c-41d5f3cfdfa7 + - 14bd6e7a-b6eb-4e10-a0cc-d2573a68aceb method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:q-Bz3MBWk9YcI8PUaKZPmov_bLwWZxwYm81KMAaw7ZI1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:16:55Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7def-f17c-9c58-373a0d00a354"}}}}' + body: '{"chatThread": {"id": "19:w9yEd4WpzRccXmpybFLwaSzbCWvst71zHbHCOBEflzk1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:47:50Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:56 GMT - ms-cv: XCX2VBYAvEyxlLRqcnWbMg.0 + date: Mon, 01 Mar 2021 23:47:50 GMT + ms-cv: m0YFH6okYU+pnVxLb1kGuQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 831ms + x-processing-time: 925ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:57 GMT - ms-cv: DCmAheU0jESHq0/CltNsRA.0 + date: Mon, 01 Mar 2021 23:47:52 GMT + ms-cv: j2ZwmEyAeUeFea/9tOit3g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 389ms + x-processing-time: 1051ms status: code: 201 message: Created @@ -243,13 +245,14 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:57 GMT - ms-cv: cEGogHpdP0izdy0x9Seilg.0 + date: Mon, 01 Mar 2021 23:47:52 GMT + ms-cv: LTWxkGgX90aufqBeB/7dpQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 289ms + x-processing-time: 305ms status: code: 200 message: OK @@ -266,13 +269,14 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:57 GMT - ms-cv: WVLkuCxJQkykG4r+1fFRlg.0 + date: Mon, 01 Mar 2021 23:47:53 GMT + ms-cv: +VsCZA5nOUSxhdnmWoQdbA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 353ms + x-processing-time: 370ms status: code: 200 message: OK @@ -289,13 +293,14 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:58 GMT - ms-cv: VbXxoLnKC0eL7vbRD6s0xw.0 + date: Mon, 01 Mar 2021 23:47:54 GMT + ms-cv: mkM0hnkEj0SIQAjaLew8Eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 365ms + x-processing-time: 829ms status: code: 200 message: OK @@ -312,13 +317,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:16:58 GMT - ms-cv: OjnpasD0+0GD5O7dEQKhcA.0 + date: Mon, 01 Mar 2021 23:47:54 GMT + ms-cv: UXPMeVcFeUqzWB3k9pyr4Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 356ms + x-processing-time: 406ms status: code: 200 message: OK @@ -336,11 +342,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:16:58 GMT - ms-cv: FZR5as2AgUSZ6dwUyB/sfw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:47:54 GMT + ms-cv: q9EWcPIMukS7JCT3QhlN/g.0 strict-transport-security: max-age=2592000 - x-processing-time: 322ms + x-processing-time: 336ms status: code: 204 message: No Content @@ -357,7 +364,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:17:00 GMT + - Mon, 01 Mar 2021 23:47:54 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -371,15 +378,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:17:15 GMT + - Mon, 01 Mar 2021 23:48:10 GMT ms-cv: - - fThpxTiWR0WB+sjMjg6fBA.0 + - 2PkIgGANyEm2tFYBleZ5/g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16751ms + - 16148ms status: code: 204 message: No Content @@ -395,7 +402,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:17:17 GMT + - Mon, 01 Mar 2021 23:48:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -409,15 +416,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:17:31 GMT + - Mon, 01 Mar 2021 23:48:26 GMT ms-cv: - - YCQyDYaqZU+5P2r/KMPOMw.0 + - Qz1EIJzFwE+S0kIi2ldARw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16140ms + - 16258ms 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 e0b07b7735a8..83a6c0f7f91a 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:17:33 GMT + - Mon, 01 Mar 2021 23:48:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:17:32 GMT + - Mon, 01 Mar 2021 23:48:27 GMT ms-cv: - - 2xcgC1GTqkGhIILp8Y/Fng.0 + - Sk8GCihPOEOsUhJcDc4zhQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 28ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:17:34 GMT + - Mon, 01 Mar 2021 23:48:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:17:31.5028196+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:48:26.994978+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:17:32 GMT + - Mon, 01 Mar 2021 23:48:27 GMT ms-cv: - - 7Md/5KYdKU2gZxsrnHqALg.0 + - wzcC27Zmb0e5mPu7SNLyZw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 118ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:17:34 GMT + - Mon, 01 Mar 2021 23:48:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-8321-1655-373a0d00a850"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-152a-9c58-373a0d00fa83"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:17:32 GMT + - Mon, 01 Mar 2021 23:48:27 GMT ms-cv: - - mCn78nAn6E2YQktdM1gOFw.0 + - vYdzb+4ELEKscpDnJccX+w.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 18ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:17:34 GMT + - Mon, 01 Mar 2021 23:48:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:17:31.7313756+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:48:27.2285036+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:17:32 GMT + - Mon, 01 Mar 2021 23:48:28 GMT ms-cv: - - neUM4gH2E0OdzfzKH8wTgw.0 + - Oqxz5sOBbEaIaq75nG5L5g.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -177,28 +177,29 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - f4508b4e-1814-40fc-a105-773199600a90 + - 6ce29f0d-8e55-47a1-8635-65587293013a method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:uQz7kfMiUqQ6NU7nKmZ4NE3SCfMRbfhY0IcpYFlpZ3Y1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:17:33Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df0-823f-1655-373a0d00a84f"}}}}' + body: '{"chatThread": {"id": "19:9gKAaRpIqH7mxjXuFZQgN-oi5e_BCpygpN6h2OLJavA1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:48:28Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:17:33 GMT - ms-cv: XKB8fkqsfEO2RPMmzNNMUg.0 + date: Mon, 01 Mar 2021 23:48:28 GMT + ms-cv: Tu3rFdlztUOuEPL/tPIkBQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 827ms + x-processing-time: 870ms status: code: 201 message: Created @@ -219,13 +220,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:17:34 GMT - ms-cv: yqD4uHpgp0iO9KBAEBsFfA.0 + date: Mon, 01 Mar 2021 23:48:29 GMT + ms-cv: yYKfE9zJ/U2r4CkXQA5Ctg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 440ms + x-processing-time: 862ms status: code: 201 message: Created @@ -242,10 +243,10 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:17:34 GMT - ms-cv: PwWptBLTlEeGxitBNrhzDg.0 + date: Mon, 01 Mar 2021 23:48:30 GMT + ms-cv: ak1/pWOl1kiiHZcqRJvcvA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 271ms @@ -266,11 +267,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:17:34 GMT - ms-cv: wJ8eUNAiek2iptiYdznfCA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:48:29 GMT + ms-cv: cz/d0llIt0iHDeOpkIbjhA.0 strict-transport-security: max-age=2592000 - x-processing-time: 299ms + x-processing-time: 318ms status: code: 204 message: No Content @@ -287,7 +289,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:17:36 GMT + - Mon, 01 Mar 2021 23:48:30 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -301,15 +303,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:17:51 GMT + - Mon, 01 Mar 2021 23:48:46 GMT ms-cv: - - zrLO73Uiq0iooBt7my2PwQ.0 + - +SiPb5xiFUGPa+TUEaAZvA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16662ms + - 16349ms status: code: 204 message: No Content @@ -325,7 +327,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:17:53 GMT + - Mon, 01 Mar 2021 23:48:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -339,15 +341,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:18:07 GMT + - Mon, 01 Mar 2021 23:49:02 GMT ms-cv: - - gEFIrsNj8keuPWy+J0O3Pg.0 + - 1fvAII+/a0Ghnigg7wQ5tg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16760ms + - 15991ms 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 023a4ed7c1db..ab75b1249de6 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:10 GMT + - Mon, 01 Mar 2021 23:49:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:08 GMT + - Mon, 01 Mar 2021 23:49:03 GMT ms-cv: - - AkE7gjNl4UqdnSM8PAigUQ.0 + - ZZs42DpX606fzqytJFwQIg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 19ms + - 68ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:10 GMT + - Mon, 01 Mar 2021 23:49:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:08.1405349+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:02.8352134+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:08 GMT + - Mon, 01 Mar 2021 23:49:03 GMT ms-cv: - - QHdFwaWAP0yXy8vd90Koww.0 + - RlOnT+pRhEixP5tJxmRFfw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 94ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:10 GMT + - Mon, 01 Mar 2021 23:49:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-123a-b0b7-3a3a0d00a768"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a128-1db7-3a3a0d0005f4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:08 GMT + - Mon, 01 Mar 2021 23:49:03 GMT ms-cv: - - Y0RhHLYOy0ODul13T7VNwg.0 + - i03oQo2kRUGwBk+DUO0z/Q.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 33ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:11 GMT + - Mon, 01 Mar 2021 23:49:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:08.3487547+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:02.0488806+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:08 GMT + - Mon, 01 Mar 2021 23:49:03 GMT ms-cv: - - adplWJGON0ae9jITNZH5Lg.0 + - ZI6JHC5hYU6T00E/SmbHKw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 93ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - aa05ac9e-7763-4c9d-9f4d-cb311de57eeb + - 45c2f1f1-132e-4e78-b2ea-fd904da06a32 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:3n0iKyITptmt1UrJwBNDbk6LviDhhN3wbv6oDybl9QU1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:18:09Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-1166-b0b7-3a3a0d00a767"}}}}' + body: '{"chatThread": {"id": "19:rp_7aHcGKxhAjRWriRRbmd2nN_X9R6spPrZsW1JUfos1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:49:04Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:10 GMT - ms-cv: ywt6sKf9yU2PJfo7eYQb4Q.0 + date: Mon, 01 Mar 2021 23:49:04 GMT + ms-cv: gz5hZyc8p0uiJjEVSPo5ZA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 846ms + x-processing-time: 890ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:10 GMT - ms-cv: 2wKX/gYRdUORVx51BTBN6Q.0 + date: Mon, 01 Mar 2021 23:49:04 GMT + ms-cv: 5Ko9AJvGBUuhfINdaonT9Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 389ms status: code: 201 message: Created @@ -248,12 +250,13 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-length: '0' - date: Fri, 26 Feb 2021 11:18:11 GMT - ms-cv: 4pQw1unyJ0W6h9GjVuvmEA.0 + date: Mon, 01 Mar 2021 23:49:05 GMT + ms-cv: sGS+0k5pjU+B2C8BaNpUtw.0 strict-transport-security: max-age=2592000 - x-processing-time: 436ms + x-processing-time: 493ms status: code: 200 message: OK @@ -270,13 +273,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:11 GMT - ms-cv: pBbZY//kS0mwV0RglsmqHg.0 + date: Mon, 01 Mar 2021 23:49:05 GMT + ms-cv: HCQAXxQnpESjgDyuOQhS0g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 250ms + x-processing-time: 278ms status: code: 200 message: OK @@ -298,13 +302,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:12 GMT - ms-cv: aaytsKQP1kudg4i3kcCpAg.0 + date: Mon, 01 Mar 2021 23:49:06 GMT + ms-cv: mSLq6YDFyEOnHsAOXmLUyw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 389ms + x-processing-time: 393ms status: code: 201 message: Created @@ -326,12 +331,13 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-length: '0' - date: Fri, 26 Feb 2021 11:18:12 GMT - ms-cv: FmHJo4rpp0evOmS6qmOUVg.0 + date: Mon, 01 Mar 2021 23:49:06 GMT + ms-cv: lnGDyOhA/UygzyIwT1wd0w.0 strict-transport-security: max-age=2592000 - x-processing-time: 459ms + x-processing-time: 495ms status: code: 200 message: OK @@ -348,13 +354,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:12 GMT - ms-cv: /eP0EjBltEGejWLIgwJ9Dg.0 + date: Mon, 01 Mar 2021 23:49:07 GMT + ms-cv: Y11022tp3UG30cnzEVrRdg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 248ms + x-processing-time: 252ms status: code: 200 message: OK @@ -376,13 +383,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:13 GMT - ms-cv: J4xG0Xaf7Uy3IqTO3w1GRA.0 + date: Mon, 01 Mar 2021 23:49:08 GMT + ms-cv: hYupyjsj/EWDOoNFvW2LHw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 383ms + x-processing-time: 401ms status: code: 201 message: Created @@ -404,12 +412,13 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-length: '0' - date: Fri, 26 Feb 2021 11:18:13 GMT - ms-cv: Xx7nB21zwUqsg4f1GA9mAA.0 + date: Mon, 01 Mar 2021 23:49:08 GMT + ms-cv: A8Pb0GcFBkm1/p4TJQeRMw.0 strict-transport-security: max-age=2592000 - x-processing-time: 477ms + x-processing-time: 462ms status: code: 200 message: OK @@ -426,13 +435,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:15 GMT - ms-cv: WJOw3JBbtUaE427wydlV5g.0 + date: Mon, 01 Mar 2021 23:49:08 GMT + ms-cv: p/mC0h/aU0eERqpJgyG+OQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 582ms + x-processing-time: 254ms status: code: 200 message: OK @@ -449,13 +459,14 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:15 GMT - ms-cv: XqvGPXYQw02pLSreuRXCTA.0 + date: Mon, 01 Mar 2021 23:49:09 GMT + ms-cv: ZnON+koGkUinwYbO1z1voQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 257ms + x-processing-time: 250ms status: code: 200 message: OK @@ -473,11 +484,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:18:16 GMT - ms-cv: 7PTELaUr50u6IytlNEor0Q.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:49:09 GMT + ms-cv: RMkRra/KMUuKXvHFRAFWpw.0 strict-transport-security: max-age=2592000 - x-processing-time: 327ms + x-processing-time: 322ms status: code: 204 message: No Content @@ -494,7 +506,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:18:18 GMT + - Mon, 01 Mar 2021 23:49:10 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -508,15 +520,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:18:32 GMT + - Mon, 01 Mar 2021 23:49:26 GMT ms-cv: - - G3qa1p6NaEqF594SGShmXw.0 + - HpZg2nvrR0ibU4j9TyX5yw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16480ms + - 16333ms status: code: 204 message: No Content @@ -532,7 +544,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:18:34 GMT + - Mon, 01 Mar 2021 23:49:26 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -546,15 +558,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:18:48 GMT + - Mon, 01 Mar 2021 23:49:42 GMT ms-cv: - - +NqA6NVHnUufu9FcjyPEbg.0 + - 7Pc4FdAjX0mbXkl5frpwcA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16054ms + - 16058ms 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 1c4684143ac1..6302f92eb627 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:50 GMT + - Mon, 01 Mar 2021 23:49:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:48 GMT + - Mon, 01 Mar 2021 23:49:42 GMT ms-cv: - - QnWLcRnhD0esJqh1sS3ivA.0 + - NELhiRGK10qeYQJoWyKinQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 63ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:51 GMT + - Mon, 01 Mar 2021 23:49:42 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:48.482571+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:42.2798242+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:48 GMT + - Mon, 01 Mar 2021 23:49:42 GMT ms-cv: - - wf5yAbk4XkegKoDwGKNxuw.0 + - zg0jXt8JGUSx/1mWVei7Aw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 86ms + - 96ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:51 GMT + - Mon, 01 Mar 2021 23:49:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-afc3-1655-373a0d00a85f"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3b29-b0b7-3a3a0d00fe1c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:48 GMT + - Mon, 01 Mar 2021 23:49:43 GMT ms-cv: - - RzSzeYmA8UaGPySr1NE/aA.0 + - pncZOuLhWUaWgd3spui8Lg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 13ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:18:51 GMT + - Mon, 01 Mar 2021 23:49:43 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:18:48.6883687+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:42.4831942+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:18:48 GMT + - Mon, 01 Mar 2021 23:49:43 GMT ms-cv: - - FNSbmpV37EemgkRWSHxXgA.0 + - UHZF14o2eU6eX9KVquJiBw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 95ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 7445dc0b-dce5-4d92-a234-6dbe57c713e8 + - 38a56f20-a227-4f16-bd45-af8cd845f384 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:8HkqnxTnY_eP7hrS2aB4dETqqYwbRr8XgXL6FvYZYaA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:18:50Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-af0a-1655-373a0d00a85e"}}}}' + body: '{"chatThread": {"id": "19:Zdt7w9S1Dlrn_yHy2vpaWv5DzppECsDWzRF9QRJwzX81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:49:43Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:50 GMT - ms-cv: eyErSfZaDk+u37y1P1omBA.0 + date: Mon, 01 Mar 2021 23:49:44 GMT + ms-cv: DqCdBem3L0ebVuHrMjGQwg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 903ms + x-processing-time: 887ms status: code: 201 message: Created @@ -219,19 +220,19 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:18:51 GMT - ms-cv: FUEn79jmFUm8y5YygiRE2w.0 + date: Mon, 01 Mar 2021 23:49:44 GMT + ms-cv: tEc+j5z7BEGF9INTIW8TaQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 429ms + x-processing-time: 888ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df1-afc3-1655-373a0d00a85f"}}' + body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3b29-b0b7-3a3a0d00fe1c"}}' headers: Accept: - application/json @@ -247,11 +248,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:18:51 GMT - ms-cv: PkJmw+O6T06uwu8eooj1uA.0 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:49:45 GMT + ms-cv: tfZShi2DY0Wv81RqpdSi+Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 471ms + x-processing-time: 539ms status: code: 204 message: No Content @@ -269,11 +270,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:18:51 GMT - ms-cv: 9CojiNnj1k+O/KlqaTrhcw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:49:46 GMT + ms-cv: TSZsKpQ+BUi38+Pox9pV5w.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 332ms status: code: 204 message: No Content @@ -290,7 +292,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:18:54 GMT + - Mon, 01 Mar 2021 23:49:46 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -304,15 +306,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:19:08 GMT + - Mon, 01 Mar 2021 23:50:02 GMT ms-cv: - - WvcJE4HYKkuQ/ownVZASew.0 + - jDPN04guD0GCED0YqrOY/A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16594ms + - 16986ms status: code: 204 message: No Content @@ -328,7 +330,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:19:10 GMT + - Mon, 01 Mar 2021 23:50:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -342,15 +344,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:19:24 GMT + - Mon, 01 Mar 2021 23:50:19 GMT ms-cv: - - eu6Ws1sK+0eX/hW7yG+swQ.0 + - JJQcAJVTLUeKpdRY4V/nNQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15976ms + - 16148ms 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 789bf68ea915..a2d2549b766b 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:19:26 GMT + - Mon, 01 Mar 2021 23:50:19 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:24 GMT + - Mon, 01 Mar 2021 23:50:19 GMT ms-cv: - - omgesi6VGkyUS5ZXkKXlXQ.0 + - 7oGBAXRiC0GPOWGR6h4yVg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 21ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:19:26 GMT + - Mon, 01 Mar 2021 23:50:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:24.2218347+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:19.3299596+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:24 GMT + - Mon, 01 Mar 2021 23:50:19 GMT ms-cv: - - PAqsEP8DFkOjdo5m8GDnDg.0 + - GbUvgr2LmUO0z5I+2po2cg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 98ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:19:27 GMT + - Mon, 01 Mar 2021 23:50:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3b5c-1655-373a0d00a861"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cbdf-1db7-3a3a0d0005fd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:24 GMT + - Mon, 01 Mar 2021 23:50:19 GMT ms-cv: - - SX+rmAUM0UuYv/relptbGA.0 + - k1Y8FFj7+EWR/AnABsC9zg.0 request-context: - appId= strict-transport-security: @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:19:27 GMT + - Mon, 01 Mar 2021 23:50:20 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:24.4116831+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:19.5176972+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:25 GMT + - Mon, 01 Mar 2021 23:50:19 GMT ms-cv: - - 94RLS1p/XUOaPUt5UEPwbA.0 + - tz5RqQNCpkyS/I8jgC0wbQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 92ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 7a3446dd-3586-4899-b4a6-ab3a4365530f + - 8e83b285-400b-4332-9d93-f5dd777ae4d2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:Y5_6GWyFlAYSZe4oQwlBvvY6WCvjnOe1_g_z94lwKoM1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:19:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-3aa2-1655-373a0d00a860"}}}}' + body: '{"chatThread": {"id": "19:JcCT-ldDxH_7I04HomqxPtxVAjHoS-sRoqdWgo4zX0Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:50:20Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:19:25 GMT - ms-cv: iRYTzPrnt0KdNFIM+bK6NQ.0 + date: Mon, 01 Mar 2021 23:50:21 GMT + ms-cv: JxKvjXTWs0WwFPgc2C/X5g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 841ms + x-processing-time: 915ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:19:26 GMT - ms-cv: L1FA3xTaa0SS4A4m04CebA.0 + date: Mon, 01 Mar 2021 23:50:21 GMT + ms-cv: tGYBKid4ik+Z6zjowcDnIw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 396ms + x-processing-time: 388ms status: code: 201 message: Created @@ -244,11 +246,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:19:26 GMT - ms-cv: 01zUwa3Ja0uhP6dfoxrZhQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:50:22 GMT + ms-cv: n8p5gwq8ukK2lHAiyksX5w.0 strict-transport-security: max-age=2592000 - x-processing-time: 290ms + x-processing-time: 338ms status: code: 204 message: No Content @@ -265,7 +268,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:19:29 GMT + - Mon, 01 Mar 2021 23:50:22 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -279,15 +282,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:19:42 GMT + - Mon, 01 Mar 2021 23:50:38 GMT ms-cv: - - ogeyeRKNjkuP0MXyTQsynQ.0 + - 2f7eceQwnkK4rl8oZsnnGQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16320ms + - 16775ms status: code: 204 message: No Content @@ -303,7 +306,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:19:45 GMT + - Mon, 01 Mar 2021 23:50:39 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -317,15 +320,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:19:59 GMT + - Mon, 01 Mar 2021 23:50:55 GMT ms-cv: - - Vgy4vtJLWU6VtrPcg7CnuQ.0 + - eJdVkb3NuE29w7MuX3iv/g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16236ms + - 16159ms 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 08fc177d2a91..755f854c27c2 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:01 GMT + - Mon, 01 Mar 2021 23:50:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:59 GMT + - Mon, 01 Mar 2021 23:50:55 GMT ms-cv: - - lwdO2umzjkSnLiygVe+yUQ.0 + - R/YTjstVjE+yIqhXFdnjlw.0 request-context: - appId= strict-transport-security: @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:02 GMT + - Mon, 01 Mar 2021 23:50:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:59.3450671+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:54.9263986+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:59 GMT + - Mon, 01 Mar 2021 23:50:55 GMT ms-cv: - - 4pK/xfm6KUyQWp9IaiDGZA.0 + - goVuj1jb30u9fLLpKe/4Rw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 90ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:02 GMT + - Mon, 01 Mar 2021 23:50:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c49c-1655-373a0d00a871"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-56f2-9c58-373a0d00fa8a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:59 GMT + - Mon, 01 Mar 2021 23:50:55 GMT ms-cv: - - +sDkmMiKOEmncWMZmDKecw.0 + - ZgTZ7Gz+LkK6TTj0F5RcFA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 26ms + - 16ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:02 GMT + - Mon, 01 Mar 2021 23:50:55 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:19:59.5569628+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:55.1442058+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:19:59 GMT + - Mon, 01 Mar 2021 23:50:55 GMT ms-cv: - - aTf+oEkbjUCp8U2G/tF43Q.0 + - zw36/4KUW0u7NQ56Q8FeWA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 100ms + - 92ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 68b6584e-eda0-451e-ad4a-7bd538da7e53 + - d6955177-c78b-459b-b7e8-81d6b5330116 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:5D4eCb09Eg98ViTZzOAietzQXD8XrK6ooxvEO6bCO441@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:20:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df2-c3c0-1655-373a0d00a870"}}}}' + body: '{"chatThread": {"id": "19:txDI0D40meJYj4Y9ibm1M6qw-x-Aey_V6YQG-upIW5o1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:50:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:20:01 GMT - ms-cv: P7BASoXgb0GlauhPoUzw1Q.0 + date: Mon, 01 Mar 2021 23:50:56 GMT + ms-cv: zQ7N7d1tPkeMNPmA8HmRwA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 839ms + x-processing-time: 886ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:20:01 GMT - ms-cv: drrpi9va2kOwuJDCukcNdg.0 + date: Mon, 01 Mar 2021 23:50:57 GMT + ms-cv: 9bSaHtGmb0+4tANly4hwTw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 365ms + x-processing-time: 379ms status: code: 201 message: Created @@ -248,12 +250,13 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-length: '0' - date: Fri, 26 Feb 2021 11:20:01 GMT - ms-cv: zyqAwlU73kecvFfthPfcNA.0 + date: Mon, 01 Mar 2021 23:50:57 GMT + ms-cv: rZAPg7w090+cxNIC77q+2A.0 strict-transport-security: max-age=2592000 - x-processing-time: 449ms + x-processing-time: 485ms status: code: 200 message: OK @@ -271,11 +274,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:20:02 GMT - ms-cv: W6b32nO2eUCO80ycJIAkig.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:50:57 GMT + ms-cv: l+Tbt+erGk2EN1pZX8GDyA.0 strict-transport-security: max-age=2592000 - x-processing-time: 285ms + x-processing-time: 321ms status: code: 204 message: No Content @@ -292,7 +296,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:20:04 GMT + - Mon, 01 Mar 2021 23:50:58 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -306,15 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:20:19 GMT + - Mon, 01 Mar 2021 23:51:14 GMT ms-cv: - - o+bS4PPct0upQ9zbjLGGTA.0 + - EyPQnRiNv0K9Jg7vzYs0ag.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16151ms + - 16560ms status: code: 204 message: No Content @@ -330,7 +334,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:20:20 GMT + - Mon, 01 Mar 2021 23:51:15 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -344,15 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:20:35 GMT + - Mon, 01 Mar 2021 23:51:31 GMT ms-cv: - - nBf7U2KbT0q5VijphyoTEg.0 + - /kqTZRkM3E2wZ4RD7+b7Hg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16414ms + - 16585ms 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 73638e060e15..d28766af7de9 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:37 GMT + - Mon, 01 Mar 2021 23:51:31 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:20:35 GMT + - Mon, 01 Mar 2021 23:51:31 GMT ms-cv: - - HSRt+0raoESxU4UvBuqJMQ.0 + - vBy6NHLlXUmh1r69ndd9Dg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 13ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:37 GMT + - Mon, 01 Mar 2021 23:51:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:20:35.0373039+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:51:31.3858105+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:20:35 GMT + - Mon, 01 Mar 2021 23:51:32 GMT ms-cv: - - ZB7XrADT0EegVH5cJqKFpA.0 + - kCdlhHMh5k2oLraulL2www.0 request-context: - appId= strict-transport-security: @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:37 GMT + - Mon, 01 Mar 2021 23:51:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-5001-9c58-373a0d00a357"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e556-9c58-373a0d00fa92"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:20:35 GMT + - Mon, 01 Mar 2021 23:51:32 GMT ms-cv: - - d17DRamcGke0JKSoTTzt5w.0 + - v6Pi5IjbQkysln2Q5qVplA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 12ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:20:37 GMT + - Mon, 01 Mar 2021 23:51:32 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:20:35.2521392+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:51:31.5730644+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:20:35 GMT + - Mon, 01 Mar 2021 23:51:32 GMT ms-cv: - - ZfPXRwGPG0C2kBHixlQ1nA.0 + - QyzJZHRecU+sMbmhVBWApg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 88ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - c2fe8819-6418-45ed-978f-a28fd334fa57 + - b10b2977-9312-4b1c-983c-de26c915640d method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:08U2EV9qgtXH8QbDX2t_e9s2cUb2cbj8uI6llnKwfNA1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:20:36Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-4f38-9c58-373a0d00a356"}}}}' + body: '{"chatThread": {"id": "19:4SEkETC1N01snLf3gO9_zdh5B_UjorsAt1cub2K1aPY1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:51:32Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:20:37 GMT - ms-cv: G218cJNTRUKC4N94/o+c8w.0 + date: Mon, 01 Mar 2021 23:51:33 GMT + ms-cv: MAKBY/5O4EGX0Awiz4yFdQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 877ms + x-processing-time: 887ms status: code: 201 message: Created @@ -216,12 +217,13 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-length: '0' - date: Fri, 26 Feb 2021 11:20:37 GMT - ms-cv: SDKdP82m4Uukix2eusF98A.0 + date: Mon, 01 Mar 2021 23:51:34 GMT + ms-cv: YMVT5jGPO0uQv+YJz4nohg.0 strict-transport-security: max-age=2592000 - x-processing-time: 378ms + x-processing-time: 785ms status: code: 200 message: OK @@ -239,11 +241,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:20:38 GMT - ms-cv: DithyQ3tJkSJoDOP3q0pcQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:51:34 GMT + ms-cv: oRoeQclaIEqb/asiVL3iHA.0 strict-transport-security: max-age=2592000 - x-processing-time: 327ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -260,7 +263,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:20:40 GMT + - Mon, 01 Mar 2021 23:51:34 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -274,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:20:53 GMT + - Mon, 01 Mar 2021 23:51:50 GMT ms-cv: - - HuYvjo1340qK8IAg12mA5g.0 + - Z4ZSnJUN602qxFMGE4xXsg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16572ms + - 16582ms status: code: 204 message: No Content @@ -298,7 +301,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:20:56 GMT + - Mon, 01 Mar 2021 23:51:51 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -312,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:21:10 GMT + - Mon, 01 Mar 2021 23:52:06 GMT ms-cv: - - 2bD1YtyQUEqHNaciTINBmQ.0 + - bCK2v2qG20mFNvnQGwAx6w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15976ms + - 16182ms 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 611546c95111..00999eb1bc4d 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:12 GMT + - Mon, 01 Mar 2021 23:52:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:10 GMT + - Mon, 01 Mar 2021 23:52:07 GMT ms-cv: - - YYC+6VrQe0KJeN6x/x+KLg.0 + - UgXw83MPE06nbdICN75hxw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 20ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:13 GMT + - Mon, 01 Mar 2021 23:52:07 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:10.3192785+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:07.2873642+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:10 GMT + - Mon, 01 Mar 2021 23:52:08 GMT ms-cv: - - lOZfjJTJdUeZ6J1nchaU2Q.0 + - T3EEi3+N70WEfzl1V1az8A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 87ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:13 GMT + - Mon, 01 Mar 2021 23:52:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d9d2-1655-373a0d00a876"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-7198-1655-373a0d00008e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:10 GMT + - Mon, 01 Mar 2021 23:52:08 GMT ms-cv: - - j+LrmfFkuECEs0DLawMsug.0 + - FTDEw6dbo0aBRnU2gVbQGg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 12ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:13 GMT + - Mon, 01 Mar 2021 23:52:08 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:10.5413618+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:07.479129+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:10 GMT + - Mon, 01 Mar 2021 23:52:08 GMT ms-cv: - - Il3anCq0GUyPZJlqeEp6gg.0 + - ZpKgLhthIEaBnqEmJ9S59g.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 91ms status: code: 200 message: OK @@ -183,22 +183,23 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - d68d1213-24bf-4922-9223-09de9fba0994 + - 50af969b-7c6a-4f81-a37a-0a5ad60f9223 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:37Jztk9V56EKWBFCLTy-TnCsF7mNYOSK7k83NGSdKu01@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:21:11Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df3-d901-1655-373a0d00a875"}}}}' + body: '{"chatThread": {"id": "19:0kJom_4X_Lgb-H3EKF9YxEqelZ9dY574UOjvnLHuN501@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:52:09Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:21:12 GMT - ms-cv: hN19bCyIo0u6AH6QcmOdGQ.0 + date: Mon, 01 Mar 2021 23:52:09 GMT + ms-cv: tkBA4C4OSkKPXIsOoKF6BQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 878ms + x-processing-time: 1086ms status: code: 201 message: Created @@ -220,13 +221,14 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:21:12 GMT - ms-cv: 6b5WmSL3MUy48bKnrEVlsA.0 + date: Mon, 01 Mar 2021 23:52:09 GMT + ms-cv: aMbQpbzl8UyA5ET2zFHEZw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 385ms + x-processing-time: 373ms status: code: 201 message: Created @@ -248,11 +250,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:21:13 GMT - ms-cv: Vv4DOUdhHEGVLxqK7Y2yxw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:52:10 GMT + ms-cv: SRzqfq26gkOpFtAtH7y4Bw.0 strict-transport-security: max-age=2592000 - x-processing-time: 685ms + x-processing-time: 673ms status: code: 204 message: No Content @@ -270,11 +273,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:21:13 GMT - ms-cv: 48TicZBmKU+bNyw16Sq5KQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:52:11 GMT + ms-cv: hoPDAyfV4EO9ctW5m+abiQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 323ms + x-processing-time: 324ms status: code: 204 message: No Content @@ -291,7 +295,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:21:16 GMT + - Mon, 01 Mar 2021 23:52:11 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -305,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:21:31 GMT + - Mon, 01 Mar 2021 23:52:27 GMT ms-cv: - - fgrT2K6rkkiiOrVWMnwOlw.0 + - sbSjvSFVzUONY+ovW+lQxw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16801ms + - 16219ms status: code: 204 message: No Content @@ -329,7 +333,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:21:33 GMT + - Mon, 01 Mar 2021 23:52:27 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -343,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:21:47 GMT + - Mon, 01 Mar 2021 23:52:43 GMT ms-cv: - - kLYwvApWLECDbtLyKPE5WA.0 + - EIPLS/3CHUWF1SdG5VhM5g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16659ms + - 16855ms 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 b5aa8b10df68..58597fb2d86e 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 @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:49 GMT + - Mon, 01 Mar 2021 23:52:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -21,16 +21,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:48 GMT + - Mon, 01 Mar 2021 23:52:44 GMT ms-cv: - - bpGaC3B5L0itQcZui7+GwA.0 + - vPjhuJLGWESWkqufzVtC4g.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 178ms + - 15ms status: code: 201 message: Created @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:50 GMT + - Mon, 01 Mar 2021 23:52:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -64,16 +64,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:47.6116697+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:43.9998701+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:48 GMT + - Mon, 01 Mar 2021 23:52:44 GMT ms-cv: - - EN0J/EVMDUuoCamp3TPS4w.0 + - bUpr+IDIUEG9GWYzKs1Akw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 120ms + - 96ms status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:50 GMT + - Mon, 01 Mar 2021 23:52:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -107,16 +107,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6c53-9c58-373a0d00a360"}}' + body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-0117-b0b7-3a3a0d00fe27"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:48 GMT + - Mon, 01 Mar 2021 23:52:44 GMT ms-cv: - - Lcjp4C9ejk6TaeN3DCp3MQ.0 + - ytftr5ElQUKfw1t/bWyZvw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 231ms + - 31ms status: code: 201 message: Created @@ -142,7 +142,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 26 Feb 2021 11:21:50 GMT + - Mon, 01 Mar 2021 23:52:44 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -150,16 +150,16 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-02-27T11:21:48.3232212+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:44.238236+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 26 Feb 2021 11:21:49 GMT + - Mon, 01 Mar 2021 23:52:45 GMT ms-cv: - - tpzlnEtES0+ddkz2YLaoyg.0 + - NI6uHNWQDUqU7jbG3s3Zzw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 396ms + - 97ms status: code: 200 message: OK @@ -177,28 +177,29 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-Id: - - 8f863e98-0aef-4b93-bee4-ea68d57cc15f + - 4d924b9d-ea29-4804-b780-3d3fb573e9b8 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 response: - body: '{"chatThread": {"id": "19:r8vWEAWBhAlc8Er2353HUJmCVfnxUTvB4WErE6pyc3I1@thread.v2", - "topic": "test topic", "createdOn": "2021-02-26T11:21:49Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-7df4-6a9b-9c58-373a0d00a35f"}}}}' + body: '{"chatThread": {"id": "19:fctDn9IhlhkUyeEIWRgKSbP0LBD3mZ4Mr6b1Lp31N2o1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-01T23:52:45Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26", + "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26"}}}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Fri, 26 Feb 2021 11:21:50 GMT - ms-cv: Rf+pHpvZJ0uTEdVEClvK4w.0 + date: Mon, 01 Mar 2021 23:52:45 GMT + ms-cv: AiRR0T77mUmnfb/1zIWdaw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1159ms + x-processing-time: 875ms status: code: 201 message: Created @@ -220,11 +221,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:21:50 GMT - ms-cv: 2f3JUGs1/Ee1tIdFHlhSCg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:52:46 GMT + ms-cv: 4F6kOYhgk0+T5R5k+0bpGg.0 strict-transport-security: max-age=2592000 - x-processing-time: 421ms + x-processing-time: 432ms status: code: 204 message: No Content @@ -242,11 +244,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 - date: Fri, 26 Feb 2021 11:21:51 GMT - ms-cv: ZJmD6eH73kO0ah36PDW2NQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 + date: Mon, 01 Mar 2021 23:52:46 GMT + ms-cv: Kzz/LzDpyE2vy7vycpexTQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 552ms + x-processing-time: 289ms status: code: 204 message: No Content @@ -263,7 +266,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:21:53 GMT + - Mon, 01 Mar 2021 23:52:47 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -277,15 +280,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:22:07 GMT + - Mon, 01 Mar 2021 23:53:03 GMT ms-cv: - - uYwuHXx4IEKZr62PsiGTTQ.0 + - Qhy8fsiWfEGx6A/eH+tDqA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16825ms + - 16698ms status: code: 204 message: No Content @@ -301,7 +304,7 @@ interactions: Content-Length: - '0' Date: - - Fri, 26 Feb 2021 11:22:10 GMT + - Mon, 01 Mar 2021 23:53:03 GMT User-Agent: - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -315,15 +318,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 26 Feb 2021 11:22:24 GMT + - Mon, 01 Mar 2021 23:53:19 GMT ms-cv: - - rVRClRLeKUupjSj0CMJ9Jg.0 + - Y9vON9Bu50u7OgnvSq6yBg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15910ms + - 16418ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py index 86aece83b74a..221afd927561 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py @@ -12,7 +12,7 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient -from azure.communication.chat._shared.user_credential import CommunicationTokenCredential +from azure.communication.identity._shared.user_credential import CommunicationTokenCredential from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, @@ -76,6 +76,41 @@ def _create_thread(self, repeatability_request_id=None): repeatability_request_id=repeatability_request_id) self.thread_id = create_chat_thread_result.chat_thread.id + @pytest.mark.live_test_only + def test_access_token_validation(self): + """ + This is to make sure that consecutive calls made using the same chat_client or chat_thread_client + does not throw an exception due to mismatch in the generation of azure.core.credentials.AccessToken + """ + from azure.communication.identity._shared.user_token_refresh_options import \ + CommunicationTokenRefreshOptions as IdentityCommunicationTokenRefreshOptions + + # create ChatClient + refresh_options = IdentityCommunicationTokenRefreshOptions(self.token) + chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + raised = False + try: + # create chat thread + topic1 = "test topic1" + create_chat_thread1_result = chat_client.create_chat_thread(topic1) + self.thread_id = create_chat_thread1_result.chat_thread.id + + # get chat thread + chat_thread1 = chat_client.get_chat_thread(create_chat_thread1_result.chat_thread.id) + + # get chat thread client + chat_thread1_client = chat_client.get_chat_thread_client(self.thread_id) + + # list all chat threads + chat_thead_infos = chat_client.list_chat_threads() + for chat_threads_info_page in chat_thead_infos.by_page(): + for chat_thread_info in chat_threads_info_page: + print("ChatThreadInfo: ", chat_thread_info) + except: + raised = True + + assert raised is True + @pytest.mark.live_test_only def test_create_chat_thread(self): self._create_thread() diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py index 9c6b71b211bf..0b2fe07c045d 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py @@ -11,7 +11,7 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient -from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential +from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( ChatClient 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 e26dbb8a2417..26083b722474 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 @@ -448,15 +448,13 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - failed_participant, communication_error = chat_thread_client.add_participant(new_participant) + chat_thread_client.add_participant(new_participant) except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - self.assertIsNone(failed_participant) - self.assertIsNone(communication_error) - def test_add_participant_w_failed_participants_returns_tuple(self): + def test_add_participant_w_failed_participants(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False @@ -483,15 +481,11 @@ def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - failed_participant, communication_error = chat_thread_client.add_participant(new_participant) + chat_thread_client.add_participant(new_participant) except: raised = True - self.assertFalse(raised, 'Expected is no excpetion raised') - self.assertEqual(new_participant.user.identifier, failed_participant.user.identifier) - self.assertEqual(new_participant.display_name, failed_participant.display_name) - self.assertEqual(new_participant.share_history_time, failed_participant.share_history_time) - self.assertEqual(error_message, communication_error.message) + self.assertTrue(raised, 'Expected is no excpetion raised') def test_add_participants(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 f50d373f44f9..5439e45fcfcb 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 @@ -465,16 +465,14 @@ async def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - failed_participant, communication_error = await chat_thread_client.add_participant(new_participant) + await chat_thread_client.add_participant(new_participant) except: raised = True assert raised == False - assert failed_participant is None - assert communication_error is None @pytest.mark.asyncio -async def test_add_participant_w_failed_participants_returns_tuple(): +async def test_add_participant_w_failed_participants(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False @@ -501,15 +499,11 @@ async def mock_send(*_, **__): share_history_time=datetime.utcnow()) try: - failed_participant, communication_error = await chat_thread_client.add_participant(new_participant) + await chat_thread_client.add_participant(new_participant) except: raised = True - assert raised == False - assert new_participant.user.identifier == failed_participant.user.identifier - assert new_participant.display_name == failed_participant.display_name - assert new_participant.share_history_time == failed_participant.share_history_time - assert error_message == communication_error.message + assert raised == True @pytest.mark.asyncio async def test_add_participants(): 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 5e340c9b1c8d..bf26081d5616 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 @@ -11,7 +11,7 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient -from azure.communication.chat._shared.user_credential import CommunicationTokenCredential +from azure.communication.identity._shared.user_credential import CommunicationTokenCredential from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, @@ -209,11 +209,14 @@ def test_add_participant(self): user=self.new_user, display_name='name', share_history_time=share_history_time) + raised = False - participant, error = self.chat_thread_client.add_participant(new_participant) + try: + self.chat_thread_client.add_participant(new_participant) + except RuntimeError as e: + raised = True - assert participant is None - assert error is None + assert raised is False @pytest.mark.live_test_only def test_add_participants(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 22ff39c4f605..de3228ef62ff 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 @@ -10,7 +10,7 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient -from azure.communication.chat._shared.user_credential_async import CommunicationTokenCredential +from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( ChatClient @@ -261,11 +261,13 @@ async def test_add_participant(self): user=self.new_user, display_name='name', share_history_time=share_history_time) + raised = False + try: + await self.chat_thread_client.add_participant(new_participant) + except RuntimeError as e: + raised = True - participant, error = await self.chat_thread_client.add_participant(new_participant) - - assert participant is None - assert error is None + assert raised is False if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) From 5985f47471ba885bb10339157bce130ee6a79797 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 1 Mar 2021 16:30:31 -0800 Subject: [PATCH 14/16] pylint fixes --- .../azure/communication/chat/_chat_thread_client.py | 6 +----- .../communication/chat/aio/_chat_thread_client_async.py | 6 +----- 2 files changed, 2 insertions(+), 10 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 1ff17c733bec..0cd9b86d6e1e 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 @@ -516,8 +516,6 @@ def add_participant( **kwargs) response = [] - failed_participant = None - communication_error = None if hasattr(add_chat_participants_result, 'errors') and \ add_chat_participants_result.errors is not None: response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access @@ -528,11 +526,9 @@ def add_participant( if len(response) != 0: failed_participant = response[0][0] communication_error = response[0][1] - raise RuntimeError('Participant: ', communication_error.target, ' failed to join thread due to: ', + raise RuntimeError('Participant: ', failed_participant, ' failed to join thread due to: ', communication_error.message) - return None - @distributed_trace def add_participants( self, 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 85e4f4153c21..c0e24b560c74 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 @@ -503,8 +503,6 @@ async def add_participant( **kwargs) response = [] - failed_participant = None - communication_error = None if hasattr(add_chat_participants_result, 'errors') and \ add_chat_participants_result.errors is not None: response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access @@ -515,11 +513,9 @@ async def add_participant( if len(response) != 0: failed_participant = response[0][0] communication_error = response[0][1] - raise RuntimeError('Participant: ', communication_error.target, ' failed to join thread due to: ', + raise RuntimeError('Participant: ', failed_participant, ' failed to join thread due to: ', communication_error.message) - return None - @distributed_trace_async async def add_participants( self, From d58ec47749e5e551469e2e0d7315034720c11f4e Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Tue, 2 Mar 2021 09:57:39 -0800 Subject: [PATCH 15/16] cls removed from docstring + update_topic async refactored --- .../azure/communication/chat/_chat_client.py | 6 ++--- .../communication/chat/_chat_thread_client.py | 27 ++++++------------- .../chat/aio/_chat_client_async.py | 7 ++--- .../chat/aio/_chat_thread_client_async.py | 1 - 4 files changed, 12 insertions(+), 29 deletions(-) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index 60fda76fd77e..48364bbe1713 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -199,8 +199,7 @@ def get_chat_thread( :param thread_id: Required. Thread id to get. :type thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) + :return: ChatThread :rtype: ~azure.communication.chat.ChatThread :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -261,8 +260,7 @@ def delete_chat_thread( :param thread_id: Required. Thread id to delete. :type thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError 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 0cd9b86d6e1e..056895bf803d 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 @@ -129,8 +129,7 @@ def update_topic( :param topic: Thread topic. If topic is not specified, the update will succeeded but chat thread properties will not be changed. :type topic: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -161,8 +160,7 @@ def send_read_receipt( :param message_id: Required. Id of the latest message read by current user. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -194,7 +192,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: An iterator like instance of ChatMessageReadReceipt :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatMessageReadReceipt] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -226,8 +223,7 @@ def send_typing_notification( # type: (...) -> None """Posts a typing event to a thread, on behalf of a user. - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -258,8 +254,7 @@ def send_message( :type chat_message_type: str or ~azure.communication.chat.models.ChatMessageType :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) + :return: str :rtype: str :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -314,8 +309,7 @@ def get_message( :param message_id: Required. The message id. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatMessage, or the result of cls(response) + :return: ChatMessage :rtype: ~azure.communication.chat.ChatMessage :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -345,7 +339,6 @@ def list_messages( :keyword int results_per_page: The maximum number of messages to be returned per page. :keyword ~datetime.datetime start_time: The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of ChatMessage :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatMessage] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -384,8 +377,7 @@ def update_message( :type message_id: str :param content: Chat message content. :type content: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -420,8 +412,7 @@ def delete_message( :param message_id: Required. The message id. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -452,7 +443,6 @@ def list_participants( :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: An iterator like instance of ChatThreadParticipant :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatThreadParticipant] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -589,8 +579,7 @@ def remove_participant( :param user: Required. User identity of the thread participant to remove from the thread. :type user: ~azure.communication.chat.CommunicationUserIdentifier - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index 14f55c04b2b5..3d901816a9d1 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -207,8 +207,7 @@ async def get_chat_thread( :param thread_id: Required. Thread id to get. :type thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) + :return: ChatThread :rtype: ~azure.communication.chat.ChatThread :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -236,7 +235,6 @@ def list_chat_threads( :keyword int results_per_page: The maximum number of chat threads to be returned per page. :keyword ~datetime.datetime start_time: The earliest point in time to get chat threads up to. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of ChatThreadInfo :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.ChatThreadInfo] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -268,8 +266,7 @@ async def delete_chat_thread( :param thread_id: Required. Thread id to delete. :type thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError 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 c0e24b560c74..8748b7d5d5f0 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 @@ -119,7 +119,6 @@ def thread_id(self): @distributed_trace_async async def update_topic( self, - *, topic: str = None, **kwargs ) -> None: From ad01aeca7a9ebe6a320400feae5464c0c43d9a17 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Tue, 2 Mar 2021 10:01:38 -0800 Subject: [PATCH 16/16] cls removed from docstring --- .../chat/aio/_chat_thread_client_async.py | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) 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 8748b7d5d5f0..18909456258a 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 @@ -127,8 +127,7 @@ async def update_topic( :param topic: Thread topic. If topic is not specified, the update will succeeded but chat thread properties will not be changed. :type topic: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -158,8 +157,7 @@ async def send_read_receipt( :param message_id: Required. Id of the latest message read by current user. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -220,8 +218,7 @@ async def send_typing_notification( ) -> None: """Posts a typing event to a thread, on behalf of a user. - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -251,8 +248,7 @@ async def send_message( :type chat_message_type: str or ~azure.communication.chat.models.ChatMessageType :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. - :keyword callable cls: A custom type or function that will be passed the direct response - :return: str, or the result of cls(response) + :return: str :rtype: str :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -306,8 +302,7 @@ async def get_message( :param message_id: Required. The message id. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatMessage, or the result of cls(response) + :return: ChatMessage :rtype: ~azure.communication.chat.ChatMessage :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -335,7 +330,6 @@ def list_messages( :keyword int results_per_page: The maximum number of messages to be returned per page. :keyword ~datetime.datetime start_time: The start time where the range query. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of ChatMessage :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.ChatMessage] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -372,8 +366,7 @@ async def update_message( :type message_id: str :param content: Chat message content. :type content: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -407,8 +400,7 @@ async def delete_message( :param message_id: Required. The message id. :type message_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -438,7 +430,6 @@ def list_participants( :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: An iterator like instance of ChatThreadParticipant :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.ChatThreadParticipant] :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -476,7 +467,6 @@ async def add_participant( :param thread_participant: Required. Single thread participant to be added to the thread. :type thread_participant: ~azure.communication.chat.ChatThreadParticipant - :keyword callable cls: A custom type or function that will be passed the direct response :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError @@ -575,8 +565,7 @@ async def remove_participant( :param user: Required. User identity of the thread participant to remove from the thread. :type user: ~azure.communication.chat.CommunicationUserIdentifier - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) + :return: None :rtype: None :raises: ~azure.core.exceptions.HttpResponseError, ValueError